How to get the data for entire USA cities in single Call/URL

  • 1
  • Question
  • Updated 5 years ago
I want to get all type alerts for entire USA in single call. As per API documentation we have to supply the location/city to get the data. Is there any way to get the all the alerts for all USA cities in one call or from one URL?
Photo of SelvakumarPeriyasamy

SelvakumarPeriyasamy

  • 3 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
We don't have functionality like that in the API.
Photo of SelvakumarPeriyasamy

SelvakumarPeriyasamy

  • 3 Posts
  • 0 Reply Likes
Thanks for the reply Brendan. Do we have any suggestion/idea to get the data for entire US cities?
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
You can make several calls at one time, they don't need to be serial. But there isn't one exact method to get it all. It just takes a lot of calls to the API service.
Photo of SelvakumarPeriyasamy

SelvakumarPeriyasamy

  • 3 Posts
  • 0 Reply Likes
Thanks and understood your suggestion. As you are providing the data for entire US cities by city by city you must have all the States and Cities. Where can i found the list of states and cities?
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
We don't have a UI for accessing the db in that way. You're probably better off using a db service, or Google location service, to get lists of locations and then hit the URL when you know what location you want.