A

Agentdatum · D FX Rates

by Agentdatum

GETBase

$0.01

per call · USD Coin on Base

实时汇率 — open.er-api 实时多币种汇率(基于USD),免注册。

Endpoint

GET https://agentdatum.com/api/v1/d/fx-rates

1

Calls / 30d

1

Unique payers / 30d

Aug 15

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://agentdatum.com/api/v1/d/fx-rates", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agentdatum.com/api/v1/d/fx-rates?method=GET" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "collected_at": "2026-08-09T18:13:17Z",
  "data_type": "外汇",
  "raw": {
    "base_code": "USD",
    "documentation": "https://www.exchangerate-api.com/docs/free",
    "provider": "https://www.exchangerate-api.com",
    "rates": {
      "AED": 3.6725,
      "AFN": 65.773304,
      "ALL": 80.785937,
      "AMD": 366.081469,
      "ANG": 1.79,
      "AOA": 925.102181,
      "ARS": 1498.4355,
      "AUD": 1.418164,
      "AWG": 1.79,
      "AZN": 1.700163,
      "BAM": 1.693627,
      "BBD": 2,
      "BDT": 123.777032,
      "BGN": 1.693627,
      "BHD": 0.376,
      "BIF": 2994.401747,
      "BMD": 1,
      "BND": 1.279631,
      "BOB": 12.120155,
      "BRL": 5.107069,
      "BSD": 1,
      "BTN": 95.249221,
      "BWP": 13.888473,
      "BYN": 2.963399,
      "BZD": 2,
      "CAD": 1.395557,
      "CDF": 2270.462859,
      "CHF": 0.808987,
      "CLF": 0.023164,
      "CLP": 915.607525,
      "CNH": 6.745161,
      "CNY": 6.765066,
      "COP": 3180.15419,
      "CRC": 454.413281,
      "CUP": 24,
      "CVE": 95.482633,
      "CZK": 21.007139,
      "DJF": 177.721,
      "DKK": 6.462066,
      "USD": 1
    },
    "result": "success",
    "terms_of_use": "https://www.exchangerate-api.com/terms",
    "time_eol_unix": 0,
    "time_last_update_unix": 1786233751,
    "time_last_update_utc": "Sun, 09 Aug 2026 00:02:31 +0000",
    "time_next_update_unix": 1786321741,
    "time_next_update_utc": "Mon, 10 Aug 2026 00:29:01 +0000"
  },
  "source": "generic_json"
}

Payment details

Pay to0xcd265870a20db25250535cb8a0d3bb0850417902
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Agentdatum & similar services