# Space Objects Close Approaches

> Space Objects Close Approaches is a paid API for AI agents from space-objects.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Returns asteroids and comets passing Earth within a configurable lunar-distance limit over a specified recent or upcoming day window, with distance, speed, and size data.

## Facts

- Endpoint: GET https://space-objects.x402tookit.com/close-approaches?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/space-objects-close-approaches-86acfb45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oL5GBKBV8rQWoA_n9bN36

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 space-objects-close-approaches-86acfb45
```

Example prompt: Show me all asteroids and comets passing within 8 lunar distances of Earth in the next 45 days, sorted by distance, and return up to 20 results.

## When to prefer this

Use this endpoint when you need a filterable, paginated list of multiple upcoming or recent Earth close approaches across all known NEOs, with configurable distance and time windows. Prefer this over the single-object lookup endpoint when you don't have a specific asteroid designation and want a broad survey. It is ideal for monitoring dashboards, alert systems, or scheduled summaries of space traffic near Earth.

## Known failure modes

- Invalid query parameter values (e.g. days outside 1-365, limit outside 1-50, maxDistanceLD outside 0.1-50) may return a 400 error
- No results returned if no objects pass within the specified distance window during the time range
- Degraded mode flag set to true if upstream NASA/JPL data is temporarily unavailable or stale
- Payment failure (402) if x402 payment header is missing or USDC balance is insufficient

## How this service works

Asteroids and comets passing Earth within a lunar-distance limit in the next or last N days: distance, speed, size range.

## Output

A JSON object containing a list of close-approach events, each with the object's name, designation, approach date, miss distance in lunar distances/AU/km, relative speed in km/s, absolute magnitude, size range estimates, time uncertainty, and days from now. Also includes a summary string, source URL, total count returned, direction (upcoming or past), and a 'closest' highlight object.

## 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": {
      "days": {
       "type": "integer",
       "description": "Window length 1 to 365 days (default 30)"
      },
      "limit": {
       "type": "integer",
       "description": "Passes returned, 1 to 50 (default 15)"
      },
      "orderBy": {
       "type": "string",
       "description": "date (default) or distance (closest first)"
      },
      "direction": {
       "type": "string",
       "description": "upcoming (default) or past"
      },
      "maxDistanceLD": {
       "type": "number",
       "description": "Maximum miss distance in lunar distances, 0.1 to 50 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "closest": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "name": {
         "type": [
          "null",
          "string"
         ]
        },
        "approachTdb": {
         "type": [
          "null",
          "string"
         ]
        },
        "distanceLunar": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "returned": {
       "type": [
        "null",
        "number"
       ]
      },
      "direction": {
       "type": [
        "null",
        "string"
       ]
      },
      "sourceUrl"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/space-objects-close-approaches-86acfb45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from space-objects.x402tookit.com](https://www.zero.xyz/host/space-objects.x402tookit.com/llms.txt)
