# OpenWebNinja Driving Directions

> OpenWebNinja Driving Directions is a paid API for AI agents from x402.openwebninja.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns turn-by-turn driving directions and best route options between an origin and destination, including route parts, distances, and durations.

## Facts

- Endpoint: GET https://x402.openwebninja.com/driving-directions/get-directions
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openwebninja-driving-directions-97f4e91d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_azOFpawJBdcwpcdmntPpP

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 openwebninja-driving-directions-97f4e91d
```

Example prompt: Can you get me driving directions from 'Times Square, New York, NY' to 'Brooklyn Bridge, Brooklyn, NY' in miles, avoiding tolls?

## When to prefer this

Choose this endpoint when you need structured, turn-by-turn driving directions with route metadata (distance, duration, route parts) between two locations, especially when consuming via a micropayment x402 flow. Prefer over geocoding-only endpoints when you need navigable route steps, not just coordinates.

## Known failure modes

- Missing required 'origin' or 'destination' query parameters returns a 400/422 error
- Unresolvable location strings (e.g. ambiguous or misspelled addresses) may return empty routes or an error
- Invalid avoid_routes value may be ignored or cause an error
- Payment not fulfilled results in a 402 Payment Required response
- Rate limiting or upstream Google Maps API failure may return a 5xx error

## How this service works

40+ public web-data, SERP, e-commerce, real-estate, finance and AI-search APIs, payable per call over x402 (USDC on Base, Polygon, Arbitrum). No account or API key required. Most endpoints $0.003; AI-model endpoints $0.005.

## Output

Returns a structured object containing origin and destination details (name, address, latitude, longitude, Google Places ID), and an array of best route options each with named route parts, step-by-step turn-by-turn instructions, human-readable distance and duration labels per segment, and optional instructional photo URLs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openwebninja-driving-directions-97f4e91d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.openwebninja.com](https://www.zero.xyz/host/x402.openwebninja.com/llms.txt)
