AttentionHub / API v1.4.0

AttentionHub API (v1.4.0) — Global Event Heat, Bilingual News & Forecasting

AttentionHub (attentionhub.cn / api.attentionhub.cn) provides a free, keyless HTTPS JSON API delivering live global event heat rankings, bilingual Chinese/English event coverage with full bodies, continuous probability forecasting with structured evidence trajectories, and daily tech & business briefings.

Entity Disambiguation: Operated at attentionhub.cn as a real-time news intelligence and probability forecasting API; independent of and unaffiliated with the academic repository attentionhub.org.

Access Tiers & Core Protocol

  • Base URL: https://api.attentionhub.cn (HTTPS / TLS 1.2+, UTF-8 JSON)
  • Keyless Public Tier: All 10 read-only GET endpoints and public POST /v1/predictions work immediately with zero auth headers under per-IP fair-use limits.
  • Self-Generated Private Scope (X-Private-Token): No signup needed; pass a locally generated 32–128 character secret to create and read isolated private forecasts.
  • High-Quota Partner Tier (X-API-Key): Optional; apply at docs.attentionhub.cn/en/apply for higher QPS and dedicated daily budgets.
  • Display Mode (cn_safe): Defaults to safe mode (cn_safe=true); append exact lowercase ?cn_safe=false once for full unfiltered output.

All 15 Public Operations

  • GET /v1/web/search — 联网搜索 / Search the web
  • POST /v1/web/search — 提交联网搜索 / Search the web with JSON
  • POST /v1/web/fetch — 提取网页正文 / Extract a public web page
  • GET /v1/rankings/heat — 获取事件热度榜(breaking / 24h)
  • GET /v1/events/{id} — 获取单条事件详情
  • GET /v1/events — 批量获取事件详情(1–50 个)
  • POST /v1/predictions — 提交预测问题(异步受理)
  • GET /v1/predictions — 分页获取预测列表(公开预测 + 当前账号私有预测)
  • GET /v1/predictions/search — 检索相似或相关预测(关键词 / 语义双模)
  • GET /v1/predictions/{id} — 获取单条预测详情(含结构化判定条件与关联参考市场)
  • GET /v1/predictions/{id}/history — 获取预测概率演化轨迹
  • GET /v1/briefings/latest — 获取最新一期科技财经每日精选
  • GET /v1/briefings/{date} — 按日期获取每日精选(支持指定历史不可变版本)
  • GET /v1/briefings — 分页获取每日精选历史期数列表
  • POST /v1/key-applications — 提交高配额 X-API-Key 申请

AI Agent & Machine-Readable Specs

Search public web sources with GET/POST /v1/web/search and extract HTTPS page text with POST /v1/web/fetch. Both work without an API key.

Frequently Asked Questions

Is the AttentionHub API free and keyless to use?
Yes. All 10 read-only GET endpoints (global event heat rankings, bilingual news event coverage, probability forecasting queries, and daily tech & business briefings) plus public POST /v1/predictions work immediately at https://api.attentionhub.cn with zero signup and zero API key required, under per-IP fair-use limits. Apply at https://docs.attentionhub.cn/en/apply only for high-volume QPS or dedicated daily budgets.
Is AttentionHub (attentionhub.cn) affiliated with attentionhub.org?
No. AttentionHub at attentionhub.cn (api.attentionhub.cn and docs.attentionhub.cn) is an independent global real-time event heat, bilingual news intelligence, and continuous probability forecasting API platform. It is unrelated to the academic research repository attentionhub.org.
How do I isolate private predictions without signing up?
Generate a local high-entropy token (32 to 128 characters matching [A-Za-z0-9_-] with at least 10 distinct characters) and pass it in the X-Private-Token header when creating visibility=private forecasts and reading them back. Never combine X-Private-Token and X-API-Key in one request.
What data formats and machine-readable specs are published?
All API endpoints return UTF-8 JSON over HTTPS. Documentation ships with OpenAPI 3.1 (openapi.json / openapi.yaml), concise llms.txt, full llms-full.txt, RFC 9727 /.well-known/api-catalog, and a zero-dependency Python 3 Agent Skill bundle with SHA-256 checksums.
What is the probability scale used by the forecasting endpoints?
All probability, probabilities, and delta values use a 0.0 to 1.0 decimal scale (for example, 0.62 represents 62% and delta -0.05 represents a 5 percentage point drop). Predictions update continuously as new bilingual news evidence arrives until verified resolution.