REST API · v1.0 · Token required

The space data API
for developers

Stars, planets, moons, and spacecraft — all in one clean REST API. Free to sign up, get a token instantly, and start building.

GET /api/v1/stars/1
{
  "data": {
    "id": 1,
    "name": "Sol",
    "type": "main_sequence",
    "mass_solar": 1.0,
    "luminosity_solar": 1.0,
    "temperature_k": 5778,
    "distance_ly": 0.0,
    "constellation": null,
    "planet_count": 9
  }
}

Everything you need to explore the cosmos

Four resource types, full CRUD, paginated JSON. Read endpoints are always free and open.

★

Stars

Type, mass, luminosity, temperature, distance, and constellation data for stars across the galaxy.

■

Planets

Terrestrial, gas giants, ice giants, and dwarf planets with orbital mechanics and physical properties.

○

Moons

Natural satellites with mass, radius, and orbital period data linked to their parent planets.

🚀

Spaceships

Real missions and spacecraft — from Apollo to Voyager — plus a few fictional favourites.

🔒

Token Auth

All endpoints require a bearer token. Sign up free and get a read token provisioned instantly.

✎

Write API

Create a free account, provision an app, and get a write token to contribute data via the API.

Ready to launch?

Create a free account and start building in minutes.

Get Started Free