API playground
Send live requests to api.openweathermap.org with your own key, or preview schema-accurate sample responses across status codes with zero setup.
Need a key? Get a free key →
Request URL
GET
https://api.openweathermap.org/data/2.5/weather?lat=35.6895&lon=139.6917&units=metric&appid=$OPENWEATHER_API_KEYCode snippet
curl -sS "https://api.openweathermap.org/data/2.5/weather?lat=35.6895&lon=139.6917&units=metric&appid=$OPENWEATHER_API_KEY"ResponseSample preview · No key required200 OK
Inspect sample status payloads:
{
"coord": {
"lon": 139.6917,
"lat": 35.6895
},
"weather": [
{
"id": 802,
"main": "Clouds",
"description": "scattered clouds",
"icon": "03d"
}
],
"base": "stations",
"main": {
"temp": 22.1,
"feels_like": 21.8,
"temp_min": 20.9,
"temp_max": 23.5,
"pressure": 1014,
"humidity": 58,
"sea_level": 1014,
"grnd_level": 1010
},
"visibility": 10000,
"wind": {
"speed": 4.1,
"deg": 140
},
"clouds": {
"all": 40
},
"dt": 1731924000,
"sys": {
"type": 2,
"id": 268395,
"country": "JP",
"sunrise": 1731878120,
"sunset": 1731915240
},
"timezone": 32400,
"id": 1850147,
"name": "Tokyo",
"cod": 200
}