Skip to main content

Inventory

You can check the data availability for a specific weather station using the inventory method. This method retrieves information about the time range for which data is available at the specified station. Inventory data is both provider and parameter specific, allowing you to see exactly what data can be accessed.

🚀 Example

import meteostat as ms

STATION = '71624' # Toronto Pearson International Airport

# Get station inventory
inventory = ms.stations.inventory(STATION)

print(f"Data available from {inventory.start} to {inventory.end}.")

This is the output you would get, depending on when you run the code:

Data available from 1937-11-01 to 2025-12-31.

🔍 API

Interface

meteostat.stations.inventory

Parameters

station

The unique identifier(s) of the weather station(s).

Data Type

str or List[str]


providers

The data provider(s) to filter the inventory by. If not specified, the inventory for all available providers will be returned.

Data Type

Optional[List[Provider]]

Default Value

None

Properties

start

The start date of the available data period.

Data Type

date or None


end

The end date of the available data period.

Data Type

date or None


parameters

List of available meteorological parameters for the station.

Data Type

List[Parameter] or None


df

A DataFrame representation of the inventory data.

Data Type

DataFrame or None