Skip to content
Fourohtwo

landingen24h.com/api/x402/fx/rate

Daily mid-market exchange rate between two fiat currencies (ISO 4217, e.g. USD, EUR, ARS, BRL, JPY) with optional amount conversion, from blended central-bank reference rates (ECB and others, via Frankfurter). Send {from, to, amount}. Unsupported currency = no charge.

PolygonAnswering
POSThttps://landingen24h.com/api/x402/fx/rate

Uptime100% of 2 checks in 30 days

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://landingen24h.com/api/x402/fx/rate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"to":"EUR","from":"USD","amount":100}),
});
console.log(await res.json());

Example input

{
  "to": "EUR",
  "from": "USD",
  "amount": 100
}

More from Landing en 24hProvider status