Aller au contenu
GET /v1/gold

Full Turkish gold & silver market

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/turkey-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/turkey-api/v1/gold" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/turkey-api/v1/gold", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/turkey-api/v1/gold");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/turkey-api/v1/gold",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "gold": [
            {
                "code": "GRA",
                "name": "Gram Gold",
                "quote": "TRY",
                "buying": 6058.29,
                "selling": 6059.18,
                "change_pct": 0.33
            },
            {
                "code": "HAS",
                "name": "Gram Pure Gold",
                "quote": "TRY",
                "buying": 6028,
                "selling": 6028.88,
                "change_pct": 0.33
            },
            {
                "code": "CEYREKALTIN",
                "name": "Quarter Gold Coin",
                "quote": "TRY",
                "buying": 9801.16,
                "selling": 10027.48,
                "change_pct": -2.1
            },
            {
                "code": "YARIMALTIN",
                "name": "Half Gold Coin",
                "quote": "TRY",
                "buying": 19541.06,
                "selling": 20054.97,
                "change_pct": -2.1
            },
            {
                "code": "TAMALTIN",
                "name": "Full Gold Coin",
                "quote": "TRY",
                "buying": 39204.63,
                "selling": 39987.27,
                "change_pct": -2.1
            },
            {
                "code": "CUMHURIYETALTINI",
                "name": "Republic Gold Coin",
                "quote": "TRY",
                "buying": 40663,
                "selling": 41278,
                "change_pct": -1.96
            },
            {
                "code": "ATAALTIN",
                "name": "Ata Gold Coin",
                "quote": "TRY",
                "buying": 40429.77,
                "selling": 41459.19,
                "change_pct": -2.1
            },
            {
                "code": "RESATALTIN",
                "name": "Resat Gold Coin",
                "quote": "TRY",
                "buying": 40429.77,
                "selling": 41459.19,
                "change_pct": -2.1
            },
            {
                "code": "HAMITALTIN",
                "name": "Hamit Gold Coin",
                "quote": "TRY",
                "buying": 40429.77,
                "selling": 41459.19,
                "change_pct": -2.1
            },
            {
                "code": "IKIBUCUKALTIN",
                "name": "2.5 Gold Coin",
                "quote": "TRY",
                "buying": 98011.57,
                "selling": 99600.2,
                "change_pct": -2.1
            },
            {
                "code": "BESLIALTIN",
                "name": "5 Gold Coin",
                "quote": "TRY",
                "buying": 198473.43,
                "selling": 202389.56,
                "change_pct": -2.1
            },
            {
                "code": "GREMSEALTIN",
                "name": "Gremse Gold Coin",
                "quote": "TRY",
                "buying": 98011.57,
                "selling": 100274.83,
                "change_pct": -2.1
          
…