Aller au contenu
GET /v1/history

A currency official rate on a specific past date

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/nbg-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/nbg-api/v1/history" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nbg-api/v1/history", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nbg-api/v1/history");
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/nbg-api/v1/history",
    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": {
        "base": "GEL",
        "date": "2026-05-15",
        "name": "US Dollar",
        "source": "National Bank of Georgia",
        "currency": "USD",
        "quantity": 1,
        "daily_change": -0.0016,
        "gel_per_unit": 2.6802,
        "unit_per_gel": 0.37310648
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:37.085Z",
        "request_id": "9dd49d41-10b0-4526-b403-c8df90a988e6"
    },
    "status": "ok",
    "message": "History retrieved successfully",
    "success": true
}