# Allegro Scraper (`datahamster/allegro-scraper`) Actor

Allegro scraper for allegro.pl search and category listings: price, lowest 30-day price and discount, delivery cost and time, Smart!, rating, recent buyers, seller type. Filters by rating, discount, seller and delivery. Monitor mode alerts on new offers and price drops.

- **URL**: https://apify.com/datahamster/allegro-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.68 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Scraper

Search allegro.pl by keyword or paste any Allegro search or category URL, and get one row per offer: price in PLN, Allegro's lowest price of the last 30 days and the discount badge, price with delivery, cheapest delivery cost and delivery time, Smart!, product rating and rating count, how many people bought it in the last 30 days, how many sellers offer the same product, condition, seller type (official store, company, private) and the Super Sprzedawca flag. Filter rows by rating, discount, delivery and seller type, and turn the same search into a daily new-offer and price-drop alert.

**Try it:** the prefilled example returns 20 rows in about 30 seconds and costs about $0.044. Results cost $2.10 per 1,000.

All-in cost: the $0.044 above is $0.042 for 20 results plus $0.0024 of platform usage, most of it one Web Unblocker request ($0.0015). Three runs of the prefill on 2026-11-18 took 24, 28 and 32 seconds. A page carries about 60 organic offers, so platform usage adds about $0.04 to $0.05 per 1,000 rows on top of the result price when you read whole pages (measured 2026-11-18: 4 pages, $0.0095 of usage).

Coverage: allegro.pl only (search and category listings). Allegro mixes a few Allegro Lokalnie classifieds into its results (about 1 in 60 offers); they come back with `marketplace: "allegrolokalnie.pl"` and a link to that site. Allegro shows about 60 organic offers per page and stops at page 100 of any listing. Offer pages are not opened, so there is no description, EAN or stock.

### Why this one

Compared with the most-used Allegro actor in the Store (memo23/allegro-scraper, checked 2026-11-18: its input has, among others, keywords, start URLs, min/max price, condition, sort and a deep-details mode, and its README describes scheduled runs that re-read everything):

- **New-offer and price-drop alerts.** In monitor mode a run returns only offers newly listed on Allegro since the last run that show up in your search (`changeType: "new"`) and known offers that changed price (`changeType: "changed"` with `previous.price`), and can post them to a webhook or Telegram. `priceAlert: "drops"` with `minPriceChangePercent` reports only real price cuts. The leader has no change detection: every scheduled run returns and charges every row again. Measured on 2026-11-18: `słuchawki bezprzewodowe` (relevance, 2 pages) recorded 121 offers as a baseline; the run 12 minutes later read the same 2 pages, recorded 3 older offers that had moved into them without charging, and returned 1 row: a Baseus earbuds offer whose price went from 52.76 to 52.74 PLN.
- **Filters on what the card shows.** `minRating`, `minRatingCount`, `minDiscountPercent`, `freeDeliveryOnly`, `smartOnly` and `sellerType` (companies only, official stores only, Super Sprzedawca only) are applied before a row is pushed, so you never pay for rows you throw away. The leader's input has no rating, discount, delivery or seller filter. Measured on 2026-11-18: two keywords, 2 pages each, `minRating` 4.8, `minRatingCount` 100, `minDiscountPercent` 10 and `sellerType: superSeller` read 4 pages, dropped 225 offers before pushing, skipped 9 cross-keyword duplicates and pushed 9 rows, each a Super Sprzedawca offer rated 4.84 or better with a 11-52% discount.
- **No filler from weak searches.** Allegro answers any phrase with offers, even a nonsense one (`qzxvbnmplkj wqzzx` returned 68 unrelated offers on 2026-11-18). `strictQueryMatch` keeps only titles that contain a keyword word, with Polish letters and word endings tolerated (`sluchawki` matches "Słuchawka"). The dropped offers still count toward `position`.
- **One row per offer across keywords.** Several keywords in one run return an offer once (`dedupeAcrossSearches`), so overlapping phrases like "słuchawki" and "słuchawki bezprzewodowe" do not double the bill.
- **Paste any listing URL.** A category or search page from your browser keeps every filter you clicked (brand, parameters, delivery options, sort).
- **Price.** $2.10 per 1,000 rows against the leader's $3.00 per 1,000 rows (its main event, $0.003 per result row).

### What you get

Sample rows from the smoke run of 2026-11-18 (prefilled `słuchawki bezprzewodowe`, page 1):

| `position` | `title` | `price` | `originalPrice` | `discountPercent` | `rating` (`ratingCount`) | `boughtRecently` | `sellerType` |
|---|---|---|---|---|---|---|---|
| 1 | Słuchawki bezprzewodowe Elonix S81A dokanałowe c | 55 PLN |  |  | 4.92 (765) | 1179 | business |
| 4 | Słuchawki bezprzewodowe dokanałowe douszne Manta | 79 PLN | 89 | 11 | 4.9 (5158) | 561 | officialStore |
| 5 | Słuchawki bezprzewodowe nauszne Marshall Major I | 199 PLN | 289 | 31 | 4.85 (1770) | 649 | officialStore |
| 8 | XO bezprzewodowe słuchawki Bluetooth X33 TWS cza | 21.95 PLN |  |  | 4.7 (139) | 553 | business |
| 17 | Słuchawki bezprzewodowe wokółuszne Soundcore Lif | 178.36 PLN | 329 | 45 | 4.88 (1384) | 223 | business |

One full row:

```json
{
  "id": "17366425631",
  "url": "https://allegro.pl/oferta/17366425631",
  "scrapedAt": "2026-11-18T13:21:59.556612Z",
  "offerId": "17366425631",
  "productUrl": "https://allegro.pl/produkt/sluchawki-bezprzewodowe-nauszne-marshall-major-iv-czarne-c6e1437e-0c98-4547-ad50-1a63feef3961",
  "productId": "c6e1437e-0c98-4547-ad50-1a63feef3961",
  "marketplace": "allegro.pl",
  "query": "słuchawki bezprzewodowe",
  "searchUrl": "https://allegro.pl/listing?string=s%C5%82uchawki%20bezprzewodowe",
  "searchId": "fe22f07263",
  "position": 5,
  "page": 1,
  "isSponsored": false,
  "title": "Słuchawki bezprzewodowe nauszne Marshall Major IV czarne",
  "price": 199,
  "currency": "PLN",
  "originalPrice": 289,
  "originalPriceType": "lowest30Days",
  "discountPercent": 31,
  "priceWithDelivery": 209.49,
  "lowestDeliveryCost": 10.49,
  "freeDelivery": false,
  "freeReturn": false,
  "deliveryTime": "dostawa jutro - kup do 19:00",
  "smart": true,
  "rating": 4.85,
  "ratingCount": 1770,
  "boughtRecently": 649,
  "boughtRecentlyLabel": "649 osób kupiło ostatnio",
  "sellersCount": 98,
  "condition": null,
  "sellerType": "officialStore",
  "superSeller": true,
  "sellerName": "Oficjalny sklep Allegro",
  "sellerPositivePercent": 98.9,
  "badges": null,
  "lowestPriceGuarantee": true,
  "isEnded": false,
  "categoryId": "85166",
  "imageUrl": "https://a.allegroimg.com/s360/111f17/7d0d46e644798143fac9cc7f7c81/Sluchawki-bezprzewodowe-nauszne-Marshall-Major-IV-czarne"
}
```

- `position` is the organic rank inside this search (1 = first organic offer); sponsored offers (`includeSponsored`) have none.
- `originalPrice` is the struck-through price next to Allegro's discount badge. Allegro shows the lowest price of the last 30 days there (`originalPriceType: "lowest30Days"`), and `discountPercent` is measured against it.
- `boughtRecently` is Allegro's "N osób kupiło ostatnio": buyers of the same catalog product in the last 30 days, across all sellers. `sellersCount` is how many offers that product has.
- `deliveryTime` is printed as Allegro shows it to a Polish visitor, e.g. "dostawa jutro - kup do 17:00".
- `sellerName` and `sellerPositivePercent` are filled for company sellers only. Private sellers are never named (`sellerType: "private"`), and their image links are cut to the image id, because Allegro puts a slug of the seller's title there.
- Allegro mixes in a few offers from Allegro Lokalnie, its local classifieds site (`marketplace: "allegrolokalnie.pl"`, about 1 in 60 on the pages we measured). Their `url` points to allegrolokalnie.pl, and they are mostly private sellers.

### Use cases

- **Price monitoring.** Watch a product phrase or category and get a row when an offer gets cheaper.
- **Deal hunting.** `minDiscountPercent: 20` plus `minRating: 4.8` on a category gives a short list of real discounts on well-rated products.
- **Competitor and assortment research.** Prices, delivery terms, Smart! share, official stores and recent buyers for everything on the first pages of a search.
- **Marketplace analytics.** `boughtRecently` and `sellersCount` show which products sell and how crowded they are.

### Related actors

- [Amazon Search Scraper](https://apify.com/datahamster/amazon-search-scraper): the same keyword search with organic rank on eight Amazon marketplaces.
- [Vinted Scraper](https://apify.com/datahamster/vinted-scraper): second-hand fashion listings across Europe.
- [OLX Europe Listings](https://apify.com/datahamster/olx-europe-listings): classifieds from OLX marketplaces in Europe.
- [Etsy Listings](https://apify.com/datahamster/etsy-listings): handmade and vintage products.

### Input

| Field | Meaning | Default |
|---|---|---|
| `keywords` | Search terms, one per line | `słuchawki bezprzewodowe` (prefill) |
| `listingUrls` | Pasted `allegro.pl/listing?…` or `allegro.pl/kategoria/…` URLs; filters in the URL are kept | empty |
| `sort` | `relevance`, `price-asc`, `price-desc`, `newest`, `popularity` | `relevance` |
| `minPrice`, `maxPrice` | Price range in PLN (Allegro's own filter) | empty |
| `condition` | `any`, `new`, `used` (Allegro's own filter) | `any` |
| `maxPages` | Pages per search, 1-100 | `1` |
| `minRating`, `minRatingCount`, `minDiscountPercent` | Row filters | empty |
| `freeDeliveryOnly`, `smartOnly` | Row filters | `false` |
| `sellerType` | `any`, `business`, `officialStore`, `superSeller` | `any` |
| `includeSponsored` | Add sponsored offers, flagged | `false` |
| `strictQueryMatch` | Keep only offers with a keyword word in the title | `true` |
| `dedupeAcrossSearches` | One row per offer across keywords | `true` |
| `priceAlert`, `minPriceChangePercent` | Monitor: any change or drops only, minimum change in percent | `any`, `0` |
| `maxItems` | Stop after this many rows | `100` |
| `mode` | `scrape`, or `monitor` for new and changed offers only | `scrape` |
| `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor state key and alert targets | empty |

**Monitor mode** keys each row on the search (keyword or URL, filters and depth) + offer id and compares `price`. The first run of a search records it and returns nothing (a baseline). Later runs return newly listed offers (`changeType: "new"`) and known offers whose price changed (`changeType: "changed"`, with `previous`). "New" means listed on Allegro after the newest offer the search has seen, or at most 20 million ids below it (offers that surface late; the latest one we measured surfaced 11.2 million ids below): Allegro offer ids grow with listing time, so an older offer that only moves into the pages you read (Allegro reshuffles the edge of a page between loads, and relevance changes) is recorded silently and not charged; the run's `RUN_SUMMARY` counts those as `watch.unseenOld`. Allegro Lokalnie offers have their own id series, so any unseen Lokalnie offer counts as new. For a new-listings alert use `sort: newest`. With `priceAlert: "drops"` a rise is not reported and the last reported price stays the reference, so a later drop below it is. Smaller changes than `minPriceChangePercent` add up against the last reported price. You pay only for those rows plus one monitor check per run. Ads are never part of monitor mode, and every run reads exactly `maxPages` pages, so changing `maxPages` or a filter starts a new baseline (changing `priceAlert` or `minPriceChangePercent` does not). If a monitor run dies without releasing its lease, the next runs of the same state end as `overlapping_run` until that run's timeout; wait or use a new `monitorStateId`.

### Pricing

| Event | Price |
|---|---|
| result | $0.0021 per offer ($2.10 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.0021 per new or changed offer |

You are charged only for rows actually pushed. A blocked run pushes nothing and charges nothing for results.

The actor reads Allegro through Apify's Web Unblocker with a Polish exit, because Allegro's bot protection (DataDome) blocks the datacenter and residential proxies. That proxy traffic is platform usage billed to your account at Apify's rate (about $0.0015 per page of about 60 offers).

**Found it useful?** A quick review on the Store page helps other buyers find this actor and tells us what to improve. Spot a wrong price or field? Open an issue on the actor page.

### Limits

- allegro.pl only. Allegro's Czech, Slovak and Hungarian sites are not offered.
- Listing data only: no description, parameters table, EAN, stock or seller contact details. Offer pages are never opened.
- `condition` is filled only when the card shows Allegro's "Stan"; most new catalog products do not print it.
- Allegro groups offers of one catalog product into one card, so a search shows the offer Allegro picked for the product, not every seller.
- Allegro serves at most 100 pages of a listing; past the last page it shows page 1 again, which the actor detects and stops.
- `strictQueryMatch` judges by title words only and can drop a relevant offer whose title shares no word with the keyword; turn it off to get everything Allegro returned.
- When Allegro answers with a bot challenge, the page is retried twice, then the run is reported as blocked (`emptyReason: blocked` in `RUN_SUMMARY`) instead of an empty dataset as if nothing matched.

### What is NOT collected

No personal data. Private sellers are never named: no login, no profile link, no feedback score, and their titles are scrubbed of phone numbers and e-mails. No reviews, no reviewer or buyer data, no seller contacts.

### FAQ

**Why do two keywords give fewer rows than the sum?** `dedupeAcrossSearches` returns an offer once per run. Turn it off to get one row per keyword.

**Why did a keyword return nothing?** Check `SEARCH_SUMMARY` in the run's key-value store: `offQueryDropped` counts offers dropped because the title had no keyword word, `filteredOut` the ones your row filters dropped. `RUN_SUMMARY` has `emptyReason`.

**Can I scrape a seller's shop?** Not at the moment: seller pages are not accepted, only search and category listings.

### Changelog

- 0.1: initial release: keyword and URL search on allegro.pl, organic rank, row filters on rating, discount, delivery and seller type, cross-keyword dedupe, monitor mode with new-offer and price-drop alerts.

# Actor input Schema

## `keywords` (type: `array`):

Search terms, one per line, e.g. "słuchawki bezprzewodowe". Each keyword is one Allegro search on allegro.pl.

## `listingUrls` (type: `array`):

Optional. Paste search or category pages from your browser (allegro.pl/listing?string=… or allegro.pl/kategoria/…) to keep every filter and sort you clicked there. Offer pages and seller pages are not accepted.

## `sort` (type: `string`):

Allegro's own sort order for keyword searches.

## `minPrice` (type: `number`):

Optional lower price bound in PLN, passed to Allegro's price filter.

## `maxPrice` (type: `number`):

Optional upper price bound in PLN, passed to Allegro's price filter.

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

Allegro's condition filter for keyword searches.

## `maxPages` (type: `integer`):

How many result pages to read per search. Allegro shows about 60 organic offers per page and never more than 100 pages.

## `minRating` (type: `number`):

Optional. Keep only offers whose product rating is at least this (0-5). Offers without a rating are dropped when set.

## `minRatingCount` (type: `integer`):

Optional. Keep only offers with at least this many product ratings.

## `minDiscountPercent` (type: `integer`):

Optional. Keep only offers with Allegro's discount badge of at least this many percent (measured against the lowest price of the last 30 days).

## `freeDeliveryOnly` (type: `boolean`):

Keep only offers with free delivery.

## `smartOnly` (type: `boolean`):

Keep only offers marked Smart! (free delivery for Allegro Smart! members).

## `sellerType` (type: `string`):

Keep only offers from this kind of seller.

## `includeSponsored` (type: `boolean`):

Off: organic results only. On: sponsored offers are added with isSponsored true and no organic position. Monitor mode always ignores ads.

## `strictQueryMatch` (type: `boolean`):

On: keep only offers whose title contains a word of the keyword (Polish letters and word endings are tolerated). Allegro fills weak searches with unrelated offers. Not applied to pasted URLs.

## `dedupeAcrossSearches` (type: `boolean`):

On: an offer found by two keywords of the same run is returned once, under the first keyword. Ignored in monitor mode.

## `priceAlert` (type: `string`):

Monitor mode: report every price change, or only drops below the last reported price.

## `minPriceChangePercent` (type: `number`):

Monitor mode: report a price change only when it is at least this many percent away from the last reported price. 0 = any change.

## `maxItems` (type: `integer`):

Stop after this many results (you are charged only for pushed items)

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "keywords": [
    "słuchawki bezprzewodowe"
  ],
  "sort": "relevance",
  "condition": "any",
  "maxPages": 1,
  "freeDeliveryOnly": false,
  "smartOnly": false,
  "sellerType": "any",
  "includeSponsored": false,
  "strictQueryMatch": true,
  "dedupeAcrossSearches": true,
  "priceAlert": "any",
  "minPriceChangePercent": 0,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

## `results` (type: `string`):

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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 = {
    "keywords": [
        "słuchawki bezprzewodowe"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/allegro-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 = {
    "keywords": ["słuchawki bezprzewodowe"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/allegro-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 '{
  "keywords": [
    "słuchawki bezprzewodowe"
  ],
  "maxItems": 20
}' |
apify call datahamster/allegro-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datahamster/allegro-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/KtkixzjAIWkNZuYSX/builds/PNiXe9616yau7oMZC/openapi.json
