Query about weatherbit app

here in the link it shows lat and on instead of ‘city name’ variable but in video it it was ‘city name’ now what to do?

@rishidutta795
If you scroll above at API endpoints you will see all the endpoints which you can use. You can simply replace the lat and lon with city and follow the steps.

https://api.weatherbit.io/v2.0/current?city=your_city_name&key=API_KEY

Make changes in the example request link as similar to the one mentioned in the video by simply keeping the things till current? and delete the lat and Ion and replace it with the city (i.e) city=city_name and keep the &key part.

https://api.weatherbit.io/v2.0/current?lat=35.7796&Ion=-78.6382&key=API_KEY&include=minutely

simply erase from lat to -78.6382 and replace it by city=city_name

https://api.weatherbit.io/v2.0/current?city=chennai&key=API_KEY&include=minutely

1 Like