Skip to content

Instantly share code, notes, and snippets.

@reinhrst
Created October 7, 2021 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reinhrst/ef1259ad01d1ff2607d0a6071a161440 to your computer and use it in GitHub Desktop.
Save reinhrst/ef1259ad01d1ff2607d0a6071a161440 to your computer and use it in GitHub Desktop.
Example Open Weather Map API call: api.openweathermap.org/data/2.5/weather?q=London&appid={API key}
{
"coord": {
"lon": -0.13,
"lat": 51.51
},
"weather": [
{
"id": 300,
"main": "Drizzle",
"description": "light intensity drizzle",
"icon": "09d"
}
],
"base": "stations",
"main": {
"temp": 280.32,
"pressure": 1012,
"humidity": 81,
"temp_min": 279.15,
"temp_max": 281.15
},
"visibility": 10000,
"wind": {
"speed": 4.1,
"deg": 80
},
"clouds": {
"all": 90
},
"dt": 1485789600,
"sys": {
"type": 1,
"id": 5091,
"message": 0.0103,
"country": "GB",
"sunrise": 1485762037,
"sunset": 1485794875
},
"id": 2643743,
"name": "London",
"cod": 200
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment