Walgreens
Walgreens Store Locator API
Walgreens and Duane Reade stores near a US ZIP code or coordinates, nearest first, paged up to 25 a page: store number, name, brand, address and cross streets, phone, coordinates, distance in miles, opening and closing time, time zone, a temporarily-closed flag and the store page URL. Costs 2 credits per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonzipstringUS ZIP code to search around. Pass this, or latitude and longitude.
Example: 60614
latitudenumberLatitude to search around.
Example: 40.7484
longitudenumberLongitude to search around.
Example: -73.9857
radiusnumberSearch radius in miles, 1-100. Defaults to 25.
Example: 25
pageintegerResults page, 1-100. Defaults to 1.
Example: 1
limitintegerStores per page, 1-25. Defaults to 10.
Example: 5
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.walgreens.stores(zip="60614", limit=5)["data"]
for s in res["stores"]:
print(s["store_number"], s["address"]["street"], s["distance_miles"], "mi", s["open_time"], "-", s["close_time"])Response