# Miles to Astronomical Units Converter

> Miles to Astronomical Units Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status down (last checked 2026-10-21).

Converts a numeric distance value from miles to astronomical units (AU)

## Facts

- Endpoint: GET https://agent402.tools/api/convert/miles-to-astronomical-units?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/miles-to-astronomical-units-converter-be95f5ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z-mXvy0_XqmP58BrtqcPs

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 miles-to-astronomical-units-converter-be95f5ef
```

Example prompt: How many astronomical units is 93,000,000 miles? Can you convert that distance for me?

## When to prefer this

Use this endpoint when you need a quick, programmatic conversion from miles to astronomical units without running local math. Ideal for agents dealing with space distances, orbital mechanics context, or any scenario where a user provides a distance in miles but needs it expressed in AU scale.

## Known failure modes

- Missing 'value' query parameter returns an error
- Non-numeric value string causes conversion failure
- Extremely large or small numbers may cause precision issues
- Payment failure (402) if x402 credentials are invalid or insufficient USDC balance

## How this service works

Convert miles to astronomical units (length). Pass ?value=N.

## Output

A converted numeric value representing the input distance expressed in astronomical units (AU), calculated from the provided miles value.

## 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"
     ],
     "properties": {
      "value": {
       "type": "string",
       "description": "Numeric value to convert"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/miles-to-astronomical-units-converter-be95f5ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
