apyhub
FINANCE · STANDARD DATA

Foreign Exchange Rates API

What it does

FX Rates gives you foreign exchange rate data for a chosen base currency. Send the base query parameter as a three-letter currency code, or omit it to use the default USD, and get a response envelope with success and code plus the rate data blocks returned by the service.

Use FX Rates when you need live or latest currency reference data for pricing, checkout display, reporting, or financial dashboards. It is a fit for applications that convert amounts across currencies, reconcile multi-currency transactions, or show users values in their local currency while keeping a single source of truth for the base currency.

The response is intentionally lightweight at the top level: success tells you whether the request completed, and code gives you the numeric status. Any additional module blocks are returned in the body as defined by the service, so you can parse the currency data your integration needs without guessing at extra fields.

If you work with invoices, subscription billing, or exchange-rate lookup flows, FX Rates keeps the contract simple: request a base currency, read the result envelope, and use the returned rate payload in your own calculations.

GET
FX Rates
https://api.eu.apyhub.com/quadlem/fx-rates

QUICKSTART

GUIDE

Quickstart

Use the following request to retrieve the latest exchange rates for a base currency.

curl -X GET "https://api.eu.apyhub.com/quadlem/fx-rates?base=USD" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

A successful request returns the requested base currency, the timestamp of the exchange rates, and a list of conversion rates for supported currencies.

{
  "success": true,
  "code": 200,
  "base": "USD",
  "date": "Tue, 04 Aug 2026 00:02:31 +0000",
  "rates": {
    "USD": 1,
    "EUR": 0.868722,
    "GBP": 0.74407,
    "INR": 95.401315,
    "JPY": 157.167068
  },
  "source": "open.er-api.com"
}

Note: The rates object is truncated in this example. The full response includes exchange rates for approximately 160 supported currencies, with values relative to the requested base currency.

TRY ITLIVE · 20 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Returns cached foreign exchange rates for a given base currency, expressed against ~160 other currency codes.

Query Parameter(s)

AttributeTypeMandatoryDescription
baseStringNoBase currency code. Default: USD.

Response

AttributeTypeDescription
successBooleanWhether the request succeeded.
codeIntegerNumeric response code.
baseStringThe base currency used.
dateStringTimestamp the rates were generated/cached.
ratesObjectMap of currency code → exchange rate relative to base.
sourceStringUpstream data source for the rates.

Query parameters

Name
Type
Description
baseOPTIONAL
string
DEFAULT USD
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.