API Directory › 🚀 Science & Space › Solar System OpenData
No authHTTPSCORS

Solar System OpenData API

Data on the planets, moons and bodies of our solar system.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Solar System OpenData docs ↗

What it does

The Solar System OpenData API (Le Système Solaire) is a free database of Solar System bodies: the eight planets, dwarf planets, moons, and notable asteroids and comets, each with physical properties (mass, radius, density, gravity, escape velocity) and orbital elements (semi-major axis, eccentricity, inclination, orbital period).

Base URL

https://api.le-systeme-solaire.net/rest

Authentication

None. Main endpoint /bodies/ lists everything; /bodies/{id} (e.g. /bodies/mars, /bodies/lune) fetches one. Filtering and sorting are done with ?filter[]= and ?order=.

Code examples

curl
curl -s "https://api.le-systeme-solaire.net/rest/bodies/jupiter"
curl -s "https://api.le-systeme-solaire.net/rest/bodies/?filter[]=isPlanet,eq,true&data=englishName,mass,gravity"
Python
import requests

r = requests.get("https://api.le-systeme-solaire.net/rest/bodies/",
    params={"filter[]": "isPlanet,eq,true", "order": "semimajorAxis,asc"}, timeout=10)
for b in r.json()["bodies"]:
    print(b["englishName"], b["gravity"], "m/s^2")

Rate limits & quotas

No documented rate limit. It is a static reference dataset, so cache it — the values do not change. Some field names and descriptions are in French (name) with an English counterpart (englishName).

Key response fields

englishName / nameBody name (English / French)
mass.massValue × 10^massExponentMass in kg, split into mantissa and exponent
meanRadius / gravity / densityPhysical properties (km, m/s², g/cm³)
semimajorAxis / eccentricity / inclinationOrbital elements
moons[]For planets: list of moon names with detail URLs
isPlanetBoolean flag used for filtering

Common errors

404Unknown body id — try the French id (lune, not moon) or list /bodies/ first.
(empty bodies array)Filter matched nothing — check the filter[]=field,op,value syntax.

When to use it (and alternatives)

Great for astronomy education tools, planet-comparison charts, orbital simulators and quizzes. For near-Earth asteroids and close approaches specifically, NASA’s NeoWs (in the NASA APIs) is the better source.

FAQ

How do I read the mass value?

It is scientific notation split into two fields: mass.massValue * 10**mass.massExponent gives kilograms. Same pattern for vol (volume).

Why is a body's id in French?

The project is French. Body ids and the name field are French (terre, lune); use englishName for display and check /bodies/ for the exact ids.

Can I get just a few fields?

Yes — ?data=englishName,gravity,meanRadius trims the response to those keys, which is worth doing for the full /bodies/ list.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Science & Space APIs

← Back

More Science & Space APIs · All 196 APIs