01
curl "https://apisaz.site/Request?key=as_YOUR_KEY&pretty=1"02
GET https://apisaz.site/Request03
https://apisaz.site/Request?key=as_xxx
https://apisaz.site/Request?token=as_xxx
X-API-Key: as_xxx
Authorization: Bearer as_xxx04
| type | type=gold,crypto | |
| symbol | symbol=USD,BTC | |
| pretty | pretty=1 |
05
HTTP/1.1 403 Forbidden
{
"status": "error",
"error": "key_exhausted",
"message": "Request limit reached for this key. Renew it from the admin panel."
}06
{
"status": "OK",
"updated": 1736400000,
"updated_at": "2025-01-09T04:00:00.000Z",
"count": 3,
"data": [
{ "category": "currency", "symbol": "USD", "name": "دلار آمریکا", "price": "615,000", "price_value": 615000 },
{ "category": "gold", "symbol": "", "name": "گرم طلای ۱۸ عیار", "price": "4,850,000", "price_value": 4850000 },
{ "category": "crypto", "symbol": "BTC", "name": "Bitcoin", "price": "97850", "price_value": 97850 }
]
}07
| — (no key) | 200 · OK | |
| OK | 200 | |
| invalid_api_key | 401 | |
| key_disabled | 403 | |
| key_expired | 403 | |
| key_exhausted | 403 | |
| upstream_error | 502 |
08
cURL
curl "https://apisaz.site/Request?key=as_xxx&type=gold,crypto&pretty=1"JavaScript
const r = await fetch("https://apisaz.site/Request", {
headers: { "X-API-Key": "as_xxx" }
});
const j = await r.json();
console.log(j.status, j.count, j.data[0]);Python
import requests
j = requests.get("https://apisaz.site/Request",
params={"key": "as_xxx", "type": "currency"}).json()
print(j["status"], j["count"])09
—