Prova un’osservazione USD/JPY a 15 minuti
curl "https://api.exchangerate.dev/v1/timeseries?base=USD&symbols=JPY&interval=15m&from=2026-09-14T12:00:00Z&to=2026-09-14T12:00:00Z" -H "Authorization: Bearer YOUR_API_KEY"{ "result": "success", "base": "USD", "symbols": ["JPY"], "interval": "15m", "from": "2026-09-14T12:00:00Z", "to": "2026-09-14T12:00:00Z", "data": [{ "timestamp": "2026-09-14T12:00:00Z", "effective_at": { "JPY": "2026-09-14T12:14:58.972181Z" }, "rates": { "JPY": 154.582 }, "source": "live", "source_type": "market", "market_session": "open", "derived_symbols": [] }], "next_cursor": null, "has_more": false, "notice": "Indicative rates, not for settlement."}Questo esempio fisso è stato osservato il 2026-09-15 per l’intervallo delle 12:00 UTC del 2026-09-14. Il tasso è indicativo. timestamp è l’inizio dell’intervallo; effective_at è l’ora di osservazione.
Intervalli e storico disponibile
The supported market intervals are 1m, 5m, 15m, 1h and 4h. The 1d interval reads daily reference history. Market collection began on 2026-09-14; 1m is retained for 30 days, while coarser intervals have no scheduled expiry. Retention does not mean that every pair already has that much history.
| interval | Unique pairs | Finestra massima per richiesta |
|---|---|---|
1m | 221 | 7 d |
5m | 221 | 31 d |
15m | 221 | 93 d |
1h | 221 | 366 d |
4h | 209 | 1830 d |
1d | 10296 | 1830 d |
Osservazioni mancanti e cross
Intraday gaps remain gaps. Cross rates require real closing ticks from both USD legs in the same UTC interval, at most five seconds apart. effective_at is the older observation time. The current bucket can change; 1d remains daily reference history.
A supported window without observations returns HTTP 200 with data: [], has_more: false and next_cursor: null. An unknown interval returns unsupported_interval. A request containing an unsupported pair returns HTTP 400 unsupported_pair_interval with rejected_pairs; the whole request is rejected.
Autenticazione e uso commerciale
Plus: 1h e 4h per 30 giorni. Pro: 1m negli ultimi 30 giorni, da 5m a 4h con storico completo. Entrambi richiedono una chiave.
Plus: 1h and 4h for 30 days. Pro: 1m last 30 days; 5m to 4h, full depth. Both need a key. Anonymous latest and 30-day daily history: 10 requests per minute, 100 per hour per IP.
| Piano | Chiamate al mese | Uso commerciale |
|---|---|---|
| Free | 5,000 | Mostra con credito visibile e collegato |
| Basic | 100,000 | Sì |
| Plus | 300,000 | Sì |
| Pro | 1,000,000 | Sì |