# Allegro Scraper (`unfenced-group/allegro-scraper`) Actor

Look up Allegro products by EAN/GTIN and get every seller offering them - price, seller login, Super Seller status, feedback score and delivery. Built for MAP monitoring, repricing and distributor research. Also scrapes keyword and category listings across allegro.pl, .cz and .sk.

- **URL**: https://apify.com/unfenced-group/allegro-scraper.md
- **Developed by:** [Unfenced Group](https://apify.com/unfenced-group) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 53 total users, 16 monthly users, 95.7% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 seller offers

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 Scraper

![Allegro Scraper](https://api.apify.com/v2/key-value-stores/bFYhvHQ8pn5mshmsI/records/banner.png)

Look up any product on Allegro by EAN and get back every seller's price, or scrape keyword, category and whole-seller listings across allegro.pl, allegro.cz and allegro.sk. The richest field set of any Allegro actor: per-product price statistics across all sellers, crossed-out "cena z 30 dni" prices with discount percentages, brand, condition, category path, images, full specifications and description. No API key required.

***

### Why this scraper?

#### 🔎 EAN in, every seller out

Feed a list of barcodes. Each one resolves to its Allegro product, then expands into every merchant selling it — price, login, Super Seller status and feedback score. Each EAN is verified against the product page, so a barcode Allegro does not carry is reported as no-match, never mapped to the wrong product.

#### 💶 See who is undercutting you

Every product carries price statistics across all its sellers — lowest, highest, average and median — alongside each seller's price, delivery, condition and reputation. If you set an RRP, this tells you who is ignoring it, at what price, and how well rated they are.

#### 🏷️ Track discounts and previous prices

When Allegro shows a crossed-out price on a listing card — the "cena z 30 dni", the lowest price of the last 30 days before the reduction, as required by the EU Omnibus directive — it is returned as `originalPrice` with a `discountPercent`. Run the scraper on a schedule and you have a discount feed: which products are reduced, from what, and by how much.

#### 🏪 Whole-seller storefronts

Point the `seller` mode at any Allegro seller and get their entire catalogue, paginated end to end.

#### 🇵🇱 Poland, Czechia and Slovakia

One scraper for all three Allegro marketplaces, with the right currency, condition filter and category structure for each.

#### 🏷️ Rich product and seller signals

Brand, condition, sponsored/promoted flags, recent-buyer popularity, ratings and review counts, stock, full specification table, image gallery and product description.

#### 🛡️ Respects robots.txt

Data is collected only from paths Allegro permits. Pages disallowed in robots.txt — including `/offer/` and product reviews — are never fetched.

#### 💸 Pay only for results

No subscription. You are charged per record returned, and never for failed requests or unmatched barcodes.

***

### Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `"search"` | `search` (keyword/category listings), `ean` (look up products by barcode), `product` (scrape specific product URLs), or `seller` (scrape a seller's whole storefront). |
| `searchQueries` | array | `[]` | Keywords to search. One search per keyword. Used in `search` mode. |
| `eans` | array | `[]` | EAN-13 / GTIN codes to resolve. Used in `ean` mode. |
| `productUrls` | array | `[]` | Allegro `/produkt/` URLs. Used in `product` mode. |
| `sellerUrls` | array | `[]` | Seller storefront URLs or logins. Used in `seller` mode, e.g. `https://allegro.pl/uzytkownik/Nowacell`. |
| `fetchOffers` | boolean | `false` | Return every seller's offer for each resolved product (adds price statistics to the product record). |
| `maxOffersPerProduct` | integer | `100` | Cap on seller offers per product. Offers come cheapest first (price with delivery), so a cap of 25 returns the 25 cheapest sellers. Popular products exceed 150 sellers. |
| `fetchProductDetails` | boolean | `false` | Fetch the product page for MPN, full specifications, images, description and category path. |
| `market` | string | `"pl"` | `pl`, `cz` or `sk`. All three support keyword search, EAN lookup, product URLs and seller storefronts. |
| `category` | string | (empty) | Category slug, e.g. `smartfony-165`. Optional — narrows a search to one category. |
| `condition` | string | `"all"` | Filter by item condition: `all`, `new`, or `used`. Applies to `search` and `seller` modes and to seller offers. |
| `maxResults` | integer | `100` | Maximum products/listings returned. |
| `concurrency` | integer | `4` | How many products, EANs or queries are scraped at the same time (1-10). Runs are network-bound, so this scales throughput almost linearly. |
| `sortBy` | string | `"relevance"` | `relevance`, `p`/`pd` (price up/down), `d`/`dd` (price with delivery up/down), `qd` (popularity), `n` (newest), `prd` (product rating), `t` (ending soonest). Applies to keyword, category and start-URL results. |
| `startUrls` | array | `[]` | Listing or category URLs to scrape directly. Paginated automatically. |
| `minPrice` | integer | — | Only products/offers at or above this price. |
| `maxPrice` | integer | — | Only products/offers at or below this price. |
| `freeDeliveryOnly` | boolean | `false` | Only results with free delivery. |
| `superSellerOnly` | boolean | `false` | Only results from Allegro Super Sellers. |

***

### Output schema

Every record carries a `recordType` telling you what it is: `listing`, `product`, or `offer`. Fields Allegro does not publish for a given item are returned as `null` rather than omitted.

#### `product` records (`ean` and `product` modes)

| Field | Type | Description |
|---|---|---|
| `recordType` | string | Always `"product"`. |
| `ean` | string | null | EAN-13 / GTIN barcode as published on the product page. |
| `eanVerified` | boolean | `true` when the product's own page confirmed the queried barcode (`ean` mode). |
| `multipleMatches` | boolean | null | `true` when the barcode resolved to more than one distinct Allegro product. |
| `mpn` | string | null | Manufacturer part number. Requires `fetchProductDetails`. |
| `brand` | string | null | Product brand. |
| `title` | string | Product name. |
| `productUrl` | string | Canonical Allegro product page URL. |
| `condition` | string | null | Item condition as Allegro labels it (e.g. `Nowy`, `Używany`). |
| `conditionNormalized` | string | null | `new` or `used`, normalized across markets. |
| `categoryPath` | string | null | Full category breadcrumb trail. Requires `fetchProductDetails`. |
| `breadcrumbs` | array | null | Category trail as an array. Requires `fetchProductDetails`. |
| `offersCount` | integer | null | How many sellers offer this product. |
| `offersFetched` | boolean | null | Whether the offers listing was actually read. `true` = read, `false` = the listing could not be loaded (so zero offer records does not mean zero sellers), `null` = `fetchOffers` was off. |
| `cheapestPrice` | number | null | Allegro's lowest price for a new item, as shown on the product page. Used and ex-display offers can be cheaper; see `cheapestOffer` for the cheapest seller of any condition. |
| `currency` | string | `PLN`, `CZK` or `EUR`. |
| `priceStats` | object | null | Price distribution across the collected seller offers when `fetchOffers` is on: `lowest`, `highest`, `average`, `median`, `currency`, `offerCount`, `pricedOfferCount`. Offers are collected cheapest first, so `lowest` is the true lowest price even with a cap. |
| `cheapestOffer` | object | null | The cheapest seller by price with delivery when `fetchOffers` is on: `offerId`, `offerUrl`, `price`, `priceWithDelivery`, `deliveryCost`, `currency`, `sellerLogin`, `superSeller`, `condition`. |
| `lowestPriceWithDelivery` | number | null | Lowest price including delivery across sellers when `fetchOffers` is on. |
| `rating` | number | null | Average product rating out of 5. |
| `reviewCount` | integer | null | Number of product reviews. |
| `popularity` | integer | null | Recent-buyer count (sales-velocity signal). |
| `stock` | integer | null | Available quantity, when the product page publishes it. |
| `imageUrl` | string | null | Main product image. |
| `images` | array | null | Full-resolution image gallery. Requires `fetchProductDetails`. |
| `description` | string | null | Product description text. Requires `fetchProductDetails`. |
| `specifications` | object | null | Full specification table. Requires `fetchProductDetails`. |
| `queriedEan` | string | null | The EAN you supplied, echoed back for joining. |
| `market` | string | `pl`, `cz` or `sk`. |
| `source` | string | Source domain. |
| `scrapedAt` | string | ISO 8601 timestamp. |

#### `offer` records (when `fetchOffers` is true)

| Field | Type | Description |
|---|---|---|
| `recordType` | string | Always `"offer"`. |
| `productEan` | string | null | EAN of the parent product — join key. |
| `productUrl` | string | Parent product page. |
| `productTitle` | string | null | Parent product name. |
| `offerId` | string | null | Allegro offer ID. |
| `offerUrl` | string | null | This seller's offer page. |
| `title` | string | Offer title as the seller wrote it. |
| `brand` | string | null | Brand (inherited from the parent product). |
| `condition` / `conditionNormalized` | string | null | Item condition (raw label / `new`|`used`). |
| `price` | number | null | This seller's price. |
| `currency` | string | Currency code. |
| `priceWithDelivery` | number | null | Price including the cheapest delivery option. |
| `deliveryCost` | number | null | Cheapest delivery cost: `0` when delivery is free, otherwise price with delivery minus price. |
| `offerRank` | integer | Position among this product's sellers, cheapest first by price with delivery (1 = cheapest). |
| `shipsFrom` | string | null | Where the item ships from, as Allegro labels it (e.g. `odeslání z Česka`), when shown. |
| `originalPrice` | number | null | Previous / crossed-out price from the listing card ("cena z 30 dni" — the lowest price of the last 30 days before the reduction, per the EU Omnibus directive). `null` when no discount is shown. |
| `discountPercent` | integer | null | Allegro's own `-N%` badge; calculated from `originalPrice` when the badge is absent. |
| `sellerLogin` | string | null | Seller's Allegro login — the identity. |
| `sellerId` | string | null | Numeric seller ID. |
| `sellerType` | string | null | Seller category, e.g. `Firma`, `Oficjalny sklep`. |
| `sellerUrl` | string | null | Seller's Allegro storefront. |
| `superSeller` | boolean | null | Allegro Super Seller status. |
| `sellerFeedbackPercent` | number | null | Positive feedback percentage. |
| `sellerFeedbackCount` | integer | null | Number of positive ratings, when published. |
| `sellerIsCompany` | boolean | null | Business seller rather than a private one. |
| `freeDelivery` / `freeReturn` | boolean | null | Delivery / return included. |
| `delivery` | string | null | Delivery description. |
| `imageUrl` | string | null | Offer image. |
| `promoted` / `sponsored` | boolean | null | Paid placement flags. |
| `market` / `source` / `scrapedAt` | string | Market, source domain, ISO timestamp. |

#### `listing` records (`search` and `seller` modes)

Carry the same product-and-seller fields as an offer record — `title`, `brand`, `condition`, `price`, `currency`, `priceWithDelivery`, `deliveryCost`, `shipsFrom`, `imageUrl`, `rating`, `reviewCount`, `popularity`, `offersCount`, `parameters`, seller fields, `promoted`, `sponsored` — plus `offerType` (`product` or `offer`) and `url`.

#### Example record

```json
{
  "recordType": "offer",
  "productEan": "0195949035982",
  "productUrl": "https://allegro.pl/produkt/smartfon-apple-iphone-15-6-gb-128-gb-5g-czarny-2c471a7b-e083-42cc-b811-faffef64ef77",
  "productTitle": "Smartfon Apple iPhone 15 6 GB / 128 GB 5G czarny",
  "offerId": "17164554013",
  "offerUrl": "https://allegro.pl/oferta/apple-iphone-15-128gb-czarny-17164554013",
  "title": "Apple iPhone 15 128GB Czarny",
  "brand": "Apple",
  "condition": "Nowy",
  "conditionNormalized": "new",
  "price": 1697.00,
  "currency": "PLN",
  "priceWithDelivery": 1697.00,
  "originalPrice": 1899.00,
  "discountPercent": 10,
  "sellerLogin": "redkom_pl",
  "sellerId": "42193017",
  "sellerType": "Firma",
  "sellerUrl": "https://allegro.pl/uzytkownik/redkom_pl",
  "superSeller": true,
  "sellerFeedbackPercent": 98.5,
  "sellerFeedbackCount": 141822,
  "sellerIsCompany": true,
  "freeDelivery": true,
  "freeReturn": true,
  "delivery": "Free delivery",
  "imageUrl": "https://a.allegroimg.com/original/11f0dc/example",
  "promoted": false,
  "sponsored": false,
  "market": "pl",
  "source": "allegro.pl",
  "scrapedAt": "2026-07-21T11:07:36.217Z"
}
```

***

### Examples

**Monitor your RRP across every seller, with price statistics (MAP monitoring):**

```json
{
  "mode": "ean",
  "eans": ["0195949035982", "0195949036019", "0194253408277"],
  "fetchOffers": true,
  "maxOffersPerProduct": 200
}
```

**New items only, keyword listing:**

```json
{
  "mode": "search",
  "searchQueries": ["iphone 15", "macbook air m3"],
  "market": "pl",
  "condition": "new",
  "maxResults": 200,
  "minPrice": 500
}
```

**Scrape a seller's whole storefront, Super Sellers' competitors excluded:**

```json
{
  "mode": "seller",
  "sellerUrls": ["https://allegro.pl/uzytkownik/Nowacell"],
  "maxResults": 500
}
```

**Track specific products with full detail and every seller:**

```json
{
  "mode": "product",
  "productUrls": [
    "https://allegro.pl/produkt/smartfon-apple-iphone-15-6-gb-128-gb-5g-czarny-2c471a7b-e083-42cc-b811-faffef64ef77"
  ],
  "fetchOffers": true,
  "fetchProductDetails": true,
  "superSellerOnly": true
}
```

***

### Call this actor over HTTP

Besides normal runs, this actor exposes a REST API that answers each request in seconds with JSON. There is no run to start and no dataset to fetch afterwards, which suits apps, automations and AI agents that need one answer at a time. The full interactive reference is on the **Endpoints** tab.

| Endpoint | Returns | Billed as |
|---|---|---|
| `GET /search?query=…&market=pl` | Listings matching a search (up to 50) | Per listing |
| `GET /ean?ean=…` | Products for up to 5 barcodes, optionally with every seller offer | Per product, plus per offer |
| `GET /product?url=…` | One product, optionally with every seller offer | One product, plus per offer |
| `GET /seller?seller=…` | A seller's listings (up to 50) | Per listing |

Authenticate with your Apify API token in the `Authorization` header:

```bash
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  "https://unfenced-group--allegro-scraper.apify.actor/ean?ean=0195949035982&offers=true"
```

Every response has the shape `{ "count": N, "items": [...] }`, with the same fields as the dataset records above, billed at the same prices as a normal run. Errors, unknown barcodes and empty searches return no data and are never billed. POST with a JSON body works the same as GET.

### 💰 Pricing

You only pay for records actually returned. Failed requests and unmatched barcodes are never charged.

| Record | Price per 1,000 |
|---|---|
| Product listing (`search` / `seller` mode) | **$2.49** |
| Product resolved (`ean` / `product` mode) | **$10.00** |
| Seller offer | **$1.50** |

A typical MAP monitoring run — 100 barcodes, every seller for each, averaging 50 sellers per product:

| Item | Count | Cost |
|---|---|---|
| Products resolved | 100 | $1.00 |
| Seller offers | 5,000 | $7.50 |
| **Total** | | **$8.50** |

> Flat-rate alternatives typically charge $200–$500/month regardless of usage.

Use **Max results** and **Max seller offers per product** to control your spend exactly.

***

### Performance

Allegro is protected by DataDome. Clearing it takes roughly 30–60 seconds per page, so runs are
deliberate rather than instant. Plan for throughput, not latency — these are measured figures.

| Run | Requests | Typical time |
|---|---|---|
| 1 EAN, no offers | 1 | ~1 minute |
| 1 EAN, all sellers (≈158) | 4 | 4–5 minutes |
| 1 EAN, top 25 sellers | 2 | ~2 minutes |
| 10 EANs, top 25 sellers each | 20 | ~20 minutes |
| 100 listing results | 2 | ~2 minutes |

Use **Max seller offers per product** to keep runs short. Offers are collected cheapest first by
price with delivery, so a cap of 25 returns the 25 cheapest sellers and the true lowest price.
For large barcode sets, split them across several scheduled runs.

***

### Known limitations

- Product reviews are not collected. Allegro's robots.txt disallows the review path, and we respect it.
- `mpn`, `specifications`, `images`, `description` and `categoryPath` require `fetchProductDetails`, which costs one extra request per product (always fetched in `ean` mode for barcode verification).
- `stock` is populated when the product page publishes it, and is `null` otherwise.
- `originalPrice` and `discountPercent` are populated only when Allegro displays a discount badge on the card. At any given moment that is a minority of listings, and the `/oferty-produktu/` seller-offer pages rarely show badges at all — `null` there means Allegro shows no discount, not that data is missing.
- Every market is scraped on its own localised paths, so prices come back in that market's currency (PLN, CZK, EUR).
- allegro.cz and allegro.sk search and seller results carry no delivery price, so `priceWithDelivery` and `deliveryCost` are `null` there and `freeDeliveryOnly` cannot filter them. Seller offers for a product (`ean` and `product` modes with `fetchOffers`) carry delivery cost in every market.
- An EAN that Allegro does not carry returns no product record. You are not charged for it, and the run says so in its status.
- A run that gets close to its timeout stops starting new pages and finishes with what it has, so you always get the records collected so far. The status says when this happened.
- Allegro is behind DataDome. Each page takes 30–60 seconds to clear, so large barcode sets are best split across scheduled runs. See Performance.

***

### Technical details

- **Source:** allegro.pl, allegro.cz, allegro.sk
- **Coverage:** all three Allegro marketplaces, full catalogue
- **Compliance:** only paths permitted by Allegro's robots.txt are fetched
- **Retry:** automatic retry on network errors with exponential backoff

***

### When a page is blocked

Allegro occasionally refuses traffic in waves. When that happens the log says `BLOCKED` with the reason code rather than reporting an empty page, and each blocked page is retried up to four times with a long wait between attempts. Two guarantees hold: nothing that could not be read is charged, and a product whose offers listing was blocked is emitted with `offersFetched: false`, so a zero-offer row is never mistaken for a product without sellers. If every request in a run is blocked, the run fails with a `BLOCKED` status instead of reporting success with no data.

### Throughput

Every page goes through an anti-bot bypass, which is where the time goes — roughly 25-40 seconds per page, whatever the page is. A run's duration is therefore close to `pages / concurrency x 35 s`.

Pages per product: one for the product itself, one for its offers listing when `fetchOffers` is on, plus one for the search step in `ean` mode. Feeding `/produkt/` URLs in `product` mode instead of barcodes removes the search page and about a third of the work. The offers listing returns every seller on page 1, so a second page is only requested when a product genuinely has more offers than one page holds.

`concurrency` is the main lever: at the default of 4, several hundred products refresh in well under an hour. Running several copies of the actor at once scales on top of that — the bypass is per request, not a shared queue — but 10 concurrent requests from one run is the polite ceiling, and the same restraint applies across parallel runs.

### Rate this actor

If this scraper does its job, a short review on the **Reviews** tab helps other users find it. Something not working? Open an issue on the **Issues** tab instead — issues get fixed.

***

### Need a custom scraper?

**[Unfenced Group](https://www.unfencedgroup.nl)** builds Apify actors for any website — for free.

If the site you need isn't in our portfolio yet, just ask. We scope, build, and publish it at no cost to you. You only pay for results — we absorb the compute and proxy costs ourselves. Same pay-per-result pricing, same quality, same standards as every actor in this portfolio.

**Get in touch:** [www.unfencedgroup.nl](https://www.unfencedgroup.nl)

# Actor input Schema

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

What to scrape. 'search' returns product listings for a keyword or category. 'ean' takes a list of EAN/GTIN codes and resolves each to its Allegro product. 'product' takes Allegro /produkt/ URLs directly. 'seller' scrapes a seller's whole storefront catalogue. 'ean' and 'product' can expand into every seller's offer via Fetch seller offers.

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

Keywords to search for on Allegro. One search per keyword. Used in 'search' mode. Example: \["iphone 15", "macbook air m3"].

## `eans` (type: `array`):

Barcode (EAN-13 / GTIN) codes to look up. Each code is resolved to its Allegro product page. Used in 'ean' mode - the standard input for brand MAP monitoring and repricing. Example: \["0195949035982"].

## `productUrls` (type: `array`):

Allegro product page URLs (https://allegro.pl/produkt/...). Used in 'product' mode. Example: \["https://allegro.pl/produkt/smartfon-apple-iphone-15-6-gb-128-gb-5g-czarny-2c471a7b-e083-42cc-b811-faffef64ef77"].

## `sellerUrls` (type: `array`):

Seller storefront URLs or logins to scrape in full. Used in 'seller' mode. Accepts a full URL (https://allegro.pl/uzytkownik/SellerLogin) or a bare seller login. Example: \["https://allegro.pl/uzytkownik/Nowacell"].

## `fetchOffers` (type: `boolean`):

For each resolved product, return every seller's offer: seller login, price, Super Seller status, feedback score and delivery. This is how you see who is undercutting your RRP. Applies to 'ean' and 'product' modes.

## `maxOffersPerProduct` (type: `integer`):

Cap on seller offers per product. Offers are collected cheapest first (price with delivery), so a cap of 25 returns the 25 cheapest sellers.

## `fetchProductDetails` (type: `boolean`):

Fetch each product's page for EAN, manufacturer part number (MPN) and the full specification table. Costs one extra request per product. Not needed in 'ean' mode unless you want the MPN and specs.

## `market` (type: `string`):

Which Allegro marketplace to scrape. All three support keyword search, EAN lookup, product URLs and seller storefronts.

## `category` (type: `string`):

Restrict a search to one category. Required for the CZ and SK markets, optional for PL. Example: smartfony-165 (PL) or telefony-a-prislusenstvi-4 (CZ).

## `maxResults` (type: `integer`):

Maximum number of products to return. Seller offers are capped separately by Max seller offers per product. Example: 100.

## `concurrency` (type: `integer`):

How many products, EANs or search queries are scraped at the same time. Every page request waits on the anti-bot bypass, so a run is network-bound: 4 is roughly four times faster than 1. Lower it to 1 only if you want the gentlest possible request rate. Example: 6.

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

Order of keyword, category and start-URL results. 'Price with delivery: lowest first' finds the cheapest landed price. Seller offers for a product are always returned cheapest first by price with delivery, whatever this is set to.

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

Allegro listing or category URLs to scrape directly, instead of building them from a keyword. Applies to 'search' mode.

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

Only return products at or above this price, in the marketplace's currency (PLN, CZK or EUR). Example: 500. Applied by Allegro before paging, in every mode.

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

Only return products at or below this price, in the marketplace's currency. Example: 3000. Applied by Allegro before paging, in every mode.

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

Filter results by item condition. 'new' returns only new items, 'used' only used/refurbished items, 'all' returns both. Applies to 'search' and 'seller' modes and to seller offers.

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

Only return products or offers that include free delivery. Applied by Allegro before paging, in every mode.

## `superSellerOnly` (type: `boolean`):

Only return products or offers from Allegro Super Sellers (the platform's verified high-rating merchants). Applied by Allegro before paging, in every mode.

## Actor input object example

```json
{
  "mode": "search",
  "searchQueries": [
    "iphone 15"
  ],
  "eans": [
    "0195949035982"
  ],
  "productUrls": [],
  "sellerUrls": [
    "https://allegro.pl/uzytkownik/Nowacell"
  ],
  "fetchOffers": true,
  "maxOffersPerProduct": 100,
  "fetchProductDetails": false,
  "market": "pl",
  "category": "",
  "maxResults": 100,
  "concurrency": 4,
  "sortBy": "relevance",
  "startUrls": [],
  "condition": "all",
  "freeDeliveryOnly": false,
  "superSellerOnly": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "mode": "search",
    "searchQueries": [
        "iphone 15"
    ],
    "eans": [
        "0195949035982"
    ],
    "sellerUrls": [
        "https://allegro.pl/uzytkownik/Nowacell"
    ],
    "fetchOffers": true,
    "maxOffersPerProduct": 100,
    "market": "pl",
    "maxResults": 100,
    "concurrency": 4,
    "sortBy": "relevance",
    "condition": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("unfenced-group/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 = {
    "mode": "search",
    "searchQueries": ["iphone 15"],
    "eans": ["0195949035982"],
    "sellerUrls": ["https://allegro.pl/uzytkownik/Nowacell"],
    "fetchOffers": True,
    "maxOffersPerProduct": 100,
    "market": "pl",
    "maxResults": 100,
    "concurrency": 4,
    "sortBy": "relevance",
    "condition": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("unfenced-group/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 '{
  "mode": "search",
  "searchQueries": [
    "iphone 15"
  ],
  "eans": [
    "0195949035982"
  ],
  "sellerUrls": [
    "https://allegro.pl/uzytkownik/Nowacell"
  ],
  "fetchOffers": true,
  "maxOffersPerProduct": 100,
  "market": "pl",
  "maxResults": 100,
  "concurrency": 4,
  "sortBy": "relevance",
  "condition": "all"
}' |
apify call unfenced-group/allegro-scraper --silent --output-dataset

```

## MCP server setup

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