Volver al catálogo

Currencyapi

currencyapi

Currencyapi provides current, historical, and official exchange rates plus currency and country metadata.

Acciones
15
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Compare one currency pair across selected or all available central-bank sources for a requested date, or across their newest publications.

Parámetros de entrada

  • datestringdate

    Requested 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.

  • currencystringObligatorio

    Three-letter quote currency to compare against the base currency.

  • base_currencystringObligatorio

    Three-letter base currency for the comparison.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Convert AmountsCURRENCYAPI_CONVERT_AMOUNTSAcción

Convert 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

  • datestringdate

    Past UTC date in YYYY-MM-DD form for daily historical rates; mutually exclusive with datetime. Omit both for latest rates.

  • shapestringenum

    default returns code/value objects; compact returns plain numeric values and cannot be combined with rounding or locale.

    defaultcompact
  • valuenumber

    One amount to convert, greater than 0 and at most 10^18. Required unless values is supplied; mutually exclusive with values.

  • localestring

    ICU 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-time

    ISO 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.

  • precisioninteger

    Number of decimal places in returned values, from 0 through 10.

  • currenciesstring[]

    Currency codes to convert into; omit to return all supported matches.

  • round_modestringenum

    Round to the nearest candidate, always up, or always down.

    nearestupdown
  • round_stepnumber

    Round converted prices to a positive step no greater than 10^18. Mutually exclusive with price_ending and unavailable with compact shape.

  • price_endingnumber

    Round 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_currencystringenum

    Currency code of the amount being converted; defaults to USD.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
  • currency_typestringenum

    Restrict destination currencies to fiat, metal, or crypto rates.

    fiatmetalcrypto

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Account StatusCURRENCYAPI_GET_ACCOUNT_STATUSAcción

Return 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Average RatesCURRENCYAPI_GET_AVERAGE_RATESAcción

Return average, minimum, and maximum exchange rates grouped by month, quarter, year, or the total requested date span.

Parámetros de entrada

  • periodstringenum

    Time grouping for aggregate rows.

    monthquarteryeartotal
  • sourcestringenum

    Central-bank source code for official rates; mutually exclusive with currency_type.

    ecbboecnbnbpnorgesriksbanknationalbankenmnbbnrnbutcmbnbm+23
  • date_tostringObligatoriodate

    Last UTC date in the aggregation window, in YYYY-MM-DD form.

  • date_fromstringObligatoriodate

    First UTC date in the aggregation window, in YYYY-MM-DD form.

  • currenciesstring[]

    Currency codes to aggregate; omit to return all available matches.

  • base_currencystringenum

    Three-letter base currency; omit for USD market data or the official source's native currency.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
  • currency_typestringenum

    Restrict market data to fiat currencies, metals, or cryptocurrencies; mutually exclusive with source.

    fiatmetalcrypto

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Exchange RatesCURRENCYAPI_GET_EXCHANGE_RATESAcción

Return 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

  • datestringdate

    One 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.

  • shapestringenum

    Response shape: default returns code/value objects; compact returns plain numeric rate values.

    defaultcompact
  • inverseboolean

    Also return inverse values for each selected rate.

  • precisioninteger

    Number 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_currencystringenum

    Three-letter currency code to use as the base, such as USD.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
  • currency_typestringenum

    Restrict results to fiat currencies, metals, or cryptocurrencies.

    fiatmetalcrypto
  • include_changesboolean

    Include rate and percentage changes for latest rates; must be false when date or dates is supplied.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Official Rate RangeCURRENCYAPI_GET_OFFICIAL_RATE_RANGEAcción

Return a central bank's official publications across a date range as structured JSON. Requires a Currencyapi Pro+ plan.

Parámetros de entrada

  • sourcestringObligatorioenum

    Central-bank source code returned by List Official Sources.

    ecbboecnbnbpnorgesriksbanknationalbankenmnbbnrnbutcmbnbm+23
  • comparestring

    Set to market to include each publication day's market rate and the official rate's percentage difference from it.

  • date_tostringObligatoriodate

    Last 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.

  • accuracystringenum

    Publication interval: day returns every publication; week or month returns the last publication in each period.

    dayweekmonth
  • date_fromstringObligatoriodate

    First 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_currencystring

    Three-letter base currency. Omit it to use the source bank's native base currency.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Official RatesCURRENCYAPI_GET_OFFICIAL_RATESAcción

Return a central bank's latest or dated official publication, optionally compared with market rates.

Parámetros de entrada

  • datestringdate

    Requested publication date in YYYY-MM-DD form. The provider may return the newest publication up to 14 days earlier.

  • sourcestringObligatorioenum

    Central-bank source code returned by List Official Sources, such as ecb.

    ecbboecnbnbpnorgesriksbanknationalbankenmnbbnrnbutcmbnbm+23
  • currenciesstring[]

    Currency codes to return from the official publication.

  • base_currencystring

    Three-letter base currency. Omit it to use the source bank's native base currency.

  • compare_to_marketboolean

    Include market values and percentage differences beside official rates.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get OHLC RatesCURRENCYAPI_GET_OHLC_RATESAcción

Return 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

  • shapestringenum

    Response candle shape. default returns named fields; compact returns [datetime, open, high, low, close].

    defaultcompact
  • intervalstringenum

    Length of each candle: hour or day.

    hourday
  • precisioninteger

    Number of decimal places for candle values, from 0 through 10.

  • currenciesstring[]Obligatorio

    One to 10 currency codes for which to return candles.

  • datetime_endanyObligatorio

    ISO 8601 date or timezone-aware datetime at which the last candle begins; must be on or after datetime_start.

  • base_currencystringenum

    Currency to which all candle values are relative.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
  • datetime_startanyObligatorio

    ISO 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Pair RateCURRENCYAPI_GET_PAIR_RATEAcción

Return 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

  • datestringdate

    Past 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-time

    Timezone-aware ISO 8601 moment within the account plan's intraday history; mutually exclusive with date. Daily-update plans return 403.

  • precisioninteger

    Number of decimal places in returned rate values, from 0 through 10.

  • to_currencystringObligatorioenum

    Three-letter code of the currency to convert to.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
  • from_currencystringObligatorioenum

    Three-letter code of the currency to convert from.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Rate FluctuationCURRENCYAPI_GET_RATE_FLUCTUATIONAcción

Return start, end, change, percentage change, high, low, and average rates between two UTC dates.

Parámetros de entrada

  • date_tostringObligatoriodate

    Last UTC date in the comparison window, in YYYY-MM-DD form.

  • date_fromstringObligatoriodate

    First 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_currencystringenum

    Three-letter currency code to use as the base.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
  • currency_typestringenum

    Restrict results to fiat currencies, metals, or cryptocurrencies.

    fiatmetalcrypto

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Rate MatrixCURRENCYAPI_GET_RATE_MATRIXAcción

Return latest or daily historical cross-rates among 2 to 25 currencies.

Parámetros de entrada

  • datestringdate

    Historical UTC date in YYYY-MM-DD form; omit for the latest matrix.

  • precisioninteger

    Number of decimal places in returned rates, from 0 through 10.

  • currenciesstring[]Obligatorio

    Two to 25 currency codes to include as both matrix rows and columns.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Rate RangeCURRENCYAPI_GET_RATE_RANGEAcción

Return 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

  • shapestringenum

    Return code/value objects by default, or compact plain values and datetime/value pairs.

    defaultcompact
  • orientstringenum

    Return one point per datetime, or one oldest-first series per currency.

    datetimecurrency
  • accuracystringenum

    Interval represented by each returned rate point.

    dayhourquarter_hourminuteweekmonth
  • precisioninteger

    Number of decimal places in returned rates, from 0 through 10.

  • currenciesstring[]

    Currency codes to return; omit to return all supported currencies.

  • datetime_endstringObligatoriodate-time

    End of the range as an ISO 8601 datetime with a UTC offset; must be on or after datetime_start.

  • base_currencystringenum

    Currency to which every returned rate is relative.

    AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBD+179
  • currency_typestringenum

    Restrict results to fiat currencies, metals, or cryptocurrencies.

    fiatmetalcrypto
  • datetime_startstringObligatoriodate-time

    Start of the range as an ISO 8601 datetime with a UTC offset.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List CountriesCURRENCYAPI_LIST_COUNTRIESAcción

List countries with currency, language, timezone, calling-code, and ISO metadata.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List CurrenciesCURRENCYAPI_LIST_CURRENCIESAcción

List 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_typestringenum

    Restrict results to fiat currencies, metals, or cryptocurrencies.

    fiatmetalcrypto

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Official SourcesCURRENCYAPI_LIST_OFFICIAL_SOURCESAcción

List central banks and publication metadata, optionally filtered by currency or region. This call does not consume currencyapi quota.

Parámetros de entrada

  • regionstringenum

    Geographic region used to filter central-bank sources.

    europeasiaafricanorth-americasouth-americaoceania
  • currencystring

    Currency code used to filter central banks by supported publication currencies.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not