title: Connecting API to database
body: <p>I am using this API to build an app (Xcode) and the maximum number of calls a day is 5000. The way I have currently built the app for testing purposes is to call the API every time the user refreshes the data. So, I am running out of calls per day. So, I was wondering how to connect an API to a database like firebase. Then update the data in the database maybe 4 times a day at a specific time. When the user would be refreshing, they would pull data from the database instead. I'm new to programming and am not sure if this is the best solution and would appreciate if anyone could direct me to more resources. Thanks!</p>
  <p>This is the api I am using: <a href="https://projects.propublica.org/api-docs/congress-api/" rel="nofollow noreferrer">https://projects.propublica.org/api-docs/congress-api/</a>?</p>
  <p>Edit: Also would something like this also mean I would build a REST API? <a href="https://github.com/unitedstates/congress" rel="nofollow noreferrer">https://github.com/unitedstates/congress</a> It is a repository that includes data importing scripts and scrapers. I'm guessing this isn't compatible with swift but is compatible with building a REST API in AWS or Firebase?</p>