Vai al contenuto
GET /v1/timeseries

Rates over a date range

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/currency-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/currency-api/v1/timeseries" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/currency-api/v1/timeseries", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/currency-api/v1/timeseries");
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/currency-api/v1/timeseries",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "base": "EUR",
        "rates": {
            "2023-12-29": {
                "USD": 1.105
            },
            "2024-01-02": {
                "USD": 1.0956
            },
            "2024-01-03": {
                "USD": 1.0919
            },
            "2024-01-04": {
                "USD": 1.0953
            },
            "2024-01-05": {
                "USD": 1.0921
            },
            "2024-01-08": {
                "USD": 1.0946
            },
            "2024-01-09": {
                "USD": 1.094
            },
            "2024-01-10": {
                "USD": 1.0946
            },
            "2024-01-11": {
                "USD": 1.0987
            },
            "2024-01-12": {
                "USD": 1.0942
            },
            "2024-01-15": {
                "USD": 1.0945
            },
            "2024-01-16": {
                "USD": 1.0882
            },
            "2024-01-17": {
                "USD": 1.0877
            },
            "2024-01-18": {
                "USD": 1.0875
            },
            "2024-01-19": {
                "USD": 1.0887
            },
            "2024-01-22": {
                "USD": 1.089
            },
            "2024-01-23": {
                "USD": 1.0872
            },
            "2024-01-24": {
                "USD": 1.0905
            },
            "2024-01-25": {
                "USD": 1.0893
            },
            "2024-01-26": {
                "USD": 1.0871
            },
            "2024-01-29": {
                "USD": 1.0823
            },
            "2024-01-30": {
                "USD": 1.0846
            },
            "2024-01-31": {
                "USD": 1.0837
            }
        },
        "end_date": "2024-01-31",
        "start_date": "2023-12-29"
    },
    "meta": {
        "timestamp": "2026-05-29T19:13:39.737Z",
        "request_id": "f0fa153d-5217-4982-91df-945cab26642f"
    },
    "status": "ok",
    "message": "Time-series retrieved successfully",
    "success": true
}