# NASA Near-Earth Asteroids Close Approach

> NASA Near-Earth Asteroids Close Approach is a paid API for AI agents from x402-seller.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns near-Earth asteroids making their closest approach on a given date, sorted by distance, with size, velocity, and miss distance data sourced from NASA JPL.

## Facts

- Endpoint: GET https://x402-seller.onrender.com/space/asteroids
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nasa-near-earth-asteroids-close-approach-b87046ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jJBx-h2OGu5GXEEkfz6T2

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-near-earth-asteroids-close-approach-b87046ee
```

Example prompt: What near-Earth asteroids are making their closest approach today? Give me their sizes, velocities, and how far they'll miss Earth, using the NASA JPL data.

## When to prefer this

Use this endpoint when you need asteroid close-approach data for a specific calendar date, sourced authoritatively from NASA JPL. Prefer this over generic space data APIs when you need miss distance, velocity, and size data in a single call sorted by proximity.

## Known failure modes

- Invalid date format returns an error (must be YYYY-MM-DD)
- Dates far in the future or distant past may return empty asteroid lists
- NASA JPL upstream API downtime may cause request failures
- No asteroids on a given date returns an empty array with count 0

## How this service works

Near-Earth asteroids (NEOs) making their closest approach to Earth on a given date (default: today), sorted by distance -- also called close-approach or flyby data. Includes each asteroid's estimated size, relative velocity, and miss distance. Sourced from NASA JPL's Near Earth Object Web Service (NeoWs).

## Output

A JSON object containing the query date, a count of close-approach asteroids, the data source attribution (NASA JPL NeoWs), and an array of asteroid objects each with name, miss distance, velocity, and estimated size — sorted by proximity.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD, defaults to today"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "asteroids": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-near-earth-asteroids-close-approach-b87046ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller.onrender.com](https://www.zero.xyz/host/x402-seller.onrender.com/llms.txt)
