---
title: "SpaceX API"
url: "https://ridwaanhall.com/projects/spacex-api"
markdown: "https://ridwaanhall.com/projects/spacex-api.md"
summary: "A REST API for SpaceX launch statistics, upcoming launches, launch history and live Dragon tracking."
---

# SpaceX API

> A REST API for SpaceX launch statistics, upcoming launches, launch history and live Dragon tracking.

- Category: API
- Status: Maintenance Support
- Started: September 1, 2025
- Built with: Django, Django REST Framework, Python, Vercel, REST API
- Live: https://spacex-api.rone.dev
- Source: https://github.com/ridwaanhall/SpaceX

## About

### The problem

SpaceX launch data is spread across pages and feeds, and Dragon tracking has no simple developer interface.

### The approach

I built a Django REST Framework API that returns launch statistics, upcoming missions, launch history and Dragon capsule telemetry as JSON, deployed on Vercel with python-decouple for configuration.

- Statistics for total launches, landings and reflights.
- Upcoming missions with live updates, and the full launch history.
- Dragon GPS tracking and telemetry, with Python examples in the documentation.

### The result

Live at spacex-api.rone.dev. It replaced an earlier API repository and is the data source behind my Follow Dragon tracker.

## Features

- **Launch Statistics**: Total launches, landings and reflights.
- **Upcoming Launches**: Details of the next missions, kept current.
- **Launch History**: Historical launches with mission detail.
- **Dragon Tracking**: GPS and telemetry for Dragon capsules.

## Tags

SpaceX, Spacex Api, Falcon 9, Starship

## Elsewhere

- This page for people: https://ridwaanhall.com/projects/spacex-api
- Index of every page as Markdown: [llms.txt](https://ridwaanhall.com/llms.txt)
