# NASA Near-Earth Object (NEO) Asteroid Tracker

> NASA Near-Earth Object (NEO) Asteroid Tracker is a paid API for AI agents from nasa-x402.vercel.app, paid per call via x402, $0.003/call, status down (last checked 2026-10-13).

Returns asteroids making close approaches to Earth within a specified date range (up to 7 days), including size, velocity, miss distance, and hazard classification.

## Facts

- Endpoint: GET https://nasa-x402.vercel.app/nasa/neo?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nasa-x402-vercel-app-493fb672
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g80jvu-umfLYmAUkQylWl

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-x402-vercel-app-493fb672
```

Example prompt: Can you pull up all the asteroids making close approaches to Earth from March 1 to March 7, 2024, and flag any that are potentially hazardous?

## When to prefer this

Choose this endpoint when you need structured, per-asteroid close-approach data for a specific date range — including size estimates, velocity, miss distance, and hazard classification — sourced directly from NASA's NeoWs feed. Prefer this over generic astronomy APIs when planetary defense or asteroid tracking context is needed, or when you want hazardous vs. non-hazardous breakdown over a week-long window.

## Known failure modes

- Missing required start_date parameter returns a validation error
- Date range exceeding 7 days returns an error (max span enforced by NASA NeoWs API)
- Invalid date format (non-YYYY-MM-DD) causes a parse or validation error
- Future dates with no asteroid data yet may return empty asteroid arrays
- Payment failure (x402 protocol) results in 402 response before data is returned
- NASA upstream API downtime or rate limiting causes service unavailability

## How this service works

NASA Near-Earth Object asteroid tracker. Returns asteroids making close approaches to Earth in a date range (max 7 days). Includes size estimates, velocity, miss distance, and hazard classification.

## Output

A JSON object containing an array of asteroids with each entry including: asteroid ID, name, closest approach date, estimated diameter range in meters (min and max), closest approach velocity in km/h, miss distance in km, and a boolean hazard flag. Also includes total element count and count of potentially hazardous objects in the date range.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "end_date": "2025-01-20",
   "start_date": "2025-01-15"
  }
 }
}
```

## 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": [
      "start_date"
     ],
     "properties": {
      "end_date": {
       "type": "string",
       "description": "End date YYYY-MM-DD (max 7 days from start, default: start+6 days)"
      },
      "start_date": {
       "type": "string",
       "description": "Start date YYYY-MM-DD (required)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asteroids": {
       "type": "array"
      },
      "element_count": {
       "type": "number"
      },
      "hazardous_count": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-x402-vercel-app-493fb672/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nasa-x402.vercel.app](https://www.zero.xyz/host/nasa-x402.vercel.app/llms.txt)
