Spaceflight News
航天相关新闻 🚀
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 新闻
- 文档 / URL
- https://spaceflightnewsapi.net
简介
Spaceflight News API(SNAPI)聚合主要媒体的航天新闻——SpaceNews、NASASpaceflight、Ars Technica 等——提供干净、可筛选的 JSON 数据流。免费且免密钥,是新闻面板、太空主题应用和演示项目的可靠内容源。
快速开始
最新文章(实测——API 目前索引了 35,000+ 篇文章):
curl "https://api.spaceflightnewsapi.net/v4/articles/?limit=1"
按标题筛选:
curl "https://api.spaceflightnewsapi.net/v4/articles/?title_contains=starship"
按来源站点筛选:
curl "https://api.spaceflightnewsapi.net/v4/articles/?news_site=nasaspaceflight"
分页与排序:
curl "https://api.spaceflightnewsapi.net/v4/articles/?limit=10&offset=20&ordering=-published_at"
关联发射/事件(筛选或展开):
curl "https://api.spaceflightnewsapi.net/v4/articles/?launches=5eb87d42ffd86d0004b60000"
每篇文章包含
id、title、url、image_url、news_site、summarypublished_at/updated_at时间戳launches和events引用(id、提供方、发射/事件 id)
认证方式
无需认证——免密钥开放。
速率限制与注意事项
- 免费,正常使用下额度宽松;具体速率政策见官方文档页。
- 响应中的
count是匹配文章总数,可用于分页 UI。 - 摘要很短——全文请通过
url展开。 - 已启用 CORS,浏览器客户端可用。
常见问题
Spaceflight News API 免费吗? 是的——免费且免密钥。
可以按主题筛选吗?
可以——title_contains、summary_contains、news_site 以及发射/事件 ID。
可以在浏览器直接调用吗? 可以——已启用 CORS。
新闻 分类更多
| 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 | ↗ |