For the complete documentation index, see llms.txt. This page is also available as Markdown.

Kroger

Kroger scraping API documentation with product, search, and URL scrapers. Get started with code samples in multiple languages.

With Web Scraper API, you can scrape the Kroger marketplace. Below is an overview of the supported scrapers and their respective source values.

Source
Description
Dedicated parser

kroger_product

Product page of a product ID of your choice.

-

kroger_search

Search results for a search term of your choice.

-

kroger

Submit any Kroger URL you like.

-

You can always write your own parsing instructions with Custom Parser feature and get structured data.

Getting started

Create your API user credentials: Sign up for a free trial or purchase the product in the Oxylabs dashboard to create your API user credentials (USERNAME and PASSWORD).

Request samples

In the example below, we make a request to retrieve Kroger search results for the search term adidas.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "kroger_search",
        "query": "adidas"
    }'
import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'kroger_search',
    'query': 'adidas'
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Print prettified response to stdout.
pprint(response.json())

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.

Optionally, you can include additional parameters such as user_agent_type, render and more to customize your scraping request. Read more:

Features

Last updated

Was this helpful?