# BlockRun Exchange Price API

> BlockRun Exchange Price API is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.0075/call, status unknown (last checked 2026-09-13).

Returns the current exchange price for a given trading pair via BlockRun's pay-per-call AI gateway, settled in USDC.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/surf/exchange/price
- Price: $0.0075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-exchange-price-api-ff091f3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_klNxQwFeGt1LUaKeGyf2-

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 blockrun-exchange-price-api-ff091f3a
```

Example prompt: What's the current exchange price for ETH/USDC on BlockRun?

## When to prefer this

Use this endpoint when you need a quick, no-API-key price lookup for a specific trading pair and are comfortable paying micro-amounts in USDC per call. Ideal for AI agents operating in crypto/DeFi contexts that need real-time exchange prices without managing API credentials, especially when already integrated with the BlockRun x402 payment infrastructure.

## Known failure modes

- Missing or invalid 'pair' query parameter returns an error
- Unsupported trading pair returns no data or error
- Payment failure (insufficient USDC balance) returns 402 status
- Rate limiting or gateway overload may return 5xx errors
- Malformed pair format (e.g. wrong delimiter) may cause lookup failure

## How this service works

Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.

## Output

Returns the current market price for the specified trading pair, likely as a numeric price value along with relevant pair metadata, delivered via a pay-per-call response costing $0.0075 USDC.

## Example request

```json
{
 "pair": "BTC/USD"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pair": {
   "type": "string",
   "description": "Required query param"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-exchange-price-api-ff091f3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
