Currencyapi
currencyapiCurrencyapi provides current, historical, and official exchange rates plus currency and country metadata.
Acciones disponibles (15)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Compare Official RatesCURRENCYAPI_COMPARE_OFFICIAL_RATESAcciónCompare one currency pair across selected or all available central-bank sources for a requested date, or across their newest publications.
CURRENCYAPI_COMPARE_OFFICIAL_RATESAcciónCompare one currency pair across selected or all available central-bank sources for a requested date, or across their newest publications.
Parámetros de entrada
datestringdateRequested comparison date in YYYY-MM-DD form; omit for current official publications.
sourcesstring[]Central-bank source codes to compare; omit to use every applicable source.
currencystringObligatorioThree-letter quote currency to compare against the base currency.
base_currencystringObligatorioThree-letter base currency for the comparison.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Convert AmountsCURRENCYAPI_CONVERT_AMOUNTSAcciónConvert one amount or up to 100 amounts from a base currency into selected currencies, optionally using historical rates, retail rounding, and locale formatting. The endpoint requires a paid Small+ plan. datetime has an additional update-tier requirement: Small provides hourly, Pro quarter-hourly, and Medium-or-higher minute intraday rates.
CURRENCYAPI_CONVERT_AMOUNTSAcciónConvert one amount or up to 100 amounts from a base currency into selected currencies, optionally using historical rates, retail rounding, and locale formatting. The endpoint requires a paid Small+ plan. datetime has an additional update-tier requirement: Small provides hourly, Pro quarter-hourly, and Medium-or-higher minute intraday rates.
Parámetros de entrada
datestringdatePast UTC date in YYYY-MM-DD form for daily historical rates; mutually exclusive with datetime. Omit both for latest rates.
shapestringenumdefault returns code/value objects; compact returns plain numeric values and cannot be combined with rounding or locale.
defaultcompactvaluenumberOne amount to convert, greater than 0 and at most 10^18. Required unless values is supplied; mutually exclusive with values.
localestringICU locale used to add formatted currency text, such as de_AT or en-US; unavailable with compact shape. Unknown locales return 422.
valuesnumber[]One to 100 amounts to convert in order, each greater than 0 and at most 10^18. Required unless value is supplied; mutually exclusive with value.
datetimestringdate-timeISO 8601 moment within the connected plan's intraday history; mutually exclusive with date. This separately requires an update tier with intraday data: Small resolves hourly, Pro at quarter-hour intervals, and Medium or higher at minute intervals. Daily-update plans return 403, and moments outside retained intraday history return 422.
precisionintegerNumber of decimal places in returned values, from 0 through 10.
currenciesstring[]Currency codes to convert into; omit to return all supported matches.
round_modestringenumRound to the nearest candidate, always up, or always down.
nearestupdownround_stepnumberRound converted prices to a positive step no greater than 10^18. Mutually exclusive with price_ending and unavailable with compact shape.
price_endingnumberRound converted prices to this ending from 0 inclusive to 1 exclusive, such as 0.99. Mutually exclusive with round_step and unavailable with compact shape.
base_currencystringenumCurrency code of the amount being converted; defaults to USD.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179currency_typestringenumRestrict destination currencies to fiat, metal, or crypto rates.
fiatmetalcrypto
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Account StatusCURRENCYAPI_GET_ACCOUNT_STATUSAcciónReturn the connected account identifier, monthly quota, and plan details when present, without consuming quota.
CURRENCYAPI_GET_ACCOUNT_STATUSAcciónReturn the connected account identifier, monthly quota, and plan details when present, without consuming quota.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Average RatesCURRENCYAPI_GET_AVERAGE_RATESAcciónReturn average, minimum, and maximum exchange rates grouped by month, quarter, year, or the total requested date span.
CURRENCYAPI_GET_AVERAGE_RATESAcciónReturn average, minimum, and maximum exchange rates grouped by month, quarter, year, or the total requested date span.
Parámetros de entrada
periodstringenumTime grouping for aggregate rows.
monthquarteryeartotalsourcestringenumCentral-bank source code for official rates; mutually exclusive with currency_type.
ecbboecnbnbpnorgesriksbanknationalbankenmnbbnrnbutcmbnbm+23date_tostringObligatoriodateLast UTC date in the aggregation window, in YYYY-MM-DD form.
date_fromstringObligatoriodateFirst UTC date in the aggregation window, in YYYY-MM-DD form.
currenciesstring[]Currency codes to aggregate; omit to return all available matches.
base_currencystringenumThree-letter base currency; omit for USD market data or the official source's native currency.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179currency_typestringenumRestrict market data to fiat currencies, metals, or cryptocurrencies; mutually exclusive with source.
fiatmetalcrypto
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Exchange RatesCURRENCYAPI_GET_EXCHANGE_RATESAcciónReturn latest rates when no date is supplied, or end-of-day rates for one historical date or up to 31 historical dates. date and dates are mutually exclusive.
CURRENCYAPI_GET_EXCHANGE_RATESAcciónReturn latest rates when no date is supplied, or end-of-day rates for one historical date or up to 31 historical dates. date and dates are mutually exclusive.
Parámetros de entrada
datestringdateOne historical UTC date in YYYY-MM-DD form; mutually exclusive with dates. Omit both date fields for latest rates.
datesstring[]Historical UTC dates in YYYY-MM-DD form; mutually exclusive with date. Each date consumes one quota request.
shapestringenumResponse shape: default returns code/value objects; compact returns plain numeric rate values.
defaultcompactinversebooleanAlso return inverse values for each selected rate.
precisionintegerNumber of decimal places in returned rate values, from 0 through 10.
currenciesstring[]Currency codes to return; omit to return every currency matching currency_type.
base_currencystringenumThree-letter currency code to use as the base, such as USD.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179currency_typestringenumRestrict results to fiat currencies, metals, or cryptocurrencies.
fiatmetalcryptoinclude_changesbooleanInclude rate and percentage changes for latest rates; must be false when date or dates is supplied.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Official Rate RangeCURRENCYAPI_GET_OFFICIAL_RATE_RANGEAcciónReturn a central bank's official publications across a date range as structured JSON. Requires a Currencyapi Pro+ plan.
CURRENCYAPI_GET_OFFICIAL_RATE_RANGEAcciónReturn a central bank's official publications across a date range as structured JSON. Requires a Currencyapi Pro+ plan.
Parámetros de entrada
sourcestringObligatorioenumCentral-bank source code returned by List Official Sources.
ecbboecnbnbpnorgesriksbanknationalbankenmnbbnrnbutcmbnbm+23comparestringSet to market to include each publication day's market rate and the official rate's percentage difference from it.
date_tostringObligatoriodateLast date of the publication range, in YYYY-MM-DD form. It must be on or after date_from and no more than 366 days later.
accuracystringenumPublication interval: day returns every publication; week or month returns the last publication in each period.
dayweekmonthdate_fromstringObligatoriodateFirst date of the publication range, in YYYY-MM-DD form.
currenciesstring[]Currency codes to include. Omit them to return every currency in each publication.
base_currencystringThree-letter base currency. Omit it to use the source bank's native base currency.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Official RatesCURRENCYAPI_GET_OFFICIAL_RATESAcciónReturn a central bank's latest or dated official publication, optionally compared with market rates.
CURRENCYAPI_GET_OFFICIAL_RATESAcciónReturn a central bank's latest or dated official publication, optionally compared with market rates.
Parámetros de entrada
datestringdateRequested publication date in YYYY-MM-DD form. The provider may return the newest publication up to 14 days earlier.
sourcestringObligatorioenumCentral-bank source code returned by List Official Sources, such as ecb.
ecbboecnbnbpnorgesriksbanknationalbankenmnbbnrnbutcmbnbm+23currenciesstring[]Currency codes to return from the official publication.
base_currencystringThree-letter base currency. Omit it to use the source bank's native base currency.
compare_to_marketbooleanInclude market values and percentage differences beside official rates.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get OHLC RatesCURRENCYAPI_GET_OHLC_RATESAcciónReturn hourly or daily open, high, low, and close candles for one to 10 currencies. This endpoint requires the Pro+ range feature. Hour candles require quarter-hourly updates or finer; day candles require hourly updates or finer. Returns JSON only.
CURRENCYAPI_GET_OHLC_RATESAcciónReturn hourly or daily open, high, low, and close candles for one to 10 currencies. This endpoint requires the Pro+ range feature. Hour candles require quarter-hourly updates or finer; day candles require hourly updates or finer. Returns JSON only.
Parámetros de entrada
shapestringenumResponse candle shape. default returns named fields; compact returns [datetime, open, high, low, close].
defaultcompactintervalstringenumLength of each candle: hour or day.
hourdayprecisionintegerNumber of decimal places for candle values, from 0 through 10.
currenciesstring[]ObligatorioOne to 10 currency codes for which to return candles.
datetime_endanyObligatorioISO 8601 date or timezone-aware datetime at which the last candle begins; must be on or after datetime_start.
base_currencystringenumCurrency to which all candle values are relative.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179datetime_startanyObligatorioISO 8601 date or timezone-aware datetime at which the first candle begins. Hour intervals allow at most seven days of lookback; day intervals allow at most three calendar months.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Pair RateCURRENCYAPI_GET_PAIR_RATEAcciónReturn one currency pair's latest rate at the account plan's update interval, a past daily close, or an intraday historical rate, together with its inverse.
CURRENCYAPI_GET_PAIR_RATEAcciónReturn one currency pair's latest rate at the account plan's update interval, a past daily close, or an intraday historical rate, together with its inverse.
Parámetros de entrada
datestringdatePast UTC date in YYYY-MM-DD form for the daily close; mutually exclusive with datetime. Omit both for the latest rate at the account plan's update interval.
datetimestringdate-timeTimezone-aware ISO 8601 moment within the account plan's intraday history; mutually exclusive with date. Daily-update plans return 403.
precisionintegerNumber of decimal places in returned rate values, from 0 through 10.
to_currencystringObligatorioenumThree-letter code of the currency to convert to.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179from_currencystringObligatorioenumThree-letter code of the currency to convert from.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Rate FluctuationCURRENCYAPI_GET_RATE_FLUCTUATIONAcciónReturn start, end, change, percentage change, high, low, and average rates between two UTC dates.
CURRENCYAPI_GET_RATE_FLUCTUATIONAcciónReturn start, end, change, percentage change, high, low, and average rates between two UTC dates.
Parámetros de entrada
date_tostringObligatoriodateLast UTC date in the comparison window, in YYYY-MM-DD form.
date_fromstringObligatoriodateFirst UTC date in the comparison window, in YYYY-MM-DD form.
currenciesstring[]Currency codes to analyze; omit to include every currency matching currency_type.
base_currencystringenumThree-letter currency code to use as the base.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179currency_typestringenumRestrict results to fiat currencies, metals, or cryptocurrencies.
fiatmetalcrypto
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Rate MatrixCURRENCYAPI_GET_RATE_MATRIXAcciónReturn latest or daily historical cross-rates among 2 to 25 currencies.
CURRENCYAPI_GET_RATE_MATRIXAcciónReturn latest or daily historical cross-rates among 2 to 25 currencies.
Parámetros de entrada
datestringdateHistorical UTC date in YYYY-MM-DD form; omit for the latest matrix.
precisionintegerNumber of decimal places in returned rates, from 0 through 10.
currenciesstring[]ObligatorioTwo to 25 currency codes to include as both matrix rows and columns.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Rate RangeCURRENCYAPI_GET_RATE_RANGEAcciónReturn market exchange rates over a bounded datetime range. Requires a Pro+ plan with the range feature; the requested resolution must match the plan's update tier: Pro supports quarter-hour and coarser data, while minute accuracy requires Medium+ with one-minute updates.
CURRENCYAPI_GET_RATE_RANGEAcciónReturn market exchange rates over a bounded datetime range. Requires a Pro+ plan with the range feature; the requested resolution must match the plan's update tier: Pro supports quarter-hour and coarser data, while minute accuracy requires Medium+ with one-minute updates.
Parámetros de entrada
shapestringenumReturn code/value objects by default, or compact plain values and datetime/value pairs.
defaultcompactorientstringenumReturn one point per datetime, or one oldest-first series per currency.
datetimecurrencyaccuracystringenumInterval represented by each returned rate point.
dayhourquarter_hourminuteweekmonthprecisionintegerNumber of decimal places in returned rates, from 0 through 10.
currenciesstring[]Currency codes to return; omit to return all supported currencies.
datetime_endstringObligatoriodate-timeEnd of the range as an ISO 8601 datetime with a UTC offset; must be on or after datetime_start.
base_currencystringenumCurrency to which every returned rate is relative.
AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179currency_typestringenumRestrict results to fiat currencies, metals, or cryptocurrencies.
fiatmetalcryptodatetime_startstringObligatoriodate-timeStart of the range as an ISO 8601 datetime with a UTC offset.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CountriesCURRENCYAPI_LIST_COUNTRIESAcciónList countries with currency, language, timezone, calling-code, and ISO metadata.
CURRENCYAPI_LIST_COUNTRIESAcciónList countries with currency, language, timezone, calling-code, and ISO metadata.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CurrenciesCURRENCYAPI_LIST_CURRENCIESAcciónList supported fiat currencies, metals, and cryptocurrencies with symbols, precision, and country metadata.
CURRENCYAPI_LIST_CURRENCIESAcciónList supported fiat currencies, metals, and cryptocurrencies with symbols, precision, and country metadata.
Parámetros de entrada
currenciesstring[]Currency codes to return; omit to list every supported currency.
currency_typestringenumRestrict results to fiat currencies, metals, or cryptocurrencies.
fiatmetalcrypto
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Official SourcesCURRENCYAPI_LIST_OFFICIAL_SOURCESAcciónList central banks and publication metadata, optionally filtered by currency or region. This call does not consume currencyapi quota.
CURRENCYAPI_LIST_OFFICIAL_SOURCESAcciónList central banks and publication metadata, optionally filtered by currency or region. This call does not consume currencyapi quota.
Parámetros de entrada
regionstringenumGeographic region used to filter central-bank sources.
europeasiaafricanorth-americasouth-americaoceaniacurrencystringCurrency code used to filter central banks by supported publication currencies.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not