Skip to content

Instantly share code, notes, and snippets.

@ayeshLK
Last active March 10, 2023 17:34
Show Gist options
  • Save ayeshLK/ff1aa8513a8a8cc735ccfbc26a95cb36 to your computer and use it in GitHub Desktop.
Save ayeshLK/ff1aa8513a8a8cc735ccfbc26a95cb36 to your computer and use it in GitHub Desktop.
curl https://api.openweathermap.org/data/2.5/weather?q=Colombo&appid={API_KEY}
{
"coord":{
"lon":79.8478,
"lat":6.9319
},
"weather":[
{
"id":804,
"main":"Clouds",
"description":"overcast clouds",
"icon":"04n"
}
],
"base":"stations",
"main":{
"temp":300.12,
"feels_like":302.73,
"temp_min":300.12,
"temp_max":300.12,
"pressure":1012,
"humidity":79,
"sea_level":1012,
"grnd_level":1010
},
"visibility":10000,
"wind":{
"speed":2.37,
"deg":314,
"gust":2.5
},
"clouds":{
"all":100
},
"dt":1678469281,
"sys":{
"type":1,
"id":9098,
"country":"LK",
"sunrise":1678409395,
"sunset":1678452745
},
"timezone":19800,
"id":1248991,
"name":"Colombo",
"cod":200
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment