# NASA JPL Small-Body Database Lookup

> NASA JPL Small-Body Database Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.00144/call, status unknown (last checked 2026-09-14).

Look up detailed physical and orbital data for any asteroid or comet by name, number, or designation from NASA JPL's Small-Body Database

## Facts

- Endpoint: GET https://2s.io/api/space/body
- Price: $0.00144/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nasa-jpl-small-body-database-lookup-4d3a6bbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WLpQT6Qa_XQL6fHmrEt5t

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nasa-jpl-small-body-database-lookup-4d3a6bbf
```

Example prompt: Can you pull up the full NASA JPL small-body data for asteroid 433 Eros — I want its orbit class, NEO and hazardous flags, diameter, rotation period, and orbital elements like eccentricity and Earth MOID.

## When to prefer this

Use this endpoint when you need authoritative NASA JPL data on a specific asteroid or comet — including orbital elements, physical parameters, NEO/PHA classification, and orbit class. Prefer this over general web search when you need structured, machine-readable small-body data for planetary defense analysis, mission planning, or astronomy research. For close approaches of a specific body, use the companion /api/space/close-approaches endpoint instead.

## Known failure modes

- Body not found in SBDB for ambiguous or misspelled designation — returns empty or error response
- Multiple matches for a partial name — may return list of candidates rather than single body
- Designation format not recognized — e.g. malformed comet periodic number
- Physical parameters missing for poorly observed bodies — fields may be null or absent
- Rate limiting or payment failure for x402 micropayment protocol

## How this service works

Look up any asteroid or comet in NASA JPL's Small-Body Database by designation, number, or name (e.g. "433", "Eros", "433 Eros", "1P/Halley", "2024 YR4"). Returns full name + kind + orbit class (e.g. Amor, Apollo, Jupiter-family comet), NEO and potentially-hazardous-asteroid flags, physical params (absolute magnitude H, diameter, extent, rotation period, albedo, density, spectral type), and orbital elements (eccentricity, semi-major axis, perihelion/aphelion, inclination, period, Earth MOID, observation arc). Astronomy, planetary-defense, and mission-planning research. Public-domain NASA/JPL data; for a body's near-Earth close approaches see /api/space/close-approaches.

## Output

Returns the asteroid or comet's full name, body kind, orbit class (e.g. Amor, Apollo, Jupiter-family comet), NEO flag, potentially-hazardous-asteroid flag, physical parameters (absolute magnitude H, diameter, extent, rotation period, albedo, density, spectral type), and orbital elements (eccentricity, semi-major axis, perihelion, aphelion, inclination, period, Earth MOID, observation arc).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "q": "433 Eros"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Asteroid/comet designation, number, or name."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-jpl-small-body-database-lookup-4d3a6bbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
