Asteroid Close Approaches API

Upcoming and past close approaches of asteroids and comets to Earth from NASA/JPL: one row per flyby with the object, the time, the miss distance, the speed and the brightness.

$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, 9 fieldsv1.0

Data from ssd-api.jpl.nasa.gov/cad.api

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

From dateoptional
Start date (YYYY-MM-DD, or now).
Example: now
To dateoptional
End date (YYYY-MM-DD, or +days from now such as +60).
Example: +60
Maximum distance auoptional
Largest miss distance in astronomical units (0.05 au is about 7.5 million km).
Example: 0.05

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-asteroid-close-approaches/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-asteroid-close-approaches/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"from_date":"now"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

from_datetext
Start date (YYYY-MM-DD, or now).
default: nowexample: now
to_datetext
End date (YYYY-MM-DD, or +days from now such as +60).
default: +60example: +60
max_distance_autext
Largest miss distance in astronomical units (0.05 au is about 7.5 million km).
default: 0.05example: 0.05

What's in each record

9 fields: 7 here, 2 technical ones under Technical details.

Basics

  • Designation

    Name or provisional designation of the object.

    Example 2026 XF1

  • Distance au

    Nominal miss distance in astronomical units.

    Example 0.001306

  • Distance (km)

    Nominal miss distance in kilometres.

    Example 195,386

  • Distance minimum au

    Smallest plausible miss distance in astronomical units.

    Example 0.001297

  • Velocity kms

    Speed relative to Earth in kilometres per second.

    Example 10.434494

  • Absolute magnitude H

    Example 28.487

Dates

  • Close approach time

    Time of closest approach (UTC).

    Example Dec 7, 2026

Technical detailsField names and types for developers, and the 2 fields hidden above

Hidden by default

These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.

  • ID idObject designation plus the approach time, unique for each flyby.
  • Orbit ID orbit_idJPL orbit solution used.

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
designationtextDesignation3 of 3
close_approach_timedate and timeClose approach time3 of 3
distance_aunumberDistance au3 of 3
distance_kmnumberDistance (km)3 of 3
distance_min_aunumberDistance minimum au3 of 3
velocity_kmsnumberVelocity kms3 of 3
magnitude_hnumberAbsolute magnitude H3 of 3
orbit_idtextOrbit ID (hidden)3 of 3

How it reads the site

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

Sample records

Sample records
RecordDesignationDistance auDistance (km)Distance minimum auVelocity kmsAbsolute magnitude HClose approach time
12026 XF10.001306195,3860.00129710.43449428.487Dec 7, 2026
22026 XH0.0075421,128,1980.0075228.8895126.811Dec 6, 2026
32026 QQ80.0090371,351,9010.0090370.796731.367Dec 13, 2026

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
  • Data comes from NASA/JPL's Small-Body Database close-approach service and follows its updates; new discoveries appear within days of announcement.
  • Only approaches of Earth are returned, sorted by miss distance (closest first); one run returns at most 1,000 flybys.
  • Distances are given in astronomical units (1 au = 149,597,870.7 km) and in kilometres; the time of closest approach has an uncertainty (distance_min_au and distance_max_au bound it).
  • magnitude_h is the absolute magnitude, a brightness measure, not a size; it can be empty for some objects.
  • Public JPL data, free to use with a credit to NASA/JPL; the source asks for one request at a time.

Version history

A run uses the live version unless the request names another one with version.