# CoCo FX Rates API

> CoCo FX Rates API is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Returns foreign exchange rates for a base currency, providing current exchange rate data as JSON

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/fx?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-fx-rates-api-3601b054
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qjQRWhEXsdmRI0j2BqHZq

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 coco-fx-rates-api-3601b054
```

Example prompt: Can you fetch the latest foreign exchange rates with USD as the base currency so I can see how other currencies compare right now?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call FX rate lookup via the x402 micropayment protocol and want JSON output with a base currency and rates map. Well-suited for agents that need on-demand currency data without a subscription, particularly in XRP/crypto-adjacent or experimental lab contexts.

## Known failure modes

- Invalid or unsupported base currency returns an error
- Network timeout if the upstream FX data provider is unavailable
- Missing required query parameters may return a malformed or empty response
- Payment failure via x402 protocol blocks access to the endpoint

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the base currency (e.g. 'USD') and a rates map of currency codes to their exchange rate values relative to the base (e.g. {"EUR": 0.9, "GBP": 0.78, ...}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "base"
     ],
     "properties": {
      "base": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "rates": {
   "EUR": 0.9
  }
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-fx-rates-api-3601b054/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
