# SpaceXNow API Specification (v6) Use the SpaceXNow API to access mission, vehicle and statistics data in your own integrations. - Base URL: https://api.spacexnow.com/v6 - Authentication: No API key required. - Format: HTTP GET requests with JSON responses. ## Endpoints Append an endpoint below to the base URL. All endpoints use GET. | Endpoint | Description | | --- | --- | | `/health` | API health status. | | `/missions` | All missions. | | `/missions/upcoming` | Upcoming missions, ordered by launch time (earliest first). | | `/missions/past` | Past missions with a recorded outcome, ordered by launch time (latest first). | | `/missions/starship` | Starship missions, ordered by launch time (latest first). | | `/missions/{id}` | A single mission by numeric ID, returned in a one-item array. | | `/boosters` | All boosters. Optionally filter with ?type=falcon, ?type=starship or ?type=unknown. | | `/boosters/{type}` | Boosters filtered by type: falcon or starship. | | `/capsules` | Capsules with flight counts and mission history. | | `/ships` | Starship vehicles with flight counts and mission history. | | `/stats` | Statistics grouped by category. | | `/statsmin` | A compact list of statistic names and values. | | `/acronyms` | Acronyms and definitions, ordered alphabetically. | | `/notifications` | The latest 100 notifications, newest first. | Replace `{id}` with a numeric mission ID and `{type}` with a supported booster type. The legacy path `/missions/id/{id}` also returns a mission by ID. ## Example request ```sh curl -H "Accept: application/json" https://api.spacexnow.com/v6/health ``` Response: 200 OK ```json { "status": "healthy" } ``` To fetch upcoming launches, request https://api.spacexnow.com/v6/missions/upcoming Mission endpoints return JSON arrays. Launch timestamps are Unix timestamps in seconds; `net_precision` indicates the precision of the launch date or time. ## API versions Choose a version in the URL. Supported JSON API versions are v4, v5 and v6. - v6: Includes capsule, ship and satellite payloads, payload quantities and satellite metadata. Unknown quantities are returned as `null`. - v5: Includes capsule and ship payloads without quantities or satellite payloads. - v4: Uses the legacy `capsules` field on missions. The `/boosters` endpoint returns Falcon boosters. ## Error responses An invalid `type` query value on `/boosters` returns 400 Bad Request: ```json {"error":"Invalid type"} ``` An unknown numeric mission ID returns 404 Not Found: ```json {"error":"Mission not found!"} ```