Skip to main content

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

Fetch hourly data for Frankfurt Airport in January 2024:

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

🎯 Common Options

All time series commands share the following options:

OptionShortDescription
--start-sStart date (YYYY-MM-DD, YYYY-MM, YYYY)
--end-eEnd date (same formats)
--parameters-pComma-separated parameters (e.g. tavg,tmin,tmax,prcp)
--providers-PComma-separated data providers
--format-fOutput format: csv, json, xlsx, parquet, png, svg
--output-oOutput file path (defaults to stdout)
--with-sources-SInclude data source column in output
--no-modelsExclude model data (e.g. MOSMIX)
--no-headerOmit CSV header row
--no-cacheDisable result caching
--all-APrint full table without truncation
--aggAggregation function: mean, sum, min, max

👀 Learn More