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#

Fetch hourly data for Frankfurt Airport in January 2024:

Bash
meteo hourly 10637 --start 2024-01-01 --end 2024-01-31

🎯 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#