# Allegro Product Scraper - Prices, Sellers, Stock & Ratings (`hgservices/allegro-product-scraper`) Actor

Scrape Allegro.pl, Poland's largest marketplace, by keyword, category, seller or offer URL. Get prices, discounts, delivery cost, Smart!, seller ratings, sponsored flags and recent sales. Add stock, GTIN/EAN, product ratings, specs, description and seller company data. Export JSON, CSV or Excel.

- **URL**: https://apify.com/hgservices/allegro-product-scraper.md
- **Developed by:** [Harish Garg](https://apify.com/hgservices) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.99 / 1,000 saved product tows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Allegro Product Scraper — Prices, Sellers, Stock and Ratings from Allegro.pl

Scrape **products from Allegro.pl**, the largest online marketplace in Poland. Search by keyword, open a category or a seller's storefront, or give offer URLs. Get one clean row per offer: **price, discount, price with delivery, Smart!, sponsored flag, seller rating, Super Seller status, recent buyers, product rating and parameters**.

Turn on **product details** to add **stock, GTIN (EAN), star distribution, review count, all parameters, description, full-size images, warranty, return policy and the seller's company data** (name, tax ID, address).

Export the data as JSON, CSV, Excel or HTML, read it from the Apify API, or ask for it in Claude or ChatGPT.

No Allegro account. No Allegro API key. No proxy setup. No coding needed.

### What does Allegro Product Scraper do?

- **Search results** — every offer for a search phrase, with price, condition and sort filters.
- **Categories** — a full category listing, for example all laptops.
- **Seller storefronts** — every offer of one seller.
- **Single offers** — one row per offer or product URL, with all details.
- **Prices and discounts** — the current price, the price before the discount, the discount in percent and the price with the cheapest delivery.
- **Sales signals** — how many people bought the product recently, how many offers the same product has, and whether a position is sponsored.
- **Seller data** — login, Super Seller status, positive rating percent and, with details, the registered company name, tax ID (NIP), KRS and address.

### Why use this Allegro scraper?

- **Competitor price monitoring** — Track prices, discounts and Smart! delivery of your competitors on Allegro every day.
- **Market and category research** — Map a whole category, see which products sell (recent buyers) and how many sellers offer each product.
- **Sourcing and supplier research** — Compare sellers by rating, stock and price; match products by GTIN.
- **Brand protection** — See who sells your brand on Allegro, at what price, and which offers are sponsored.
- **Price comparison feeds** — Build product feeds with prices, images and links.
- **B2B research** — Get the company data of business sellers from their offer pages.
- **AI agents** — Give Claude, ChatGPT or your own agent live Allegro prices and stock.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQueries` | string\[] | — | Search phrases, as you type them on Allegro. Each phrase is one search. Polish phrases give the best results |
| `startUrls` | array | — | Allegro.pl URLs: search (`/listing?string=...`), category (`/kategoria/...`), seller (`/uzytkownik/...`), offer (`/oferta/...`) or product (`/produkt/...`) pages |
| `maxItemsPerQuery` | integer | `100` | Stop each search, category or seller after this number of products |
| `minPrice` / `maxPrice` | integer | — | Price range in PLN |
| `condition` | string | `all` | `all`, `new` or `used` |
| `sortBy` | string | `relevance` | `relevance`, `price-asc`, `price-desc`, `price-with-delivery-asc`, `popularity` or `newest` |
| `scrapeProductDetails` | boolean | `false` | Open each offer page and add the detail fields. Slower: one more page per product |

Give at least one search phrase or one URL.

The price, condition and sort inputs apply to search phrases, and to search, category and seller URLs. When a URL already has one of these filters, the URL's own value is used. You can also set any Allegro filter on the website and paste the URL.

An offer URL or a product URL always gives one row with all details.

Allegro shows at most about **6,000 products for one search** (100 pages). To get more, split the search by category or price range.

#### Input examples

Search with filters:

```json
{
    "searchQueries": ["laptop gaming", "iphone 15"],
    "minPrice": 500,
    "maxPrice": 5000,
    "condition": "new",
    "sortBy": "price-asc",
    "maxItemsPerQuery": 200
}
```

A category and a seller, with details:

```json
{
    "startUrls": [
        { "url": "https://allegro.pl/kategoria/laptopy-491" },
        { "url": "https://allegro.pl/uzytkownik/Kong" }
    ],
    "maxItemsPerQuery": 50,
    "scrapeProductDetails": true
}
```

### Output

One row per offer. A search, category or seller outputs each offer once, also when Allegro shows a sponsored offer on more than one page.

```json
{
    "offer_id": "18295425082",
    "product_id": "e4b9b716-a2a8-4fc7-a663-c3e16da9285b",
    "url": "https://allegro.pl/oferta/18295425082",
    "title": "Laptop HP 255R G10 Ryzen 5 7535U 16GB RAM SSD 512GB 15,6' FHD Win11P",
    "price": 2659.0,
    "currency": "PLN",
    "original_price": null,
    "discount_pct": null,
    "price_with_delivery": 2669.49,
    "delivery_cost": 10.49,
    "free_delivery": false,
    "delivery_time": "dostawa we wtorek",
    "smart": true,
    "sponsored": true,
    "product_offers_count": 1,
    "recent_buyers": 25,
    "popularity_label": "25 osób kupiło ostatnio",
    "rating": 5.0,
    "rating_count": 11,
    "parameters": [{ "name": "Przekątna ekranu", "value": "15.6\"" }],
    "image": "https://a.allegroimg.com/original/119610/5c8d64c94a4ea05012deeee1729b/Laptop-HP-255R-G10",
    "category_id": "491",
    "seller_login": "Autoryzowany Partner HP",
    "seller_company": true,
    "seller_super_seller": true,
    "seller_positive_feedback_pct": 97.9,
    "seller_url": "https://allegro.pl/uzytkownik/Apollo_HP",
    "marketplace": "allegro",
    "source_type": "search",
    "source": "laptop",
    "search_query": "laptop",
    "position": 1,
    "page": 1,
    "scraped_at": "2026-10-11T12:00:00+00:00"
}
```

With **Add product details**, each row also has:

```json
{
    "gtin": "5907494722515",
    "stock_available": 2029,
    "offer_buyers_30d": 191,
    "offer_sales_label": "191 osób kupiło 280 sztuk",
    "product_rating": 4.81,
    "product_rating_count": 177,
    "product_rating_distribution": { "5": 161, "4": 8, "3": 2, "2": 2, "1": 4 },
    "product_reviews_count": 70,
    "category_path": ["Allegro", "Elektronika", "Telefony i Akcesoria", "Akcesoria GSM", "Folie i szkła ochronne"],
    "description": "Szkło Hartowane KONG ...",
    "return_period": "14 dni",
    "statutory_warranty": "2 lata",
    "seller_company_name": "WOOFY SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ",
    "seller_tax_id": "9710735632",
    "seller_krs": "0001145965",
    "seller_address": { "street": "ul. Topolowa 2", "zip_code": "09-540", "city": "Sanniki", "country_code": "PL" },
    "details_error": null
}
```

Allegro's own labels (delivery time, popularity, condition, warranty) are in Polish.

The **Output** tab has three views: **Products**, **Sellers** and **Details**.

The **SOURCES** record in the key-value store has one entry per search or URL: its status, the number of products, the list pages read, Allegro's total result count and any errors.

### How to use Allegro Product Scraper

You can run the scraper in Apify Console, from your own code through the Apify API, or from an AI assistant through the Apify MCP server. All examples use the same input.

#### Apify Console (no code)

1. Open [Allegro Product Scraper](https://apify.com/hgservices/allegro-product-scraper) and click **Try for free**. Sign in to Apify.
2. Add one or more **Search phrases**, or paste Allegro URLs into **Allegro URLs**.
3. Optional: set **Max products per search or URL**, a price range, the condition or the sort order.
4. Optional: turn on **Add product details**.
5. Click **Start**.
6. Open the **Output** tab. View the products as a table, or download them as JSON, CSV, Excel or HTML.

To get fresh prices every day, save the input as a task and add a **Schedule**.

#### Apify API (HTTP)

Get your API token in Apify Console under **Settings → API & Integrations**.

For a small run, start the scraper and get the products in one request. This request waits for the run to end, for at most 5 minutes:

```bash
curl -X POST "https://api.apify.com/v2/acts/hgservices~allegro-product-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
        "searchQueries": ["laptop gaming"],
        "maxItemsPerQuery": 50,
        "sortBy": "price-asc"
      }'
```

For a large run, start the run without waiting:

```bash
curl -X POST "https://api.apify.com/v2/acts/hgservices~allegro-product-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "startUrls": [{ "url": "https://allegro.pl/kategoria/laptopy-491" }], "maxItemsPerQuery": 2000 }'
```

The answer has `data.id` (the run ID) and `data.defaultDatasetId`. When the run status is `SUCCEEDED`, get the products:

```bash
curl "https://api.apify.com/v2/actor-runs/RUN_ID" -H "Authorization: Bearer $APIFY_TOKEN"

curl "https://api.apify.com/v2/datasets/DATASET_ID/items?format=json" -H "Authorization: Bearer $APIFY_TOKEN"
```

Change `format=json` to `csv`, `xlsx` or `html` to get another file type. Add `view=sellers` or `view=details` to get only the columns of that view.

#### JavaScript / Node.js (apify-client)

```bash
npm install apify-client
```

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

// Start the scraper and wait for the run to end.
const run = await client.actor('hgservices/allegro-product-scraper').call({
    searchQueries: ['laptop gaming'],
    maxItemsPerQuery: 50,
    sortBy: 'price-asc',
    scrapeProductDetails: true,
});

// Read the products.
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) {
    console.log(item.title, item.price, item.currency, item.stock_available);
}
```

#### Python (apify-client)

```bash
pip install apify-client
```

```python
import os

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

## Start the scraper and wait for the run to end.
run = client.actor("hgservices/allegro-product-scraper").call(run_input={
    "searchQueries": ["laptop gaming"],
    "maxItemsPerQuery": 50,
    "sortBy": "price-asc",
    "scrapeProductDetails": True,
})

## Read the products.
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["price"], item["currency"], item.get("stock_available"))
```

#### AI assistants: Claude, ChatGPT and other MCP clients

The [Apify MCP server](https://mcp.apify.com) lets an AI assistant run this scraper and read the results in a chat. Use this server URL. It gives the assistant this scraper as a tool:

```text
https://mcp.apify.com?tools=hgservices/allegro-product-scraper
```

**Claude (claude.ai and Claude Desktop)**

1. Go to **Settings → Connectors** and click **Add custom connector**.
2. Enter the name `Apify` and the server URL above.
3. Click **Add**, then sign in to Apify to approve access.
4. In a new chat, turn on the Apify connector.

**Claude Code**

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=hgservices/allegro-product-scraper"
```

**ChatGPT**

1. Turn on **Developer mode** in ChatGPT.
2. Go to **Settings → Apps & Connectors** and click **Create**.
3. Enter the name `Apify` and the server URL above. Set **Authentication** to **OAuth**.
4. Click **Create**, then sign in to Apify to approve access.
5. In a new chat, click **+**, then **More**, and select the Apify connector.

**Other MCP clients (Cursor, VS Code, Windsurf and more)**

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=hgservices/allegro-product-scraper"
        }
    }
}
```

**Example prompts**

- "Find the 20 cheapest new iPhone 15 offers on Allegro. Show the price with delivery and the seller."
- "Get the first 50 offers from the Allegro seller Kong, with stock and GTIN. Make a table."
- "Which gaming laptops on Allegro have the most recent buyers? Compare the top 10."

### Tips

- **Speed** — 1,000 products without details take about 6 minutes. With details, expect about 10 to 20 products a minute. For the fastest run, leave details off and use the list fields.
- **More than 6,000 results** — split one large search into categories or price ranges.
- **Filters** — set filters on Allegro.pl in your browser, then paste the URL.
- **Daily price tracking** — save your input as a task and add a schedule. Compare the rows by `offer_id`.
- **Allegro Lokalnie** — Allegro shows some Allegro Lokalnie offers in its lists. They are in the output with `marketplace` set to `allegro_lokalnie`. Details are not available for them.

### FAQ

**Is there an official Allegro API for this data?**
Allegro's official REST API gives search results only to verified applications. This scraper gives the same public product data with no Allegro account and no API approval.

**Is it legal to scrape Allegro?**
This scraper reads only public data that any visitor can see. You are responsible for how you use the data. Personal data has legal protection in the EU (GDPR); use it only with a legal basis. If you are not sure, ask a lawyer.

**Why are some detail fields empty?**
An offer page can fail to load, or the offer can end during the run. The row is still in the output, and `details_error` says why. Some fields, such as KRS or warranty, are empty when the seller does not show them.

**Can I scrape allegro.cz, allegro.sk or allegro.hu?**
Not yet. The scraper reads Allegro.pl only.

**I found a problem.**
Open an issue on the **Issues** tab. Add the run URL, and we will fix it.

# Actor input Schema

## `searchQueries` (type: `array`):

Words to search on Allegro.pl, as you type them in the Allegro search box. Each phrase is one search. Polish phrases give the best results.

## `startUrls` (type: `array`):

Allegro.pl pages to scrape. A search URL (https://allegro.pl/listing?string=...), a category URL (https://allegro.pl/kategoria/laptopy-491) or a seller URL (https://allegro.pl/uzytkownik/Kong) gives its product list, with the filters in the URL. An offer URL (https://allegro.pl/oferta/...) or a product URL (https://allegro.pl/produkt/...) gives one product with all details.

## `maxItemsPerQuery` (type: `integer`):

Stop each search, category or seller after this number of products. Allegro shows at most about 6,000 products for one search (100 pages); use filters or categories to get more.

## `minPrice` (type: `integer`):

Only products at this price or higher. Applies to search phrases, and to search, category and seller URLs that have no price filter of their own.

## `maxPrice` (type: `integer`):

Only products at this price or lower. Applies like the minimum price.

## `condition` (type: `string`):

New or used products only. Applies like the price filters.

## `sortBy` (type: `string`):

The order of the products. Applies like the price filters.

## `scrapeProductDetails` (type: `boolean`):

Open each product's offer page and add stock, GTIN (EAN), product rating with the star distribution, review count, all parameters, description, full-size images, warranty, return policy and the seller's company data (name, tax ID, address). This needs one more request per product, so the run is slower and costs more. Offer URLs always include details.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop gaming"
  ],
  "maxItemsPerQuery": 100,
  "condition": "all",
  "sortBy": "relevance",
  "scrapeProductDetails": false
}
```

# Actor output Schema

## `products` (type: `string`):

One row per offer: price, discount, delivery, seller and popularity.

## `sellers` (type: `string`):

The seller of each offer, with company data when details are on.

## `details` (type: `string`):

Stock, GTIN, ratings and returns, when details are on.

## `sources` (type: `string`):

One entry per search or URL: status, products, pages read and any errors.

# 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 = {
    "searchQueries": [
        "laptop gaming"
    ],
    "maxItemsPerQuery": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("hgservices/allegro-product-scraper").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 = {
    "searchQueries": ["laptop gaming"],
    "maxItemsPerQuery": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("hgservices/allegro-product-scraper").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 '{
  "searchQueries": [
    "laptop gaming"
  ],
  "maxItemsPerQuery": 100
}' |
apify call hgservices/allegro-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hgservices/allegro-product-scraper"
        }
    }
}
```

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/VFtNa5sW8iZKfn8X2/builds/nI7tpFueE918utOnF/openapi.json
