ExchangeRate-API
communityFree and reliable currency exchange rate API supporting 160+ currencies with daily updates.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://v6.exchangerate-api.com/v6/{api_key}/latest/{base}Get latest exchange rates
Parameters
basebase currency ISO 4217 (stringrequiredapi_keyAPI key (stringrequiredReturns
conversion_rates with currency code to rate mapping, time_last_update_utc, base_codeGET
https://v6.exchangerate-api.com/v6/{api_key}/pair/{from}/{to}/{amount}Convert between currencies
Parameters
totarget currency (stringrequiredfromsource currency (stringrequiredamountamount to convert (numberoptionalapi_keyAPI key (stringrequiredReturns
conversion_rate, conversion_result, base_code, target_codeGET
https://v6.exchangerate-api.com/v6/{api_key}/history/{base}/{year}/{month}/{day}Get historical rates
Parameters
dayday (integerrequiredbasebase currency (stringrequiredyearyear (integerrequiredmonthmonth (integerrequiredapi_keyAPI key (stringrequiredReturns
conversion_rates for that date, base_code, time_last_update_utc