The Spaceflight News API is a REST API providing space news data including :
- Space-related news articles from numerous websites
- Space-related blog posts from numerous websites
- Daily summary reports from the International Space Station
SNAPI is still maintained and improved regularly. However, most of the upgrades are related to the news sources or backend improvements, requiring no version bump. New features or data can also be added without bumping the API version if they are fully compatible.
When a new version is released, the announcement will be made the on the TSD Discord server and Twitter (TSD , SNAPI) first.
Yes, SNAPI is fully free to use for everyone. However, if you are using SNAPI in a commercial project, we would appreciate if you consider supporting the project through Patreon or a one-time donation.
No API key is required to use SNAPI.
A list of the main data elements available through SNAPI is available on its website. The full list of endpoints is available in the documentation.
When available, the data is imported from RSS feeds or the API of source websites. Otherwise, it is acquired through automatic web scraping. Some basic filters are applied during processing to remove irrelevant data.
The importer runs every 10 minutes to check for new data, so new articles can take up to 10 minutes to appear in the API.
All the datetime fields in SNAPI follow the ISO 8601 format, for example
2022-10-16T07:21:04.448ZZ
. All times are UTC, as indicated by the Z
at the end of the datetime string.
All professional space-related news sources are allowed in SNAPI for the articles
endpoint.
For the blogs
endpoint, high-quality amateur content is also allowed.
It is possible to suggest new sources to be added to SNAPI by posting in the
💬feedback-and-help
forum of the TSD
Discord server.
Articles are linked to Launch Library 2 launches and events through their LL2 ID.
Filters can be applied to an API query by adding ?<filter>=<value>
to the end of the query.
For example: https://api.spaceflightnewsapi.net/v4/articles?title_contains=NASA
Multiple filters can be applied by separating them with &
.
For example: https://api.spaceflightnewsapi.net/v4/articles/?title_contains=NASA&published_at_lte=2022-01-01
It is possible to increase the number of results per request by using the limit=<number>
filter.
The API supports pagination through the offset=<number>
filter. This filter is automatically applied to the request
URL and provided in the next
field of the response.
The API response can be sorted by any of the available fields using ordering=<field>
. Use -<field>
to sort in
descending order.
If you need any help with SNAPI, you can ask in the
💬feedback-and-help
forum of the TSD
Discord server or email [email protected].
If you found a bug or data mistake, let the staff know in the
💬feedback-and-help
forum of the TSD
Discord server, or
email [email protected].
There are two main ways to contact the SNAPI staff:
- On the Discord server.
- By email to [email protected].