JPL Small-Body and CNEOS Data · Small body query
ssd-api-jpl-nasa-gov/small-bodies/small_body_querySearch public records with JPL Small-Body and CNEOS Data · Small body query from Alexandria through one Spiral API key. Finding many small bodies at once: the largest asteroids, all Atiras, PHAs larger than 1 km, Jupiter Trojans with known albedo, comets with q below 1 au, or orbital elements for a class. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
kind | one of asteroid, comet | — | Asteroids or comets only. |
sort | list | — | Up to three SBDB fields; prefix - for descending, such as -diameter. |
group | one of neo, pha | — | NEOs or PHAs only. |
limit | number 1 to 200 | 20 | Records per page. |
fields | list | — | SBDB output fields (case-sensitive), such as full_name, H, diameter, albedo, rot_per, e, a, q, i, om, w, ma, epoch_cal, per_y, moid_ld, spec_B. pdes is always added. |
numbered | one of numbered, unnumbered | — | Numbered or unnumbered only. |
match_any | true or false | — | Combine constraints with OR instead of AND. |
constraints | list | — | Field constraints field|OP|value[|value2], such as diameter|GT|100, H|LT|18, albedo|DF, name|RE|^Ka. |
orbit_class | list | — | Orbit class codes: IEO (Atira), ATE, APO, AMO, MCA, IMB, MBA, OMB, TJN, AST, CEN, TNO, PAA, HYA, ETc, JFc, JFC, CTc, HTC, PAR, HYP, COM. |
continuation | text | — | Cursor from a previous call's continuation. |
has_satellite | true or false | — | Only bodies with at least one known satellite. |
exclude_fragments | true or false | — | Exclude comet fragments. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "ssd-api-jpl-nasa-gov/small-bodies/small_body_query",
"input": {
"kind": "asteroid"
}
}'Frequently asked questions
How much does JPL Small-Body and CNEOS Data · Small body query cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use JPL Small-Body and CNEOS Data · Small body query through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "ssd-api-jpl-nasa-gov/small-bodies/small_body_query"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use JPL Small-Body and CNEOS Data · Small body query?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use JPL Small-Body and CNEOS Data · Small body query?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.