Solar System OpenData API
Data on the planets, moons and bodies of our solar system.
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
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 -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"
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 / name | Body name (English / French) |
| mass.massValue × 10^massExponent | Mass in kg, split into mantissa and exponent |
| meanRadius / gravity / density | Physical properties (km, m/s², g/cm³) |
| semimajorAxis / eccentricity / inclination | Orbital elements |
| moons[] | For planets: list of moon names with detail URLs |
| isPlanet | Boolean flag used for filtering |
Common errors
| 404 | Unknown 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.