Open Data Infrastructure

Developer API

Quick Start

3 steps
  1. Sign up for a free account — username + password, no email verification. Your FREE plan is active immediately.
  2. Open the developer dashboard and create an API key.
  3. Set header Authorization: Bearer YOUR_KEY and call https://api.thespacelaunches.cn/api/v1/launches?limit=20.

Code Examples curl · JavaScript · Python

cURL
curl -H "Authorization: Bearer $KEY" \
  "https://api.thespacelaunches.cn/api/v1/launches?status=upcoming&limit=10"
JavaScript
const res = await fetch(
  "https://api.thespacelaunches.cn/api/v1/launches",
  { headers: { Authorization: `Bearer ${KEY}` } }
);
const { items } = await res.json();
Python
import requests
r = requests.get(
  "https://api.thespacelaunches.cn/api/v1/launches",
  headers={"Authorization": f"Bearer {KEY}"},
  params={"status": "upcoming"},
).json()

API Endpoints read-only, JSON, paginated

Method Endpoint Description
GET/api/v1/launchesList launches, filterable by status/date/rocket.
GET/api/v1/launches/{id}Single mission detail.
GET/api/v1/rocketsRocket list + parameters.
GET/api/v1/sitesLaunch site list + coordinates.
GET/api/v1/stats/homeAggregate counters (8118, 532, 69, 251).
Open API Playground ↗

SDKs

JS/TS

@thespacelaunches/sdk

Typed, tree-shakable, browser + node.

Python

thespacelaunches

pip install · python ≥ 3.9.

Go

tslaunches-go

idomatic Go client, MIT-licensed.