How do I get page=2 (pagination) on http://api.wunderground.com/api/API_KEY/geolookup/q/US.json

  • 1
  • Question
  • Updated 5 months ago
When I want to get all cities in US (country), I get a limited list of 500 cities. How do I get a full list or pagination of the list with page parameter?
Photo of Tom Lev

Tom Lev

  • 4 Posts
  • 0 Reply Likes
  • frasturated

Posted 5 months ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
We don't have a query that will return that many cities, the payload is too large. 
Photo of Tom Lev

Tom Lev

  • 4 Posts
  • 0 Reply Likes
Thanks Brendan for your answer, I wonder though, how would you suggest I should get all weather locations in the US? Thanks!
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
Our API accepts lat/lon so you could use any lat,lon or you could also use any US zipcode.  You could get the full zipcode list from USPS.  There are other geo services that will give you major cities of the country.
Photo of Tom Lev

Tom Lev

  • 4 Posts
  • 0 Reply Likes
Thanks, but still I need to get all Weather Underground weather locations in the US in one place...