# SelectaRank ECB FX Rates

> SelectaRank ECB FX Rates is a paid API for AI agents from selectarank-data.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Returns European Central Bank official EUR-based foreign exchange rates for one or more currency pairs, for up to 30 recent trading days, via pay-per-call x402 micropayment.

## Facts

- Endpoint: GET https://selectarank-data.vercel.app/v1/eu/ecb-fx?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/selectarank-ecb-fx-rates-0cd85d7f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p-7aw5xDaJTVCIDvPffic

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 selectarank-ecb-fx-rates-0cd85d7f
```

Example prompt: Can you pull the official ECB exchange rates for USD, JPY, and GBP against the euro for the last 5 trading days?

## When to prefer this

Choose this endpoint when you need official, authoritative EUR-based exchange rates sourced directly from the European Central Bank, especially when you want no API key setup, pay only per call via USDC micropayment, and need up to 30 days of historical observations. Prefer this over commercial FX providers when ECB official rates are specifically required (e.g. regulatory, accounting, or EU-compliance contexts).

## Known failure modes

- Invalid or unsupported ISO currency code returns an error or omits that currency from rates
- days parameter outside 1-30 range may return an error or default to 1
- ECB data unavailable for weekends/holidays — those dates may be absent from results
- Payment not received or insufficient USDC balance causes 402 Payment Required response
- Network or upstream ECB data feed outage causes 5xx error

## How this service works

Pay-per-call access to public-domain data (USGS earthquakes, NOAA/NWS forecasts, World Bank indicators) plus an x402 endpoint pre-payment checker over x402 on Base USDC. No account or API key.

## Output

A JSON object with base currency 'EUR', an array of date-stamped rate objects (each containing requested ISO currency codes and their EUR-denominated exchange rates), and a metadata field indicating the source as the European Central Bank.

## 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",
     "properties": {
      "days": {
       "type": "string",
       "description": "Latest N observations, 1-30 (default 1)"
      },
      "currencies": {
       "type": "string",
       "description": "Comma-separated ISO codes, e.g. USD,JPY,GBP"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "EUR",
  "data": [
   {
    "date": "2026-09-29",
    "rates": {
     "JPY": 173.2,
     "USD": 1.17
    }
   }
  ],
  "meta": {
   "source": "European Central Bank"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/selectarank-ecb-fx-rates-0cd85d7f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from selectarank-data.vercel.app](https://www.zero.xyz/host/selectarank-data.vercel.app/llms.txt)
