# AgentRXI Route & Directions

> AgentRXI Route & Directions is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-15).

Returns turn-by-turn driving, cycling, walking, transit, or truck directions between two or more locations, including distance (km/mi), travel time, and an optional GeoJSON route line.

## Facts

- Endpoint: GET https://agentrxi.com/v1/route?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-route-directions-980388ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xYiOq5YCdejDQlZ7uOcV7

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 agentrxi-route-directions-980388ed
```

Example prompt: What's the driving route from 'Times Square, New York' to 'Philadelphia, PA' avoiding tolls — give me the distance in miles, travel time, and turn-by-turn steps?

## When to prefer this

Choose this endpoint when you need structured routing data including distance, time, and turn-by-turn steps for multiple travel modes (drive, truck, bicycle, walk, transit) with support for waypoints and avoidance options. Prefer it over general web search when you need machine-readable directions that can be parsed by an agent, and over mapping APIs when you need pay-per-call pricing without monthly subscription commitments.

## Known failure modes

- Unresolvable address or place name returns an error or empty result
- Invalid or unsupported travel mode string causes a validation error
- Missing required 'from' or 'to' parameters returns a 400-style error
- Ambiguous place names may resolve to the wrong location
- No viable route exists (e.g. island with no ferry/transit option) returns no route found
- Malformed lat,lon coordinates cause parsing errors

## How this service works

Directions between places (addresses, names or lat,lon) with optional stops: distance in km and miles, travel time, and turn-by-turn steps for driving, trucks, cycling, walking or transit, avoiding tolls, highways or ferries; optional GeoJSON route line.

## Output

Returns total distance in both kilometers and miles, estimated travel time, and an ordered list of turn-by-turn navigation steps. If geometry is requested, also returns a GeoJSON LineString representing the route path on a map.

## 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": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "via": {
       "type": "string",
       "description": "Stops separated by |"
      },
      "from": {
       "type": "string"
      },
      "mode": {
       "type": "string",
       "description": "drive (default), truck, bicycle, walk, transit, ..."
      },
      "avoid": {
       "type": "string",
       "description": "tolls|highways|ferries"
      },
      "units": {
       "type": "string",
       "description": "metric or imperial"
      },
      "geometry": {
       "type": "boolean",
       "description": "true to include the route line"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-route-directions-980388ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
