Skip to content

api-evangelist/spacex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceX (Community API) (spacex)

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

Tags

Space, Launch, Satellites, Starlink, Falcon 9, Falcon Heavy, Dragon, Rockets, Open Source, Community, REST, GraphQL, Open Data

Timestamps

  • Created: 2026-05-23
  • Modified: 2026-05-29

APIs

SpaceX REST API (v4 + v5)

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

Tags

Launches, Rockets, Capsules, Cores, Crew, Dragons, Payloads, Ships, Landpads, Launchpads, Starlink, Roadster, Company, History

Properties

SpaceX GraphQL API (community)

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

Tags

GraphQL, Launches, Rockets, Missions

Properties

Common Properties

Artifacts

Machine-readable API specifications organized by format.

OpenAPI

  • SpaceX REST API — 43 operations across 14 resource collections (capsules, company, cores, crew, dragons, history, landpads, launches v5, launchpads, payloads, roadster, rockets, ships, starlink)

JSON Schema

JSON Structure

JSON-LD

  • SpaceX Context — schema.org mapping for Launch, Rocket, Capsule, Core, CrewMember, Dragon, Payload, Ship, Launchpad, Landpad, StarlinkSat, Roadster, Company, HistoryEvent

Examples

Live request/response examples captured against https://api.spacexdata.com:

Capabilities

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

Vocabulary

  • SpaceX Vocabulary — 18-term tag-derived vocabulary for the community SpaceX REST surface

Rules

  • SpaceX Spectral Rules — 27 rules across info, paths, operations, parameters, requests, responses, schemas, security, methods, and general quality enforcing community SpaceX-API conventions

Plans

  • SpaceX Plans — Two plans: Community Free (hosted, no SLA, free, unauthenticated reads) and Self-Hosted (Apache 2.0, Docker image, BYO MongoDB + Redis)

Rate Limits

  • 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)

Known SDKs

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

Maintainers

FN: Kin Lane

Email: kin@apievangelist.com

About

SpaceX — launch services + Starlink global satellite internet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors