GET/api/v1/rates
Symbol prices
Buy and sell prices for your key's plan, with multiple symbols per request.
on the Free and Pro APIs
Free keys get minute-level data for free-plan symbols and include attribution, which must appear beside prices. Paid keys get live prices (refresh_seconds: null). Symbols per request: Free 20, Pro 100.
- One request with several symbols uses only one quota unit. Do not send separate requests for each symbol.
- Without
symbols, a plan exceeding the per-request symbol limit returns a truncated response withtruncatedandavailable. Then split symbols across requests usingsymbols.
Parameters
symbolsText, multipleURLOptionalComma-separated symbol codes, e.g.XAUUSD,XAGUSD; up to the plan's per-request symbol limit. Omit it to get all of the plan's symbols. An emptysymbols=is a 400 error.
Example request
curl "https://api.naif.ae/api/v1/rates?symbols=XAUUSD,XAGUSD" \
-H "Authorization: Bearer $NAIF_KEY"Example response
{
"generated_at": "2026-09-26T07:30:00Z",
"refresh_seconds": 60,
"count": 2,
"items": [
{
"code": "XAUUSD",
"name": "Gold ounce",
"name_en": "Gold ounce",
"category": "gold",
"scope": "global",
"unit": "per ounce",
"currency": "USD",
"buy": 2626.55,
"sell": 2650.4,
"updated_at": "2026-09-26T07:29:42Z",
"stale": false
},
{
"code": "XAGUSD",
"name": "Silver ounce",
"name_en": "Silver ounce",
"category": "silver",
"scope": "global",
"unit": "per ounce",
"currency": "USD",
"buy": 31.06,
"sell": 31.12,
"updated_at": "2026-09-26T07:29:23Z",
"stale": false
}
],
"attribution": {
"text": "Prices from naif.ae",
"url": "https://naif.ae"
}
}Response fields
generated_atstringResponse generation time (UTC)
refresh_secondsinteger | nullUpdate interval in seconds:
60for free keys;nullfor real-time datacountintegerNumber of symbols in the response
items[].codestringSymbol code; use the same code for every endpoint
items[].namestringSymbol name
items[].name_enstring | nullEnglish name
items[].categorystringCategory:
gold,silver,crypto,forex,commodity,indexorstockitems[].scopestringglobal: global marketsitems[].unitstring | nullCommodity unit, e.g. “per ounce” or “per barrel”; not a currency
items[].currencystringPrice currency, e.g.
USDitems[].buynumber | nullBuy price;
nullmeans the source has no buy quoteitems[].sellnumber | nullSell price
items[].updated_atstring | nullLast time the source responded with this price (UTC)
items[].stalebooleantruemeans a stale price, due to source failure or quarantine. Display it with a “Not up to date” label.truncatedbooleanOnly when
symbolsis omitted and the plan has more symbols than the per-request limit: the response was truncated to that limitavailableintegerAlong with
truncated: total symbols the key can readattribution.textstringFree keys only: attribution text that must be displayed beside prices
attribution.urlstringLink to this text
Possible statuses and errors
- 304Use
If-None-Matchwith the previousETag. If unchanged, the response has no body and still counts against your quota. - 400You exceeded your plan's symbol limit, or
symbolsis empty - 404The requested symbol does not exist or is outside your plan (
Not available on your plan: …). - 421This host accepts free keys only
- 422Invalid input; details in
detail
401403429503and Key, access, rate-limit and capacity errors that can occur on any request (Error reference).