Aller au contenu
GET /v1/history

Price & volume history

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/albion-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/albion-api/v1/history" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/albion-api/v1/history", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/albion-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/albion-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": {
        "item": "T4_BAG",
        "series": [
            {
                "city": "Caerleon",
                "data": [
                    {
                        "avg_price": 7334,
                        "timestamp": "2026-05-02T00:00:00",
                        "item_count": 117
                    },
                    {
                        "avg_price": 7559,
                        "timestamp": "2026-05-03T00:00:00",
                        "item_count": 259
                    },
                    {
                        "avg_price": 7871,
                        "timestamp": "2026-05-04T00:00:00",
                        "item_count": 117
                    },
                    {
                        "avg_price": 5930,
                        "timestamp": "2026-05-05T00:00:00",
                        "item_count": 249
                    },
                    {
                        "avg_price": 7568,
                        "timestamp": "2026-05-06T00:00:00",
                        "item_count": 146
                    },
                    {
                        "avg_price": 7213,
                        "timestamp": "2026-05-07T00:00:00",
                        "item_count": 94
                    },
                    {
                        "avg_price": 6537,
                        "timestamp": "2026-05-08T00:00:00",
                        "item_count": 226
                    },
                    {
                        "avg_price": 7528,
                        "timestamp": "2026-05-09T00:00:00",
                        "item_count": 164
                    },
                    {
                        "avg_price": 7204,
                        "timestamp": "2026-05-10T00:00:00",
                        "item_count": 191
                    },
                    {
                        "avg_price": 6731,
                        "timestamp": "2026-05-11T00:00:00",
                        "item_count": 201
                    },
                    {
                        "avg_price": 6663,
                        "timestamp": "2026-05-12T00:00:00",
                        "item_count": 147
                    },
                    {
                        "avg_price": 7255,
                        "timestamp": "2026-05-13T00:00:00",
                        "item_count": 90
                    },
                    {
                        "avg_price": 6458,
                        "timestamp": "2026-05-14T00:00:00",
                        "item_count": 87
                    },
                    {
                        "avg_price": 7245,
                        "timestamp": "2026-05-15T00:00:00",
                        "item_count": 109
                    },
                    {
                        "avg_price": 6803,
                        "timestamp": "2026-05-16T00:00:00",
                        "item_count": 105
                    },
               
…