Historie per station
Lees uur- of dagwaarden. Gebruik start en end om één specifieke kalenderdag op te halen; je sleutel heeft de scope Historie nodig.
curl
curl -H 'X-API-Key: JOUW_API_SLEUTEL' 'https://weather.viteco.tech/api/stations/260/history?granularity=hourly&start=2026-09-29T00:00:00%2B02:00&end=2026-09-29T23:59:59%2B02:00'JavaScript
const q = new URLSearchParams({
granularity: 'hourly',
start: '2026-09-29T00:00:00+02:00',
end: '2026-09-29T23:59:59+02:00'
});
const r = await fetch(`/api/stations/260/history?${q}`, {
headers: {'X-API-Key': 'JOUW_API_SLEUTEL'}
});
const data = await r.json();Python
import requests
r = requests.get(
'https://weather.viteco.tech/api/stations/260/history',
params={
'granularity': 'hourly',
'start': '2026-09-29T00:00:00+02:00',
'end': '2026-09-29T23:59:59+02:00'
},
headers={'X-API-Key': 'JOUW_API_SLEUTEL'}, timeout=30)
data = r.json()