# Coockies.ai Exchange Rate API

> Coockies.ai Exchange Rate API is a paid API for AI agents from coockies-ai.vercel.app, paid per call via x402, $0.057068/call, status unknown (last checked 2026-10-12).

Fetches current foreign exchange rates for currency conversion via the ExchangeRate-API data source

## Facts

- Endpoint: POST https://coockies-ai.vercel.app/api/exchangerate-api?utm_source=zero.xyz
- Price: $0.057068/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coockies-ai-exchange-rate-api-52fa168d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mxvCC9TbYG8N6gi01ysdf

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-rate-api-52fa168d -d '<json body>'
```

Example prompt: What's the current exchange rate from US dollars to euros, and how much would 750 USD be in EUR?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call exchange rate lookup without committing to a monthly subscription to ExchangeRate-API directly. It is well-suited for low-frequency or sporadic currency conversion needs in automated agent workflows where cost should scale with usage rather than being a fixed overhead.

## Known failure modes

- Unsupported or invalid currency code returns an error or empty result
- Network timeout if the upstream ExchangeRate-API is unavailable
- Stale rate data if the upstream provider hasn't refreshed recently
- Payment failure on Base chain if USDC balance is insufficient for the $0.057068 per-call fee
- Malformed input schema may return a generic error response

## 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 current exchange rate data for the requested currency pair, including the rate value and potentially metadata such as timestamp and currency codes.

## 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-rate-api-52fa168d/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)
