ApiSazای‌پی‌آی‌ساز

01

curl "https://apisaz.site/Request?key=ApiSaz_YOUR_KEY&pretty=1"

02

GET https://apisaz.site/Request

03

https://apisaz.site/Request?key=ApiSaz_xxx
https://apisaz.site/Request?token=ApiSaz_xxx

X-API-Key: ApiSaz_xxx
Authorization: Bearer ApiSaz_xxx

04

typetype=gold,crypto
symbolsymbol=USD,BTC
prettypretty=1

05

HTTP/1.1 429 Too Many Requests
Retry-After: 5

{
  "status": "error",
  "error": "rate_limited",
  "limit": 1,
  "window": 5,
  "used": 1,
  "retry_after": 5
}

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
OK200
invalid_api_key401
key_disabled403
key_expired403
key_exhausted403
rate_limited429
upstream_error502

08

cURL

curl "https://apisaz.site/Request?key=ApiSaz_xxx&type=gold,crypto&pretty=1"

JavaScript

const r = await fetch("https://apisaz.site/Request", {
  headers: { "X-API-Key": "ApiSaz_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": "ApiSaz_xxx", "type": "currency"}).json()
print(j["status"], j["count"])

09

—

APISAZ

Please select your language

You can change your language anytime with the globe button, and the theme with the button beside it.