An open Rest API for querying all Solar System data.
https://api.le-systeme-solaire.net
You need to have an API key to use that open Rest API.
You just need to have an active email. Ask an API key on https://api.le-systeme-solaire.net/generatekey.html
Add key on a bearer token in your header Authorization description : Authorization: Bearer <API_KEY_GUID>
All planets and their moons, all dwarfs planets and the main asteroids.
Dimensions, mass, flattening, gravity, inclination and temperature.
Semimajor axis, perihelion, aphelion, eccentricity, orbital period and orbital speed.
Discovery circumstances, discoverer(s), year discovered and provisional designation.
For every body, all its satellites and the ability to navigate between satellites and the star.
Known count of each object type : planets, moons, asteroids, comets.
Calculation of the astronomical positions of the Sun, Moon, and planets.
Right Ascension (HMS), Declination (DMS), Azimuth (DMS), Altitude (DMS)
Algorithms by Paul Schlyter, advanced corrections. Planetary perturbations. Topocentric corrections.
How to use the API?
An URL returns all bodies in the database with all data: https://api.le-systeme-solaire.net/rest/bodies/
An URL returns all data of one body: https://api.le-systeme-solaire.net/rest/bodies/{id}
An URL returns all known count for each object type : https://api.le-systeme-solaire.net/rest/knowncount/
An URL returns known count for the object type : https://api.le-systeme-solaire.net/rest/knowncount/{id}
An URL returns known count for the object type : https://api.le-systeme-solaire.net/rest/positions?lon=value&lat=value&elev=value&datatime=value&zon=value
| # | Parameter | Action |
|---|---|---|
| 1 | data | The data you want to retrieve (comma separated). |
| 2 | exclude | One or more data you want to exclude (comma separated). |
| 3 | order | The sort order data you want to use and the sort direction (comma separated). |
| 4 | page | Page number (number>=1) and page size (size>=1 with 20 as default) (comma separated). |
| 5 | filter[] | Filters to be applied. Each filter consists of a data, an operator and a value (comma separated). |
| 6 | satisfy | Should all filters match (default). |
| # | Parameter | Action |
|---|
| # | Parameter | Action |
|---|---|---|
| 1 | name | Name of object. |
| 2 | ra | Right Ascension in hour-minute-seconde. |
| 3 | dec | Declination in degree-minute-seconde. |
| 4 | az | Azimuth in degree-minute-seconde. |
| 5 | alt | Altitude in degree-minute-seconde. |
Distributed under MIT license.