# Space Objects Distance Converter

> Space Objects Distance Converter 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).

Converts a distance value between kilometres, miles, astronomical units, and lunar distances, and returns the equivalent light travel time in seconds.

## Facts

- Endpoint: GET https://space-objects.x402tookit.com/space-distance?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-distance-converter-e6cb9237
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8kEaClWHsT440be6o30cr

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-distance-converter-e6cb9237
```

Example prompt: Convert 384400 km into miles, astronomical units, and lunar distances, and tell me how long light takes to travel that distance.

## When to prefer this

Use this endpoint when you need to convert a known numeric distance between standard astronomical units (km, miles, AU, lunar distances) and also want the light travel time. It is ideal for astronomy applications, asteroid proximity analysis, space mission context, or any scenario where a user needs to intuitively understand a space distance by expressing it in multiple familiar units simultaneously.

## Known failure modes

- Missing required query parameters (value or unit) returns an error
- Value outside the 0 to 1e15 range may be rejected or produce unexpected results
- Invalid unit string (not km, mi, au, or ld) returns a validation error
- Network or payment failure returns no result

## How this service works

Convert a distance between km, miles, astronomical units and lunar distances, with light travel time.

## Output

Returns the input value expressed in all four units simultaneously — kilometres, miles, astronomical units, and lunar distances — plus the equivalent light travel time in seconds. Also includes metadata such as the input unit, input value, and optional summary or disclaimer fields.

## 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": [
      "value",
      "unit"
     ],
     "properties": {
      "unit": {
       "type": "string",
       "description": "km, mi, au or ld (lunar distance)"
      },
      "value": {
       "type": "number",
       "description": "Distance to convert, 0 to 1e15 in the chosen unit"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "miles": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "inputUnit": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "inputValue": {
       "type": [
        "null",
        "number"
       ]
      },
      "kilometres": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "lunarDistances": {
       "type": [
        "null",
        "number"
       ]
      },
      "lightTimeSeconds": {
       "type": [
        "null",
        "number"
       ]
      },
      "astronomicalUnits": {
       "type": [
        "null",
        "number"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/space-objects-distance-converter-e6cb9237/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)
