Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:56:05+00:00 2026-06-08T14:56:05+00:00

I have a service that pulls from a weather API which only allows me

  • 0

I have a service that pulls from a weather API which only allows me to call it 500 times a day as I can’t find any good free weather APIs that have hourly data. The service calls the api which returns a JSON array everytime the user hits the page as of right now.

Since I’m the only one using the service currently that is not a problem but for future I was hoping to cache search results and have them expire after an hour or two as the data just change rather frequently.

So if a user types in the their zip that result would be cached for 2 hours. If they pressed refresh it would pull the saved data from the cache or if another user came in and type the same zip it would pull from the cache.

What is the best way to cut down on the total API requests? I thought about using SQL but it seems it wouldn’t be a good fit since the data is somewhat dynamic and there are many different possibilities over 50,000+ zips.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:56:07+00:00Added an answer on June 8, 2026 at 2:56 pm

    Why not use a SQL database?

    This seems fairly straight forward. The one thing to keep in mind, is to capture as much information as possible on each API call. If the API allows you to fetch more than just one piece of information at a time, fetch as much as you can so you don’t have to go back to the API.

    Note: This solution does not get around the fact that you can only go to the API 500 times. It will simply provide a way for you to not have to go back to the API more than once per zip code.

    1. Take in the zip code
    2. Check your database to see if you already have that zip stored (if you do, check the timestamp to see if you want to go to the API for newer information)
    3. If it’s not in your database, place your API call and store the returned info in the database using the Zip as the identifying data
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service class that successfully pulls my JSON from a feed
I have a script that pulls some data from a web service and populates
I have a service that use the tcp binding and this services allows to
I have a Silverlight 4 app which pulls entities down from a database using
I have an application that pulls data from several web services. The application is
I am writing a Windows service that pulls messages from an MSMQ and posts
I've got a little c# windows service that periodically pulls xml from a web
My Flex app runs a service to a php page that pulls data from
I have a Service that sends an Intent to my Activity every 0.1 seconds.
I have a service that I would like it to become single instance, because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.