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.

Try it
Ready-made, maintained by usRecords, 15 fieldsv1.0

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

Kindoptional
a for asteroids (default), c for comets.
Orbit classoptional
Orbit class code such as APO, ATE, AMO, MBA, JFc. Leave empty for all classes of the kind.
Example: APO

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
Endpoint
POSThttps://pullrow.dev/v1/apis/jpl-sbdb-orbit-query/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

kindtext
a for asteroids (default), c for comets.
default: aexample: aone of: a, c
orbit_classtext
Orbit class code such as APO, ATE, AMO, MBA, JFc. Leave empty for all classes of the kind.
example: APO

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

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
urllinkLink3 of 3
full_nametextFull name3 of 3
nametextName3 of 3
designationtextDesignation3 of 3
orbit_classtextOrbit class3 of 3
semi_major_axisnumberSemi major axis3 of 3
eccentricitynumberOrbital eccentricity3 of 3
inclinationnumberInclination3 of 3
abs_magnitudenumberAbs magnitude3 of 3
orbital_period_daysnumberOrbital period days3 of 3
earth_moid_aunumberEarth moid au3 of 3
diameter_kmnumberDiameter (km)3 of 3
is_neoyes or noNeo3 of 3
is_phayes or noPha3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameFull nameDesignationOrbit classSemi major axisOrbital eccentricityInclinationAbs magnitudeOrbital period daysEarth moid auDiameter (km)NeoPhaLink
1Icarus1566 Icarus (1949 MA)1566APO1.0780.82722.816.534090.03381YesYesssd.jpl.nasa.gov/tools/sbdb_lookup.html
2Geographos1620 Geographos (1951 RA)1620APO1.2460.335513.3415.275080.02952.56YesYesssd.jpl.nasa.gov/tools/sbdb_lookup.html
3Toro1685 Toro (1948 OA)1685APO1.3680.4369.3814.265840.05093.4YesNossd.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.
Known limits
  • 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.