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

01

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

02

GET https://apisaz.site/Request

03

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

X-API-Key: as_xxx
Authorization: Bearer as_xxx

04

typetype=gold,crypto
symbolsymbol=USD,BTC
prettypretty=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
OK200
invalid_api_key401
key_disabled403
key_expired403
key_exhausted403
upstream_error502

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

APISAZ

Please select your language

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