Data from weather stations

Using the following API requests you can get recent weather station data, search weather stations close to some geographic location and get historical weather station data.

Call current weather from one station

Description:

Get the most recent measurements from weather station.

API call:
http://api.openweathermap.org/data/2.5/station?id={id}
Parameters:

id station ID

Examples of API calls:
http://api.openweathermap.org/data/2.5/station?id=29584
Examples of API respond:
{"station":
{"name":"CW9300","type":2,"status":30,"id":29584,
"coord":{"lon":-78.0128,"lat":40.491}},
"last":{"main":{
    "temp":291.48,"humidity":94,"pressure":1016},
    "wind":{"speed":0,"gust":0,"deg":5},
    "rain":{"1h":0,"24h":4.064,"today":0},
    "dt":1403850288},
"params":["temp","pressure","humidity","wind","gust","rain"]}

Call current weather from several stations

Weather stations within a rectangular zone

Description:

JSON returns data from weather stations located within definite rectangle that is specified by geographical coordinates.

API call:
http://api.openweathermap.org/data/2.5/box/station?cluster={yes/no}&cnt={cnt}&bbox={bbox}
Parameters:
bbox bounding box
[
lon of the top left point,
lat of the top left point,
lon of the bottom right point,
lat of the bottom right point,
map zoom
]

callback javascript functionName

cluster use server clustering of points, possible values are [yes, no]

cnt amount of lines in respond

Examples of API calls:
http://api.openweathermap.org/data/2.5/box/station?cluster=no&cnt=200&format=json&bbox=8.87,49.07,65.21,61.26,6

Weather stations around a geo point

Description:

You can choose a geo point and expected number of weather station to get a list of weather stations that are located around this geo point.

Parameters:
lat, lon coordinates of the location of your interest cnt expected number of weather stations in respond
Examples of API calls:
http://api.openweathermap.org/data/2.5/station/find?lat=55&lon=37&cnt=30



Historical data from weather stations

Please, find detailes in Historical data.



Other features

Format

Description:

JSON format is used by default. To get data in XML or HTML formats just set up mode = xml or html.

Parameters:
mode - possible values are xml and html. If mode parameter is empty the format is JSON by default.
Examples of API calls:

JSON api.openweathermap.org/data/2.5/weather?q=London

XML api.openweathermap.org/data/2.5/weather?q=London&mode=xml

HTML api.openweathermap.org/data/2.5/weather?q=London&mode=html



How to connect your weather station to OpenWeatherMap

More information about connecting your weather station to OpenWeatherMap and transmitting data to our API, weather stations software, OpenWeatherMap weather station prototype and other DIY stations, real time map demonstating interconnection with 40,000 weather stations in Stations section