Piloterr

Kroger Product

GET
/v2/kroger/product

Read one Kroger product by UPC. The sheet uses the same default store as search. You get the shelf price and the previous price when Kroger shows one.

Credit cost: 2 credits per call

Autorização

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parâmetros de consulta

query*string

Kroger product URL or UPC.

Examples:

0001111040101
https://www.kroger.com/p/kroger-vitamin-d-whole-milk-gallon/0001111040101
location_id?string

Ignored. Prices stay on the default Rolla store, 02100537 (Kroger, 605 W 4th St, Rolla, MO 65401). The response location_id is the store that was actually priced.

return_page_source?boolean

When true, return rendered HTML instead of JSON.

fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Corpo da resposta

Successful response

application/json
  1. response
id?string
url?string
size?string
aisle?string
brand?string
image?string
price?number
title?string
rating?number
currency?string
in_stock?boolean
was_price?unknown
store_name?string
description?string
location_id?string
review_count?integer
price_display?string
store_address?string
unit_price_display?string
Example Request
curl -X GET 'https://api.piloterr.com/v2/kroger/product?query=string'
Example Response
{  "id": "0001111040101",  "url": "https://www.kroger.com/p/kroger-vitamin-d-whole-milk-gallon/0001111040101",  "size": "1 gal",  "aisle": "DAIRY 100",  "brand": "Kroger",  "image": "https://www.kroger.com/product/images/large/front/0001111040101",  "price": 3.19,  "title": "Kroger® Vitamin D Whole Milk Gallon",  "rating": 2.85,  "currency": "USD",  "in_stock": true,  "was_price": null,  "store_name": "Rolla",  "description": "Kroger® Vitamin D Whole Milk Gallon is full of refreshing goodness. Enriched with Vitamin D to brighten your day and strengthen your bones. A healthier alternative for your breakfast without compromising on flavor. Kroger® – Trusted for the everyday moments that matter. 1 gal Jug of Kroger® Vitamin D Whole Milk Gallon Gives you Vitamin D for bone health Perfect for breakfast or baking A great addition to coffee Kroger® quality you can trust",  "location_id": "02100537",  "review_count": 102,  "price_display": "$3.19",  "store_address": "605 W 4Th St, Rolla, MO 65401",  "unit_price_display": "$0.02/fl oz"}