Forex API
x402.agentindex.world/forex-history
Forex API: exchange rates for 30+ currencies (USD, EUR, GBP, JPY, CHF, CNY, INR, BRL...). Three modes in one route: latest rates, rates on a past date, or a daily time series up to 366 days with first / last / min / max and percent change per currency. Central-bank reference rates (ECB), business days, back to 1999. Try GET /forex-history/sample. No result, no charge.
POST
https://x402.agentindex.world/forex-historyUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.agentindex.world/forex-history", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"base":"USD","end_date":"2026-01-06","start_date":"2026-01-02","symbols":["EUR","GBP"]}),
});
console.log(await res.json());Example input
{
"base": "USD",
"end_date": "2026-01-06",
"start_date": "2026-01-02",
"symbols": [
"EUR",
"GBP"
]
}