Appearance
Fiat To Quote
Returns live exchange rates from all supported fiat currencies to a specified quote currency. The inverse of Fiat From Base — useful when you need to express every currency in terms of a single target.
Use this to:
- Show "how much of every currency equals 1 USD" type tables
- Build a base-agnostic converter that normalizes to a common quote
- Pre-compute inverse rates without an additional API call
Base URL
https://fast-price-exchange-rates.p.rapidapi.comGet fiat rates to quote
GET/api/v1/convert-rates/fiat/to
Returns an object with the quote currency and a map of all source fiat currencies to their rates (units of source per 1 unit of quote).
Authentication
| Header | Value |
|---|---|
X-RapidAPI-Key | Your RapidAPI secret key |
X-RapidAPI-Host | fast-price-exchange-rates.p.rapidapi.com |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| currency | string | Yes | ISO 4217 quote currency code (e.g. USD, EUR, GBP). All rates are expressed as units of the source currency per 1 unit of this quote. |
| detailed | boolean | No | When false (default): keys in the from object are plain ISO codes ("EUR", "JPY").When true: keys include the full name and asset type ("EUR:EURO:FIAT"). |
Example requests
bash
curl "https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/fiat/to?currency=USD&detailed=false" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: fast-price-exchange-rates.p.rapidapi.com"bash
curl "https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/fiat/to?currency=USD&detailed=true" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: fast-price-exchange-rates.p.rapidapi.com"javascript
const response = await fetch(
'https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/fiat/to?currency=USD&detailed=false',
{
headers: {
'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
'X-RapidAPI-Host': 'fast-price-exchange-rates.p.rapidapi.com',
},
}
)
const data = await response.json()
// How much EUR equals 100 USD?
const eurPerUsd = data.from['EUR']
const amount = 100
console.log(`${amount} USD = ${(amount / eurPerUsd).toFixed(2)} EUR`)
// Note: rate is EUR→USD, so to get USD→EUR we dividejavascript
const response = await fetch(
'https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/fiat/to?currency=USD&detailed=true',
{
headers: {
'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
'X-RapidAPI-Host': 'fast-price-exchange-rates.p.rapidapi.com',
},
}
)
const data = await response.json()
// Parse "CODE:FULL NAME:FIAT" keys
const currencies = Object.entries(data.from).map(([key, rate]) => {
const [code, name] = key.split(':')
return { code, name, rate }
})
// Find strongest currencies vs USD (highest rate = closest to 1 USD)
const strongest = currencies
.filter(c => c.code !== 'USD')
.sort((a, b) => b.rate - a.rate)
.slice(0, 5)
for (const { code, name, rate } of strongest) {
console.log(`${code} (${name}): ${rate.toFixed(6)} per USD`)
}python
import os
import requests
response = requests.get(
"https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/fiat/to",
params={"currency": "USD", "detailed": "false"},
headers={
"X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"],
"X-RapidAPI-Host": "fast-price-exchange-rates.p.rapidapi.com",
},
)
response.raise_for_status()
data = response.json()
# Print rate for a few key currencies
for code in ["EUR", "GBP", "JPY", "CAD", "CHF"]:
rate = data["from"][code]
print(f"1 USD = {1 / rate:.4f} {code} (or 1 {code} = {rate:.6f} USD)")python
import os
import requests
response = requests.get(
"https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/fiat/to",
params={"currency": "USD", "detailed": "true"},
headers={
"X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"],
"X-RapidAPI-Host": "fast-price-exchange-rates.p.rapidapi.com",
},
)
response.raise_for_status()
data = response.json()
# Parse "CODE:FULL NAME:FIAT" keys
rows = []
for key, rate in data["from"].items():
code, name, _ = key.split(":")
rows.append((code, name, rate))
rows.sort()
print(f"{'Code':<6} {'Name':<45} Rate (per USD)")
print("-" * 75)
for code, name, rate in rows[:10]:
print(f"{code:<6} {name:<45} {rate:.8f}")Response — detailed=false
json
{
"to": "USD",
"from": {
"AED": 0.27144392848245547,
"AFN": 0.01545211522019403,
"ALL": 0.012211707079715936,
"AUD": 0.7028318846186311,
"BRL": 0.19580719588349788,
"CAD": 0.7187270709653449,
"CHF": 1.2481952135407708,
"EUR": 1.1760775341972567,
"GBP": 1.3304171710991541,
"JPY": 0.006280316004865512,
"USD": 1,
"..." : "... 150+ currencies total"
}
}Response — detailed=true
json
{
"to": "USD",
"from": {
"AED:UNITED ARAB EMIRATES DIRHAM:FIAT": 0.2721264196123421,
"AFN:AFGHAN AFGHANI:FIAT": 0.015455468116251226,
"EUR:EURO:FIAT": 1.1832510313579347,
"GBP:BRITISH POUND:FIAT": 1.3576150905739037,
"JPY:JAPANESE YEN:FIAT": 0.006280606232846831,
"USD:UNITED STATES DOLLAR:FIAT": 1,
"..." : "... 150+ currencies total"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| to | string | The ISO 4217 code of the quote currency (mirrors the currency query parameter). |
| from | object | Map of source currencies to their rates. Each value represents how many units of the quote currency equal 1 unit of the source currency — i.e. rate = sourceToQuote.Key format depends on the detailed parameter:• false: plain ISO code — "EUR"• true: "CODE:FULL NAME:FIAT" — "EUR:EURO:FIAT" |
Key format (detailed=true)
CODE:FULL NAME:FIAT
│ │ └─ asset type, always "FIAT" for this endpoint
│ └─ full English name of the currency
└─ ISO 4217 three-letter codeConversion formula
Each rate is source → quote. To convert an amount from source to quote:
quoteAmount = sourceAmount × rateTo convert in the other direction (quote → source):
sourceAmount = quoteAmount / rateExample: "EUR": 1.176 means 1 EUR = 1.176 USD.
- 50 EUR → USD:
50 × 1.176 = 58.80 USD - 100 USD → EUR:
100 / 1.176 = 85.03 EUR
Relationship to Fiat From Base
This endpoint is the mirror of Fiat From Base. The two endpoints return mathematically equivalent data:
fiat/from?currency=USD→to.EUR = 0.844(1 USD = 0.844 EUR)fiat/to?currency=USD→from.EUR = 1.176(1 EUR = 1.176 USD)
0.844 × 1.176 ≈ 1.0 — the inverse relationship holds.
Error responses
| Status | Code | Description |
|---|---|---|
| 400 | bad_request | currency parameter is missing or not a valid ISO 4217 code |
| 401 | unauthorized | X-RapidAPI-Key is missing or invalid |
| 403 | forbidden | Your RapidAPI plan does not include access to this endpoint |
| 429 | too_many_requests | RapidAPI rate limit exceeded |
| 500 | internal_error | Server error — safe to retry after a short delay |
Related endpoints
| Endpoint | Description |
|---|---|
| Fiat From Base | Rates from a single base fiat to all other currencies |
| Fast Price API Overview | All endpoints in the Fast Price API |