Kroger
Kroger Product API
One Kroger, QFC or Fred Meyer product by product URL or UPC: the search fields plus description, country of origin, dimensions, weight, dietary flags, nutrition facts with ingredients and allergens where the site lists them, the aisle at the store (store_location), breadcrumbs, the banner and the store that priced it (a store the site chooses; use prices for a store you pick). Prices are integer cents. 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/jsonproduct_urlstringFull or relative product URL on kroger.com, qfc.com or fredmeyer.com (products[].url of a search). An absolute URL sets the banner; a banner that contradicts its host is a 400. One of product_url or upc is required.
Example: https://www.qfc.com/p/simple-truth-organic-lactose-free-2-reduced-fat-milk-half-gallon/0001111050438
upcstringThe product's UPC (products[].upc of a search, or the digits at the end of a product URL: /p/{slug}/{upc}).
Example: 0001111050438
slugstringThe readable part of the product URL. Optional with upc.
Example: simple-truth-organic-lactose-free-2-reduced-fat-milk-half-gallon
bannerenum<string>default:krogerThe store banner. Prices differ by banner and by store. Only these three are served; other Kroger-family banners (Ralphs, King Soopers, Fry's, Smith's, Harris Teeter and the rest) are not available.
Example: fred_meyer
kroger— Kroger (kroger.com). The default.qfc— QFC (qfc.com): Washington and Oregon.fred_meyer— Fred Meyer (fredmeyer.com): the Pacific Northwest and Alaska, grocery plus general merchandise, apparel and home.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# The same UPC on two banners: each answer names the store that priced it.
for banner in ("qfc", "fred_meyer"):
p = client.kroger.product(upc="0001111050438", banner=banner)["data"]
print(banner, p["store"]["name"], p["price"], p["promo_price"], p["stock_level"])Response