SpaceX-API
:rocket: Open Source REST API for SpaceX launch, rocket, core, capsule, starlink, launchpad, and landing pad data.
A free, open-source web API maintained by the r/SpaceX community that provides structured JSON data about SpaceX launches, rockets, satellites, and launch sites, no sign-up needed.
This is a free, open-source web service that collects and shares data about SpaceX rocket launches, spacecraft, and ground infrastructure. Anyone can query it over the internet to get structured data about past and upcoming launches, rocket specifications, reusable rocket cores, crew capsules, Starlink satellites, and launch and landing sites. The project is run by the r/SpaceX community and is not affiliated with or endorsed by SpaceX.
To use it, you make a simple web request to an endpoint like https://api.spacexdata.com/v5/launches/latest and get back a detailed JSON response. That response includes information such as mission name, launch date, success status, crew details, payload descriptions, links to webcasts, Reddit threads, and press kits. No sign-up or account is required to fetch data.
The API covers several data categories: launches (past and upcoming), rockets, recoverable booster cores, Crew Dragon capsules, payloads, launchpads, landing pads, Starlink satellites, and SpaceX's Tesla Roadster that was launched into space. Background jobs run on a schedule to keep the data current, and their health status is tracked publicly.
The project is built on Node.js and can be run locally via Docker. Official documentation, a list of third-party client libraries in various programming languages, and a gallery of apps built on top of the API are all linked from the repository. Database exports are also available for download if you want a snapshot of the full dataset.
This is a community-maintained archive, not an official SpaceX product. If you find incorrect or missing data, the recommended path is to open a GitHub issue.
Where it fits
- Build a SpaceX launch tracker dashboard using live and historical launch data from the API.
- Fetch Starlink satellite data for a mapping or visualization app.
- Display an upcoming launch countdown on a website with mission name, crew, and webcast link.
- Export the full dataset snapshot for offline analysis or data journalism.