Walgreens
Walgreens Search API
Search Walgreens retail products (no pharmacy) and get up to 70 results a page, each with product id, SKU, UPC, brand, size, regular and sale price, unit price, promotion, coupon, rewards and rebate messages, rating, review count, ship/pickup/delivery availability and clearance flag. Prices are Walgreens' national online prices. 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/jsonquerystringrequiredSearch keywords.
Example: shampoo
pageintegerResults page, 1-100. Defaults to 1. Up to 70 results per page.
Example: 1
sortstringrelevance (default), top_sellers, price_low_to_high, price_high_to_low, unit_price_low_to_high, brand_name_asc, brand_name_desc, most_reviewed, highest_rated, most_viewed or newest_arrival.
store_idstringWalgreens store number. When set, each result's availability.text describes that store (for example "Not sold at your store"). It does not change prices. Find numbers with /api/v1/walgreens/stores.
Example: 15350
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.walgreens.search(query="shampoo", store_id="15350")["data"]
for p in res["products"]:
print(p["product_id"], p["name"], p["price"], "sale:", p["sale_price"], "|", p["availability"]["text"])Response