Meta Data

This endpoint provides information which describes a specific weather station. The output includes meta data like latitude, longitude and elevation.

Endpoint

GET https://api.meteostat.net/v2/stations/meta

Parameters

You’ll need to specify one of the following parameters.

ParameterDescriptionData TypeRequiredDefault
idThe Meteostat ID of the weather stationStringNoundefined
wmoThe WMO ID of the weather stationIntegerNoundefined
icaoThe ICAO ID of the weather stationStringNoundefined
iataThe IATA ID of the weather stationStringNoundefined

Response

The response body includes the following properties.

ParameterDescriptionData Type
idThe Meteostat ID of the weather stationString
nameObject containing the name of the weather stations in different languagesObject
countryISO 3166-1 alpha-2 country code of the weather stationString
regionThe state or region of the weather stationString
nationalThe national ID of the weather stationString
wmoThe WMO ID of the weather stationInteger
icaoThe ICAO ID of the weather stationString
iataThe IATA ID of the weather stationString
latitudeThe latitude of the weather stationFloat
longitudeThe longitude of the weather stationFloat
elevationThe elevation of the weather station in meters above sea levelInteger
timezoneThe time zone of the weather stationString
inventoryObject containing the periods of available data for this weather stationObject

Example: Meta data for Toronto City (ID: 71508)

The following example requires the cURL command-line interface. Alternatively, you can use an API client like Postman.

curl --header "x-api-key: {key}" "https://api.meteostat.net/v2/stations/meta?id=71508"

Please replace {key} with your personal API key.

Data Response

That’s the expected response:

{
    "meta": {
        "exec_time": 0.001,
        "generated": "2020-06-02 15:54:27"
    },
    "data": {
        "id": "71508",
        "name": {
            "en": "Toronto City"
        },
        "country": "CA",
        "region": "ON",
        "national": null,
        "wmo": "71508",
        "icao": "CXTO",
        "iata": null,
        "latitude": 43.6667,
        "longitude": -79.4,
        "elevation": 113,
        "timezone": "America/Toronto",
        "inventory": {
            "hourly": {
                "start": "2004-08-03",
                "end": "2020-05-31"
            },
            "daily": {
                "start": "2002-06-04",
                "end": "2020-05-25"
            }
        }
    }
}