News
当前发布在众多新闻源和博客上的头条新闻
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 新闻
- 文档 / URL
- https://newsapi.org/
简介
News API(newsapi.org)提供多个来源的头条——基于密钥(无效密钥返回 401,已实测)。
快速开始
头条(替换 YOUR_KEY):
curl "https://newsapi.org/v2/top-headlines?country=us&apiKey=YOUR_KEY"
{ "status": "error", "code": "apiKeyInvalid", "message": "Your API key is invalid or incorrect." }
认证方式
- 在 newsapi.org 注册 → 免费 API 密钥。
- 通过
apiKey查询参数携带(无效 → 401,已实测)。
速率限制与注意事项
- 免费层:100 次/天(看文档);付费档可扩展。
- 头条、everything、来源。
常见问题
News API 免费吗? 免费层:100 次/天;更多需要付费。
为什么 401? 无效密钥返回 401(已实测)——请注册拿密钥。
认证风格是什么?
apiKey 查询参数。
新闻 分类更多
| 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 | ↗ |