Experimente uma observação USD/JPY de 15 minutos
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."}Este exemplo fixo foi observado em 2026-09-15 para o intervalo das 12:00 UTC de 2026-09-14. A cotação é indicativa. timestamp é o início do intervalo; effective_at é o horário da observação.
Intervalos e histórico disponível
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 | Janela máxima por solicitação |
|---|---|---|
1m | 221 | 7 d |
5m | 221 | 31 d |
15m | 221 | 93 d |
1h | 221 | 366 d |
4h | 209 | 1830 d |
1d | 10296 | 1830 d |
Observações ausentes e pares cruzados
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.
Autenticação e uso comercial
Plus: 1h e 4h por 30 dias. Pro: 1m nos últimos 30 dias, e de 5m a 4h com histórico completo. Ambos exigem uma chave.
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.
| Plano | Chamadas por mês | Uso comercial |
|---|---|---|
| Free | 5,000 | Exibir com crédito visível e com link |
| Basic | 100,000 | Sim |
| Plus | 300,000 | Sim |
| Pro | 1,000,000 | Sim |