A

Agenticweb · Global FX

by Agenticweb

GETBase

$0.005

per call · USD Coin on Base

Currency conversion via ECB euro reference rates (informational). The underlying ECB reference rates can be obtained free of charge from https://www.ecb.europa.eu/stats/eurofxref/. Payment constitutes acceptance of the terms at https://agenticweb.nl/terms.

Endpoint

GET https://api.agenticweb.nl/api/v1/global/fx

8

Calls / 30d

3

Unique payers / 30d

Aug 28

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://api.agenticweb.nl/api/v1/global/fx", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.agenticweb.nl/api/v1/global/fx?amount=Amount+to+convert+%28default+1%29.&from=ISO+4217+source+currency+%28default+EUR%29.&sample=Query+param+on+GET%3B+set+to+1+for+the+free+demo+response.&to=ISO+4217+target+currency+%28default+USD%29." \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "properties": {
    "amount": {
      "type": "number"
    },
    "as_of": {
      "description": "Date of the ECB reference snapshot.",
      "type": "string"
    },
    "from": {
      "description": "ISO 4217 source currency.",
      "type": "string"
    },
    "rate": {
      "description": "ECB reference rate from→to.",
      "type": "number"
    },
    "result": {
      "description": "amount × rate.",
      "type": "number"
    },
    "to": {
      "description": "ISO 4217 target currency.",
      "type": "string"
    }
  },
  "type": "object"
}

Payment details

Pay to0x9fd85fe177a8750a0e8a15b0741c56932f26f1ae
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Agenticweb & similar services