# PrimeAPI Geo Distance Calculator

> PrimeAPI Geo Distance Calculator is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.117955/call, status unknown (last checked 2026-09-15).

Calculates the geographic distance between two coordinate points or locations

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/geo/distance
- Price: $0.117955/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-geo-distance-calculator-450d798e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fTyWIS0WyNnaxfg-qTAh9

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 primeapi-geo-distance-calculator-450d798e -d '<json body>'
```

Example prompt: What is the geographic distance between New York City and Los Angeles?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call distance computation without managing API keys. Ideal for AI agents that need geographic distance on demand within a multi-tool workflow, especially when already using USDC on Base for other PrimeAPI calls. Best for point-to-point distance lookups rather than full routing or turn-by-turn directions.

## Known failure modes

- Invalid or unrecognizable location names returned as error
- Ambiguous location names causing incorrect geocoding
- Missing required input coordinates or query resulting in 400 error
- Payment failure via x402 protocol blocking the request
- Service unavailability returning 5xx error

## 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 a computed geographic distance value between two input locations or coordinate pairs, typically including the numeric distance and the unit of measurement (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/primeapi-geo-distance-calculator-450d798e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
