Community-maintained, open-source REST and GraphQL API for SpaceX data — launches, rockets, capsules, cores, crew, dragons, payloads, ships, landpads, launchpads, Starlink satellites, the Tesla Roadster ephemeris, company info, and historical events. Operated by the r-spacex community (the same group behind the r/SpaceX subreddit) and licensed Apache 2.0. The canonical hosted base URL is https://api.spacexdata.com and the canonical source repository is https://github.com/r-spacex/SpaceX-API.
Status: Maintenance-only as of 2024. New launches and missions are NOT being added to the dataset; the project remains online for historical lookups and as a teaching/sample API. This makes it an excellent fixture for SDK tutorials, MCP server demos, and API design exercises, but it is no longer a live source of upcoming SpaceX flight data.
Disclaimer: This community project is not affiliated with, endorsed by, or officially connected to Space Exploration Technologies Corp.
URL: Visit APIs.json URL
Run: Capabilities Using Naftiko
Space, Launch, Satellites, Starlink, Falcon 9, Falcon Heavy, Dragon, Rockets, Open Source, Community, REST, GraphQL, Open Data
- Created: 2026-05-23
- Modified: 2026-05-29
Open-source REST API exposing all SpaceX launch, rocket, capsule, core, crew, dragon, ship, landpad, launchpad, payload, Starlink, Roadster, company, and history data. v4 is the canonical resource surface; the Launches resource also has a v5 surface that omits the v4 response/query transforms. Read operations are unauthenticated; destructive operations require an spacex-key header.
Human URL: https://github.com/r-spacex/SpaceX-API
Base URL: https://api.spacexdata.com
Launches, Rockets, Capsules, Cores, Crew, Dragons, Payloads, Ships, Landpads, Launchpads, Starlink, Roadster, Company, History
- Documentation
- Getting Started
- Source Code
- OpenAPI
- Postman
- License (Apache 2.0)
- Changelog
- Status
- Backups
Community-maintained GraphQL gateways over the SpaceX REST data, providing typed schema access and nested-field selection across launches, rockets, missions, payloads, ships, and crew. Multiple community gateways exist; the SpaceXLand/api project is the most widely cited reference implementation. Like the REST surface, the underlying dataset is in maintenance-only mode as of 2024.
Human URL: https://github.com/SpaceXLand/api
GraphQL, Launches, Rockets, Missions
- Documentation
- Source Code
- GraphQL Alternative: SpaceX-GraphQL (Jordan Owens)
- GraphQL Alternative: xploration-graphql
- GraphQL Alternative: spacex-graphql-gateway
- Website
- GitHub Organization
- Source Code
- License (Apache 2.0)
- Documentation
- Getting Started
- Changelog
- Issues
- Pull Requests
- Status
- Backups
- Docker Image
- Clients
- Apps
- API Style Guide
- Subreddit
- Plans
- Rate Limits
- Spectral Rules
- Vocabulary
- JSON-LD Context
- MCP Server (community): fercervantesx/lnl-spacex-mcp-server
Machine-readable API specifications organized by format.
- SpaceX REST API — 43 operations across 14 resource collections (capsules, company, cores, crew, dragons, history, landpads, launches v5, launchpads, payloads, roadster, rockets, ships, starlink)
- Capsule
- Company
- Core
- Crew Member
- Dragon
- History Event
- Landpad
- Launch
- Launchpad
- Payload
- Roadster
- Rocket
- Ship
- Starlink Satellite
- Capsule
- Company
- Core
- Crew Member
- Dragon
- History Event
- Landpad
- Launch
- Launchpad
- Payload
- Roadster
- Rocket
- Ship
- Starlink Satellite
- SpaceX Context — schema.org mapping for Launch, Rocket, Capsule, Core, CrewMember, Dragon, Payload, Ship, Launchpad, Landpad, StarlinkSat, Roadster, Company, HistoryEvent
Live request/response examples captured against https://api.spacexdata.com:
- Get Capsule
- Get Company
- Get Core
- Get Crew Member
- Get Dragon
- Get History Event
- Get Landpad
- Get Latest Launch
- Get Launchpad
- Get Next Launch
- Get Payload
- Get Roadster
- Get Rocket
- Get Ship
- Get Starlink Satellite
Naftiko capabilities organized as workflow-oriented bundles over the SpaceX REST surface.
| Workflow | APIs Combined | Tools | Persona |
|---|---|---|---|
| Launches | SpaceX REST API | 5 | Mission analyst / launch tracker |
| Rockets | SpaceX REST API | 2 | Vehicle researcher |
| Crew & Dragon | SpaceX REST API | 4 | Human-spaceflight analyst |
| Starlink | SpaceX REST API | 3 | Satellite-orbit tracker |
| Fleet & Pads | SpaceX REST API | 4 | Infrastructure researcher |
- SpaceX Vocabulary — 18-term tag-derived vocabulary for the community SpaceX REST surface
- SpaceX Spectral Rules — 27 rules across info, paths, operations, parameters, requests, responses, schemas, security, methods, and general quality enforcing community SpaceX-API conventions
- SpaceX Plans — Two plans: Community Free (hosted, no SLA, free, unauthenticated reads) and Self-Hosted (Apache 2.0, Docker image, BYO MongoDB + Redis)
- SpaceX Rate Limits — Per-IP 50 req/s on the hosted endpoint plus Redis cache TTLs (launches 20s; most resources 5 min; dragons/rockets 24 h)
The r-spacex community catalogs third-party clients in docs/clients.md. Notable v4-compatible clients:
| Language | Project | Repo |
|---|---|---|
| .NET | Oddity | Tearth/Oddity |
| Python | SpaceXPy | SaidBySolo/SpaceXPy |
| Swift | KSBSpacexKit | SaiBalaji22/KSBSpacexKit |
| C++ | Marsy | AzuxDario/Marsy |
| Node.js | spacex-api.js | AkiaCode/spacex-api.js |
| Dart | spacex_api | ahsanz024/spacex_api |
| Ruby | spacex-api-ruby | victorperez/spacex-api-ruby |
| Java | spacex-api | artfultom/spacex-api |
FN: Kin Lane
Email: kin@apievangelist.com