Time Series
The Meteostat CLI provides commands for fetching historical time series data at hourly, daily, monthly, and climate normal granularities. All commands accept one or more station IDs (or coordinates for interpolation) and a date range.
🚀 Example
- Hourly
- Daily
- Monthly
- Normals
Fetch hourly data for Frankfurt Airport in January 2024:
meteo hourly 10637 --start 2024-01-01 --end 2024-01-31
Fetch daily data for Frankfurt Airport for the full year 2024:
meteo daily 10637 --start 2024-01-01 --end 2024-12-31
Fetch monthly data for Frankfurt Airport from 2020 to 2024:
meteo monthly 10637 --start 2020 --end 2024
Fetch the 30-year climate normals for Frankfurt Airport:
meteo normals 10637 --start 1991 --end 2020
🎯 Common Options
All time series commands share the following options:
| Option | Short | Description |
|---|---|---|
--start | -s | Start date (YYYY-MM-DD, YYYY-MM, YYYY) |
--end | -e | End date (same formats) |
--parameters | -p | Comma-separated parameters (e.g. tavg,tmin,tmax,prcp) |
--providers | -P | Comma-separated data providers |
--format | -f | Output format: csv, json, xlsx, parquet, png, svg |
--output | -o | Output file path (defaults to stdout) |
--with-sources | -S | Include data source column in output |
--no-models | Exclude model data (e.g. MOSMIX) | |
--no-header | Omit CSV header row | |
--no-cache | Disable result caching | |
--all | -A | Print full table without truncation |
--agg | Aggregation function: mean, sum, min, max |
👀 Learn More
📄️ Hourly Data
Fetch hourly weather observations for one or more weather stations. Supports coordinate-based input for interpolated data.
📄️ Daily Data
Fetch daily weather observations for one or more weather stations. Supports coordinate-based input for interpolated data.
📄️ Monthly Data
Fetch monthly weather summaries for one or more weather stations.
📄️ Climate Normals
Fetch climate normals for one or more weather stations. Climate normals are long-term averages (typically 30 years) used as a baseline for comparing current conditions.