API Acre · Data ECB FX Reference

by API Acre

POSTBaseSolana

$0.002

per call · USD Coin on Base

Convert an amount between two supported currencies using one validated ECB daily reference-rate observation. The underlying ECB statistics are available free from the ECB Data Portal; the fee covers bounded retrieval, validation, clearly labelled cross-rate calculation, and x402 delivery.

Endpoint

POST https://apiacre.com/v1/data/ecb-fx-reference

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/data/ecb-fx-reference", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "amount": "100",
    "base_currency": "GBP",
    "on_or_before": null,
    "quote_currency": "USD"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/data/ecb-fx-reference" \
  -H "Content-Type: application/json" \
  -d '{"amount":"100","base_currency":"GBP","on_or_before":null,"quote_currency":"USD"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "amount": "100",
    "baseCurrency": "GBP",
    "basis": {
      "basePerEur": "0.85585",
      "denomination": "EUR",
      "formula": "quotePerEur / basePerEur",
      "quotePerEur": "1.1576"
    },
    "convertedAmount": "135.2573465",
    "disclaimer": "Reference data only, not financial advice or a guarantee ...",
    "inverseRate": "0.739331375259",
    "limitations": [
      "ECB reference rates are usually published on TARGET busin...",
      "A converted amount is arithmetic evidence only; banks, ex...",
      "ECB observations can be revised, interrupted, or withdraw...",
      "Coverage is limited to the explicitly supported active EC..."
    ],
    "networkRequestsMade": 1,
    "quoteCurrency": "USD",
    "rate": "1.352573464976",
    "referenceDate": "2026-08-18",
    "referenceLagDays": 1,
    "requestedOnOrBefore": null,
    "retrievedAt": "2026-08-19T04:00:00+00:00",
    "source": {
      "dataset": "EXR daily euro foreign exchange reference rates",
      "provider": "European Central Bank",
      "requestUrl": "https://data-api.ecb.europa.eu/service/data/EXR/D.GBP+USD...",
      "seriesKeys": [
        "EXR.D.GBP.EUR.SP00.A",
        "EXR.D.USD.EUR.SP00.A"
      ]
    },
    "warnings": [
      "The latest common reference observation is 1 calendar day...",
      "API Acre derived this cross rate by dividing two unmodifi..."
    ]
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.ecb-fx-reference",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from API Acre & similar services