Combining queries to prevent overages?

  • 2
  • Question
  • Updated 4 years ago
I have a program that needs to be run once every 5 minutes throughout a day. Each run of the back-end of this program generates 12 seperate zip codes needing a total of 2 queries (current weather conditions and day-ahead forecast). At present I have the limit of 5,000 queries per day. This leads me to the understanding that if my program runs as intended I will be over the limit. Is there any way I can combine these queries to make it more efficient?

Example, I want to query for the zip codes 02370, 02110, 90210, and 92489, is there any way to pull all those together in a single xml file or be able to do anything but pull them all separately?

Thanks for any help you can offer!
Photo of En0c

En0c

  • 6 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 2
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
At this time there is no way to combine multiple location queries. You can combine feature requests such as /geolocation/conditions/forecast/
Photo of HurricaneTrackerNC

HurricaneTrackerNC

  • 7 Posts
  • 0 Reply Likes
Brendan - has there been any updates to this? Being able to query multiple locations in a single pull is a feature I would also gladly welcome. Otherwise I will exceed my daily allowance of API queries.
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
No, there hasn't been. We're in an evaluation period on the next steps. Sorry there has been such a long delay! I certainly know it would be a useful feature.
Photo of Ryan Gallagher

Ryan Gallagher

  • 1 Post
  • 0 Reply Likes
I would be curious about this as well, maybe a grouping function.
Photo of changedaily

changedaily

  • 1 Post
  • 0 Reply Likes
Another vote for this to be added.