---
title: "Weather per hour and station"
method: GET
path: "/v1/weather/history"
---

# Weather per hour and station

`GET /v1/weather/history`

## Request

- Base URL: `https://api.aleva.se`
- URL: `https://api.aleva.se/v1/weather/history`
- Auth: one of:
  - none
  - HTTP bearer
  - API key in header `X-API-Key`

## Query parameters

- `station_id` string, required
- `station_id.in` string
- `parameter` string
- `parameter.in` string
- `date` string, date
- `date.gte` string, date
- `date.lte` string, date
- `limit` integer
- `cursor` string

## Response `200`

OK

- object
  - `_meta` Meta, required
    - `attribution` string
    - `build_run_id` integer
    - `built_at` string, date-time
    - `endpoint` string
    - `fetched_at` string, date-time
    - `licenses` string[]
    - `sources` object[]
    - `usage_mode` string
    - `version` integer
  - `data` object[], required
    - `date` string, date: Day (Europe/Stockholm)
    - `observed_at` string, date-time
    - `parameter` string: 1 temperature, 4 wind speed, 6 humidity, 7 precipitation
    - `quality` string: G checked, Y suspect (latest-hour data is not quality-controlled)
    - `station` string
    - `station_id` string: SMHI station id
    - `unit` string
    - `value` number
  - `next_cursor` string: Present when there are more rows

## Other responses

- `400`: Invalid parameters
- `401`: Missing or invalid API key
- `404`: Not found
- `429`: Rate limit reached

---

[API](https://skmtc.dev/aleva/apis/aleva-api.md) · [All operations](https://skmtc.dev/aleva/apis/aleva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aleva/apis/aleva-api/revisions/2edd15ebc4c9?raw)
