usdigitalresponse / univaf

An API hosted by USDR for recording and querying vaccine appointment availability.
https://getmyvax.org/
Apache License 2.0
7 stars 2 forks source link

Write scraper for Rite Aid #474

Closed Mr0grog closed 2 years ago

Mr0grog commented 2 years ago

All of Rite Aid's APIs (the one we currently use, the one VaccineSpotter used to use, and the newer, public SMART SL API in #159) have been down for almost a week. We’ve spent much of that time trying to get in touch with them on various channels, along with our contacts at the State of NJ and USDS, but they’ve been completely unresponsive.

So! It’s time to start scraping, unfortunately.

It looks like their scheduling web app has its own API for use by XHR (yay!) and that we can hit at URLs like: https://www.riteaid.com/content/riteaid-web/en.racloudgetavailablestores.json?address=08103&radius=25&vaccineIds=9-PREF-113,11-PREF-114,13-PREF-115&showAllStoresWithAvailibility=false&fetchMechanismVersion=2&count=100

I can’t figure out how to page through results, but you can set count and radius pretty high, so that may eliminate any need for it.

vaccineIds appear to be:

This is high priority, since there is actually a real crunch right now (booster and pediatrics), and locations often don’t have appointments available. It’s super important for NJ.

Mr0grog commented 2 years ago

It looks like Washington’s API is not showing Rite Aid (e.g. https://vaccinelocator.doh.wa.gov/locations/98115), likely because of this problem, so once we’ve got things solved here, we should let them know they can use us if helpful.

Mr0grog commented 2 years ago

This was solved in #488.