Time Series
On this page
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#
🎯 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 DataFetch hourly weather observations for one or more weather stations. Supports coordinate-based input for interpolated data.Daily DataFetch daily weather observations for one or more weather stations. Supports coordinate-based input for interpolated data.Monthly DataFetch monthly weather summaries for one or more weather stations.Climate NormalsFetch 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.