Kroger
Kroger Store Prices API
Price, promotion, stock and aisle for up to 25 UPCs at one Kroger, QFC or Fred Meyer store you choose (store_id from the stores endpoint). Per UPC: regular and promo price with its end date, on_sale, unit price, in_stock, stock_level, the quantity the site reports as available, the aisle (description, number, side, bay, shelf), fulfillment options and priced_at, the store that priced it. UPCs the site does not know come back in not_found. Prices are integer cents. Costs 3 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/jsonstore_idstringrequiredA store's 8-digit location_id: stores[].location_id of the stores endpoint. QFC ids start with 705, Fred Meyer ids with 701.
Example: 70500847
upcsstring[]required1 to 25 13-digit UPCs as the site writes them (products[].upc of search or category).
Example: ["0001111050438", "0081006334306"]
bannerenum<string>The store banner. Optional with store_id: QFC ids start with 705, Fred Meyer ids with 701, anything else is kroger. A banner that contradicts the id is a 400.
Example: qfc
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")
upcs = ["0001111050438", "0081006334306", "0003600056535"]
# The same basket at a QFC store and a Fred Meyer store (ids from stores()).
for store_id in ("70500847", "70100360"):
r = client.kroger.prices(store_id=store_id, upcs=upcs)["data"]
for i in r["items"]:
print(r["store"]["name"], i["upc"], i["price"], i["promo_price"], i["stock_level"], i["aisle"])Response