CVS
CVS Product API
One CVS front-store product by cvs.com URL or id: regular and sale price, unit price, promotion and its end date, rating, review count, UPC, size, purchase limit, description, highlights, ingredients, directions, warnings, attributes, breadcrumbs, images and every variant with its SKU id and UPC. Slower than search: typically 7-37 seconds. Costs 1 credit per request; a failed attempt is not charged.
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/jsonproduct_idstringCVS product id or SKU id: the number after prodid- in a product URL, or a search result's product_id or sku_id. Pass this or url.
Example: 832677
urlstringcvs.com product URL, https://www.cvs.com/shop/<name>-prodid-<id>. Pass this or product_id.
Example: https://www.cvs.com/shop/crest-3d-white-fluoride-anticavity-whitening-toothpaste-radiant-mint-2-4-oz-prodid-789787
Request
from scavio import ScavioClient
# Product lookups typically take 7-37 seconds; allow a long timeout.
client = ScavioClient(api_key="sk_live_your_key")
p = client.cvs.product(product_id="832677")["data"]
print(p["name"], p["sale_price"], "was", p["price"], p["unit_price"])
print("UPC", p["upc"], "| limit per order:", p["max_quantity"], "|", p["category"])
for v in p["variants"]:
print("variant:", v["sku_id"], v["upc"], v["size_quantity"], v["size_unit"])Response