# ApexAPI Geo Distance Calculator

> ApexAPI Geo Distance Calculator is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.117955/call, status unknown (last checked 2026-10-10).

Calculates the geographic distance between two locations using coordinate or address inputs

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/geo/distance?utm_source=zero.xyz
- Price: $0.117955/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-geo-distance-calculator-4b97d619
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ua0DJtrKSMGwCliA55j1j

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 apexapi-geo-distance-calculator-4b97d619 -d '<json body>'
```

Example prompt: What's the straight-line geographic distance between San Francisco, CA and Austin, TX?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call geographic distance computation without managing API keys, especially within an agentic workflow that already uses x402/USDC payments on Base. Useful for logistics, travel planning, or any task requiring distance between two geographic points.

## Known failure modes

- Invalid or unrecognized location names return an error
- Missing origin or destination yields a 400 bad request
- Ambiguous location strings may produce incorrect results
- Service unavailable returns a 5xx error
- Payment failure (402) if USDC payment on Base is not completed

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns the computed geographic distance between two specified locations, likely including the distance value and unit (e.g. kilometers or miles).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-geo-distance-calculator-4b97d619/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
