# Coockies.ai Exchange Rates API

> Coockies.ai Exchange Rates API is a paid API for AI agents from coockies-ai.vercel.app, paid per call via x402, $0.08519/call, status unknown (last checked 2026-09-14).

Retrieves current currency exchange rates via a pay-per-call API on the Base blockchain using x402 protocol

## Facts

- Endpoint: POST https://coockies-ai.vercel.app/api/exchange-rates
- Price: $0.08519/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coockies-ai-exchange-rates-api-61fd300c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-nLo244b1j1LB53Xk7zUY

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 coockies-ai-exchange-rates-api-61fd300c -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to EUR right now?

## When to prefer this

Use this endpoint when you need a simple, pay-per-call exchange rate lookup without a subscription, especially within an agentic workflow that already uses x402/Base chain payments. Good for low-volume or one-off queries where subscribing to a dedicated forex API is overkill.

## Known failure modes

- Payment failure — insufficient USDC balance on Base chain returns 402 error
- Invalid currency pair — unsupported or malformed currency codes return error
- Network timeout — Vercel cold start or upstream rate provider unavailable
- Rate limit exceeded — too many requests in a short window
- Missing required parameters — request body lacks required currency fields

## How this service works

194 production-ready API endpoints. AI, Search, Social, Finance, Crypto. Pay-per-call with x402 on Base chain.

## Output

Returns an object containing exchange rate data for the requested currency pair, including the current conversion rate and related metadata.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coockies-ai-exchange-rates-api-61fd300c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coockies-ai.vercel.app](https://www.zero.xyz/host/coockies-ai.vercel.app/llms.txt)
