82trust / 100
Data Ecb Fx Reference
by API Acre in Documents & files
x402 APIPassing, checked 50 min ago
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.
POST https://apiacre.com/v1/data/ecb-fx-reference
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 227 ms typical, 416 ms slowest 5%
- Last check
- 50 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -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"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fdata%2Fecb-fx-reference
const res = await pay("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"}),
});
console.log(await res.json());Example input
{
"amount": "100",
"base_currency": "GBP",
"on_or_before": null,
"quote_currency": "USD"
}Example output
{
"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"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 50 min ago | Passed | 402 | 210 ms | $0.002 |
| 5 h ago | Passed | 402 | 338 ms | $0.002 |
| 9 h ago | Passed | 402 | 197 ms | $0.002 |
| 12 h ago | Passed | 402 | 166 ms | $0.002 |
| 16 h ago | Passed | 402 | 416 ms | $0.002 |
| 19 h ago | Passed | 402 | 255 ms | $0.002 |
| 23 h ago | Passed | 402 | 227 ms | $0.002 |
| 28 h ago | Passed | 402 | 2.1 s | $0.002 |