TheNews
聚合头条、头版故事和实时新闻的 JSON API
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 新闻
- 文档 / URL
- https://www.thenewsapi.com/
简介
TheNews 提供聚合头条和实时新闻——基于密钥(无效 token 返回 401,已实测)。
快速开始
头条新闻(替换 YOUR_KEY):
curl "https://api.thenewsapi.com/v1/news/top?api_token=YOUR_KEY&locale=us&limit=1"
{ "error": { "code": "invalid_api_token", "message": "An invalid API token was supplied." } }
认证方式
- 在 thenewsapi.com 注册 → API token。
- 通过
api_token查询参数携带(无效 → 401,已实测)。
速率限制与注意事项
- 免费层带限额(看文档);付费档可扩展。
- 头条、头条故事、实时新闻。
常见问题
TheNews 免费吗? 免费层带限额;更多需要付费。
为什么 401? 无效 token 返回 401(已实测)——请注册拿密钥。
认证风格是什么?
api_token 查询参数。
新闻 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Associated Press Search for news and metadata from Associated Press | API Key | Yes | Unknown | ↗ |
| Chronicling America Provides access to millions of pages of historic US newspapers from the Library of Congress | No auth | No | Unknown | ↗ |
| Currents Real-time and historical global news with multilingual support | API Key | Yes | Yes | ↗ |
| DataCube AI Daily curated AI industry news, funding rounds and trends in 8 languages | No auth | Yes | No | ↗ |
| Feedbin RSS reader | OAuth | Yes | Unknown | ↗ |