circle-check
Documentation has been updated: see help center and changelog in one place.

URL

Aprende cómo obtener datos de cualquier URL de Kroger usando Web Scraper API. Conoce más sobre sus parámetros de solicitud y ve ejemplos de código.

Puede obtener resultados de Kroger proporcionando sus propias URL a nuestro servicio. Podemos devolver el HTML de cualquier página de Kroger que desee.

Solicitar muestras

El ejemplo siguiente demuestra cómo recuperar una página de resultados de búsqueda de Kroger basada en una consulta de producto específica, rango de precios y ubicación de la tienda.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "kroger",
        "url": "https://www.kroger.com/search?query=adidas&price=10.00-15.00",
        "store_id": "01100002"
    }'

We use synchronous Realtime integration method in our examples. If you would like to use Proxy Endpoint or asynchronous Push-Pull integration, refer to the integration methods section.

Request parameter values

Generic

Basic setup and customization options for scraping Kroger marketplace.

Parameter
Description
Default Value

source

Sets the scraper.

kroger

url

Direct URL (link) to any page.

-

render

Enables JavaScript rendering when set to html. More info.

-

callback_url

URL to your callback endpoint. More info.

-

user_agent_type

Device type and browser. The full list can be found here.

desktop

- mandatory parameter

Localization

Customize results based on store locations, delivery areas, and preferred fulfillment methods.

Parameter
Description
Default Value
Dependencies

store_id

Specify a store. See the available values herearrow-up-right. The ID must start with '0'.

-

Required when fulfillment_type is set to pickup or in_store.

delivery_zip

Specify delivery location ZIP code.

-

Required when fulfillment_type is set to delivery.

fulfillment_type

Specify order fulfillment method. Available values: pickup, delivery, in_store.

pickup (if only store_id is provided)

Requires store_id for pickup and in_store, or delivery_zip for delivery.

Dependecies explained:

  • pickup and in_store values use the store_id parameter to determine the correct store.

  • delivery uses the delivery_zip parameter to specify the delivery location.

  • If only store_id is provided, and fulfillment_type is not specified, the default type is pickup.

circle-exclamation

Última actualización

¿Te fue útil?