JPL Small-Body Orbit Query API
Asteroids and comets from NASA/JPL's Small-Body Database, listed by kind and orbit class: name, designation, orbit class, semi-major axis, eccentricity, inclination, brightness, period, size and near-Earth flags.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from ssd-api.jpl.nasa.gov/doc/sbdb_query.html
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/jpl-sbdb-orbit-query/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"kind":"a"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
15 fields: 14 here, 1 technical one under Technical details.
Basics
- Full name
Full name with number and provisional designation, such as 1566 Icarus (1949 MA).
Example 1566 Icarus (1949 MA)
- Name
Proper name of the body, when it has one.
Example Icarus
- Designation
Primary designation, such as 1566 or 2020 SW.
Example 1566
- Orbit class
Orbit class code, such as APO (Apollo) or MBA (main belt).
Example APO
- Semi major axis
Semi-major axis of the orbit in astronomical units.
Example 1.078
- Orbital eccentricity
Example 0.827
- Inclination
Orbital inclination in degrees.
Example 22.8
- Abs magnitude
Absolute magnitude H (brightness); lower is brighter.
Example 16.53
- Orbital period days
Example 409
- Earth moid au
Closest possible approach of the orbit to Earth's orbit, in astronomical units.
Example 0.0338
- Diameter (km)
Diameter in kilometres, when measured or estimated.
Example 1
- Neo
True for a near-Earth object.
Example Yes
- Pha
True for a potentially hazardous asteroid.
Example Yes
Links
- Link
The body's page in the NASA/JPL lookup tool.
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idNASA/JPL's SPK id of the body.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
url | link | Link | 3 of 3 |
full_name | text | Full name | 3 of 3 |
name | text | Name | 3 of 3 |
designation | text | Designation | 3 of 3 |
orbit_class | text | Orbit class | 3 of 3 |
semi_major_axis | number | Semi major axis | 3 of 3 |
eccentricity | number | Orbital eccentricity | 3 of 3 |
inclination | number | Inclination | 3 of 3 |
abs_magnitude | number | Abs magnitude | 3 of 3 |
orbital_period_days | number | Orbital period days | 3 of 3 |
earth_moid_au | number | Earth moid au | 3 of 3 |
diameter_km | number | Diameter (km) | 3 of 3 |
is_neo | yes or no | Neo | 3 of 3 |
is_pha | yes or no | Pha | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | Full name | Designation | Orbit class | Semi major axis | Orbital eccentricity | Inclination | Abs magnitude | Orbital period days | Earth moid au | Diameter (km) | Neo | Pha | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Icarus | 1566 Icarus (1949 MA) | 1566 | APO | 1.078 | 0.827 | 22.8 | 16.53 | 409 | 0.0338 | 1 | Yes | Yes | ssd.jpl.nasa.gov/tools/sbdb_lookup.html |
| 2 | Geographos | 1620 Geographos (1951 RA) | 1620 | APO | 1.246 | 0.3355 | 13.34 | 15.27 | 508 | 0.0295 | 2.56 | Yes | Yes | ssd.jpl.nasa.gov/tools/sbdb_lookup.html |
| 3 | Toro | 1685 Toro (1948 OA) | 1685 | APO | 1.368 | 0.436 | 9.38 | 14.26 | 584 | 0.0509 | 3.4 | Yes | No | ssd.jpl.nasa.gov/tools/sbdb_lookup.html |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Needs an orbit class code such as APO, ATE, AMO, MBA (asteroids) or JFc, HTC (comets) to narrow the list; with no class it returns the first bodies of the whole kind. An unknown class is refused with the source's message.
- Up to 10,000 records per run, read in pages of 500 in the source's own order.
- Many bodies have no value for brightness (comets have none in abs_magnitude), size or period: those fields are null. Comets report period only for periodic ones.
- Orbit values are the latest solution NASA/JPL publishes and change slowly as new observations arrive. NASA/JPL data is public; credit NASA/JPL Solar System Dynamics.
- Requests are spaced half a second apart.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.