Skip to content
Fourohtwo

Currency converter API for AI agents

api.youraitools.co/fx/v1/convert

Currency converter API for AI agents: convert an amount from one currency to another (USD, EUR, GBP, JPY, CNY, INR, CAD, AUD, CHF and 21 more) at the official European Central Bank reference rate, today or on a past date back to 1999. Returns rate, result, inverse rate and the rate date. Search intents: currency converter api, fx convert, exchange rate api, convert usd to eur, forex rate, money co

BaseAnswering
GEThttps://api.youraitools.co/fx/v1/convert

Uptime100% 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://api.youraitools.co/fx/v1/convert?to=EUR&from=USD&amount=100");
console.log(await res.json());

Example input

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

More from FXRate by YourAIToolsProvider status