# Kroger Parser Spider (`getdataforme/kroger-parser-spider`) Actor

The Kroger Parser Spider is an Apify Actor that efficiently scrapes and extracts detailed product data from Kroger's online store, including prices, descriptions, and availability....

- **URL**: https://apify.com/getdataforme/kroger-parser-spider.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce, Jobs, Real estate
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $9.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Kroger Parser Spider

### Introduction

The Kroger Parser Spider is a powerful Apify Actor designed to scrape and extract detailed product information from Kroger's online store. It efficiently handles multiple product URLs, providing structured data on items like prices, descriptions, and availability. This tool is ideal for e-commerce professionals, researchers, and businesses needing accurate, up-to-date Kroger product data without manual effort.

### Features

- **Efficient URL Processing**: Handles multiple Kroger product URLs in a single run, extracting data quickly and reliably.
- **High-Quality Data Extraction**: Captures key product details such as name, price, brand, and availability for comprehensive insights.
- **Proxy Integration**: Uses residential proxies to bypass restrictions and ensure uninterrupted scraping.
- **Structured JSON Output**: Delivers clean, machine-readable data suitable for integration into databases or analytics tools.
- **Scalable and Reliable**: Built on Apify's robust infrastructure for consistent performance across large datasets.
- **Error-Resilient**: Includes built-in handling for common scraping challenges like rate limits and page changes.
- **Customizable Inputs**: Flexible configuration options to tailor scraping to specific needs.

### Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| Urls | array | Yes | An array of URLs pointing to Kroger product pages to scrape. Each URL must be a valid HTTP/HTTPS link. | \["https://www.kroger.com/p/huggies-snug-dry-baby-diapers-size-5-27-lbs-/0003600051473"] |
| proxyConfiguration | object | No | Configuration for proxy servers to mask the scraper's origin and avoid IP blocks. Defaults to Apify's residential proxies. | {"useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"]} |

### Example Usage

#### Input JSON

```json
{
  "Urls": [
    "https://www.kroger.com/p/huggies-snug-dry-baby-diapers-size-5-27-lbs-/0003600051473"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

#### Output JSON

```json
[
  {
    "url": "https://www.kroger.com/p/huggies-snug-dry-baby-diapers-size-5-27-lbs-/0003600051473",
    "productName": "Huggies Snug & Dry Baby Diapers, Size 5 (27 lbs+)",
    "brand": "Huggies",
    "price": "$29.99",
    "availability": "In Stock",
    "description": "Ultra-absorbent diapers for overnight protection.",
    "imageUrl": "https://example.com/image.jpg"
  }
]
```

### Use Cases

- **Market Research and Analysis**: Gather pricing and product details to analyze trends in grocery retail.
- **Competitive Intelligence**: Compare Kroger's offerings with competitors for strategic insights.
- **Price Monitoring**: Track price changes on specific items to optimize purchasing or sales strategies.
- **Content Aggregation**: Build databases of product information for e-commerce platforms or catalogs.
- **Academic Research**: Collect data on consumer goods for studies in economics or supply chain management.
- **Business Automation**: Automate data extraction for inventory management or supplier negotiations.

### Installation and Usage

1. Search for "Kroger Parser Spider" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The Actor outputs an array of JSON objects, each representing a scraped product. Key fields include:

- `url`: The original product URL.
- `productName`: The full name of the product.
- `brand`: The product's brand.
- `price`: Current price as a string.
- `availability`: Stock status (e.g., "In Stock").
- `description`: Product description text.
- `imageUrl`: Link to the product image.

Data is structured for easy parsing and integration.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

## `proxyConfiguration` (type: `object`):

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "Urls": [
    "https://www.kroger.com/p/huggies-snug-dry-baby-diapers-size-5-27-lbs-/0003600051473"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/kroger-parser-spider").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/kroger-parser-spider").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/kroger-parser-spider --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/kroger-parser-spider"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/H37mxIEEFhEZeIz11/builds/onw1kjfocY3kzb8ee/openapi.json
