Kroger
Kroger Product API
Full Kroger product details as JSON: description, nutrition facts with allergens, ingredients and a full nutrient breakdown, images, rating distribution, aisle location, dietary flags, SNAP eligibility, dimensions and country of origin. Works across all Kroger-family banners: Kroger, Ralphs, Fred Meyer, Harris Teeter, King Soopers, Fry's and more. 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 kroger.com product URL. Preferred over upc.
Example: https://www.kroger.com/p/simple-truth-organic-whole-milk-1-gal/0001111089476
upcstringUniversal Product Code. Use when product_url is not available.
Example: 0001111089476
slugstringOptional URL slug. Ignored when product_url is provided.
Example: simple-truth-organic-whole-milk-1-gal
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
product = client.kroger.product(
product_url="https://www.kroger.com/p/simple-truth-organic-whole-milk-1-gal/0001111089476"
)
p = product["data"]
print(p["name"], f"{p['price_cents']}c", p["dietary_flags"])
print(f" Rating: {p['rating']} ({p['rating_count']} reviews)")
print(f" Allergens: {p['nutrition']['allergens']}")
for nf in p["nutrition"]["nutri_facts"][:5]:
print(f" {nf['name']}: {nf['amount']}")Response