Kroger
Kroger Search API
Search Kroger, QFC or Fred Meyer products by keyword (banner). Up to 24 products with UPC, name, brand, price, list and promo price with its end date, multi-buy deals, unit price, size, stock level, SNAP eligibility, dietary info, category and rating with its star distribution, plus total and the store that priced the results (a store the site chooses; use prices for a store you pick). Prices are integer cents. Only the first page is available and there is no sort. 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, 1-200 characters.
Example: organic milk
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.
pageintegerdefault:1Only page 1 is available (up to 24 products). A page above 1 is refused with a 400 before any charge. Narrow the query or use category for more specific results.
Example: 1
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# A Fred Meyer search. Prices are integer cents, at the store in data["store"].
r = client.kroger.search("organic milk", banner="fred_meyer")["data"]
print(r["store"]["location_id"], r["store"]["name"], r["total"])
for p in r["products"]:
print(p["upc"], p["name"], p["price"], p["promo_price"], p["in_stock"])Response