# Allegro Scraper — Poland Products, Prices & Sellers (`haketa/allegro-scraper`) Actor

Scrape Allegro.pl (Poland's #1 marketplace): product title, price, price-with-delivery, seller (feedback %, Super Seller, company), rating, reviews, number of offers, popularity and specs. Search by keyword or paste listing URLs. No login, no API key.

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

## Pricing

from $2.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.
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 — Poland Products, Prices, Sellers & Reviews

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com/haketa/allegro-scraper)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://apify.com/haketa/allegro-scraper)
[![Data Quality](https://img.shields.io/badge/Data%20Quality-Verified-blue.svg)](https://apify.com/haketa/allegro-scraper)
[![Format](https://img.shields.io/badge/Export-JSON%20|%20CSV%20|%20Excel-brightgreen)](https://apify.com/haketa/allegro-scraper)
[![Speed](https://img.shields.io/badge/Speed-HTTP%20Fast-yellow)](https://apify.com/haketa/allegro-scraper)

Extract comprehensive product listings, dynamic pricing, shipping fees, seller ratings, Super Seller flags, and technical specifications from **Allegro.pl**, Poland's undisputed #1 e-commerce marketplace. Whether you need real-time competitive pricing intelligence, catalog enrichment, or marketplace seller benchmarking, Allegro Scraper delivers clean, structured e-commerce data at scale.

***

### ⚡ At a Glance

| Feature | Specification |
|---|---|
| **Target Website** | [Allegro.pl](https://allegro.pl) |
| **Input Options** | Search keywords (`searchTerms`), Category / Search URLs (`startUrls`) |
| **Data Fields** | Title, pricing (base & with delivery), shipping options, seller reputation, ratings, popularity, specs |
| **Output Formats** | Dataset (JSON, CSV, Excel, XML, NDJSON), Key-Value Store run summary |
| **Pagination** | Deep pagination unlocked (1,000+ items across multiple search queries) |
| **Proxy Requirement** | Residential proxies (Poland `PL` recommended for highest reliability) |
| **Execution Speed** | Fast pure-HTTP extraction (~60 offers per page in seconds) |
| **Authentication** | No login credentials or official API keys required |

***

### 🚀 Why Scrape Allegro.pl?

Allegro is the backbone of Central and Eastern European e-commerce, capturing the vast majority of online retail spending in Poland across millions of active listings:

- 📊 **Dynamic Price Intelligence**: Monitor competitive retail prices, identify undercutters, and track the lowest available shipping costs for any product SKU.
- 🏪 **Marketplace Seller Intelligence**: Uncover top merchants, Super Sellers (*Super Sprzedawca*), positive feedback ratios, and total merchant listing catalogs.
- 📈 **Consumer Demand Signals**: Gauge consumer purchasing velocity using Allegro's live popularity metrics (e.g., *"234 osoby kupiły"*).
- 🏷️ **Catalog & Spec Enrichment**: Aggregate granular technical parameters, brand identifiers, and variation attributes across consumer electronics, fashion, home goods, and automotive parts.
- 📦 **Arbitrage & Dropshipping**: Source lucrative resale opportunities across European cross-border fulfillment channels.

***

### 🥊 Feature Comparison: Allegro Scraper vs Alternatives

| Feature | Allegro Scraper (This Actor) | Official Allegro REST API | Generic DOM Scrapers | Manual Export |
|---|---|---|---|---|
| **Authentication Required** | ❌ No API key or token needed | ⚠️ Complex OAuth 2.0 app approval | ❌ No | ⚠️ Account login |
| **Setup Time** | ⚡ Instant (1 click) | 🕒 Days / Business verification | 🔧 Hours of selector writing | 🐌 Very slow & tedious |
| **Data Completeness** | 🟢 Complete (price + shipping + seller + specs) | 🟡 Scope-restricted by role | 🔴 Fragile DOM selectors break | 🔴 Minimal visual data |
| **Delivery Cost Calculation** | 🟢 Automatic (`priceWithDelivery`) | 🟡 Manual calculation per carrier | 🔴 Missing or unparsed | 🔴 Tedious manual check |
| **Super Seller Verification** | 🟢 Included (`superSeller`) | 🟢 Included | 🟡 Often skipped | 🟡 Manual check |
| **Technical Specs Dictionary** | 🟢 Normalized key-value map | 🟡 Raw attribute arrays | 🔴 Missing or messy HTML | 🔴 Not exportable |
| **Scale & Pagination** | 🟢 Unlocked 1,000+ items | 🟡 Rate limited per client ID | 🔴 IP blocked after page 2 | 🔴 Single page only |

***

### 📊 Extracted Data Fields

Every scraped offer is parsed into normalized, strongly-typed JSON records:

#### 🏷️ Offer & Product Identification

| Field | Type | Description | Coverage |
|---|---|---|---|
| `offerId` | String | Unique Allegro offer identifier | 🟢 High (100%) |
| `productId` | String | Standardized product catalog ID (when grouped) | 🟡 Conditional |
| `type` | String | Listing type (`offer` or `product`) | 🟢 High (100%) |
| `title` | String | Full title of the product listing | 🟢 High (100%) |
| `url` | String | Direct canonical URL to the Allegro listing | 🟢 High (100%) |
| `image` | String | High-resolution thumbnail image URL | 🟢 High (100%) |

#### 💰 Pricing & Shipping Details

| Field | Type | Description | Coverage |
|---|---|---|---|
| `price` | Number | Main item price in PLN | 🟢 High (100%) |
| `currency` | String | Currency denomination (`PLN`) | 🟢 High (100%) |
| `priceWithDelivery` | Number | Total price including the cheapest shipping method | 🟢 High (95%) |
| `lowestShipping` | Number | Cost of the most economical shipping option | 🟢 High (95%) |
| `freeDelivery` | Boolean | `true` if free delivery (e.g. Smart!) is available | 🟢 High (100%) |
| `freeReturn` | Boolean | `true` if free returns are offered by the merchant | 🟢 High (100%) |

#### ⭐ Ratings, Reviews & Demand Signals

| Field | Type | Description | Coverage |
|---|---|---|---|
| `rating` | Number | Average review score (scale 1.0 – 5.0) | 🟡 Conditional |
| `reviews` | Integer | Total number of customer reviews submitted | 🟡 Conditional |
| `productOffersCount` | Integer | Number of distinct merchants selling this item | 🟡 Conditional |
| `popularity` | String | Polish demand badge (e.g., "152 osoby kupiły") | 🟡 Conditional |
| `isSponsored` | Boolean | `true` if the item is a paid promotional placement | 🟢 High (100%) |

#### 🏢 Merchant & Seller Metrics

| Field | Type | Description | Coverage |
|---|---|---|---|
| `sellerLogin` | String | Public username or brand handle of the seller | 🟢 High (98%) |
| `sellerId` | String | Internal Allegro merchant account ID | 🟢 High (98%) |
| `sellerFeedbackPercent` | Number | Positive customer feedback rating percentage (e.g., 99.4) | 🟢 High (95%) |
| `superSeller` | Boolean | `true` if the merchant holds Super Seller status | 🟢 High (100%) |
| `sellerCompany` | Boolean | `true` if the seller is registered as a verified company | 🟢 High (98%) |
| `sellerUrl` | String | Direct link to the merchant's Allegro storefront | 🟢 High (98%) |
| `parameters` | Object | Key-value dictionary of technical specs (Color, RAM, etc.) | 🟢 High (90%) |
| `scrapedAt` | String | ISO 8601 timestamp of extraction | 🟢 High (100%) |

***

### 🛒 Popular Allegro Categories & Target Keyword Ideas

Allegro organizes inventory across distinct high-volume verticals. Here are proven query patterns for your extraction campaigns:

| Vertical | Polish Category Name | High-Demand Keyword Ideas |
|---|---|---|
| **Electronics** | Elektronika | `iphone 15 pro`, `playstation 5 slim`, `samsung galaxy s24`, `rtx 4070` |
| **Home & Garden** | Dom i Ogród | `kosiarka spalinowa`, `ekspres do kawy de longhi`, `robot sprzątający` |
| **Fashion & Apparel** | Moda | `buty nike air force 1`, `kurtka the north face`, `plecak kanken` |
| **Health & Beauty** | Uroda | `perfumy damskie`, `dyson airwrap`, `krem z filtrem 50` |
| **Automotive** | Motoryzacja | `opony zimowe 205/55 r16`, `olej motul 5w30`, `wideorejestrator 70mai` |
| **Supermarket & FMCG** | Supermarket | `kawa ziarnista lavazza 1kg`, `pieluchy pampers 4`, `karma dla psa brit` |

***

### ⚙️ Input Configuration

Allegro Scraper offers intuitive configuration for both quick keyword discovery and precise filtered extractions:

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | Array of Strings | `["iphone"]` | One or more Polish keywords to query (e.g. `["laptop gamingowy", "buty sportowe"]`). |
| `startUrls` | Array of Objects | `[]` | Direct Allegro search or category URLs. Ideal for applying complex UI filters (price ranges, brand filters, condition). |
| `maxItems` | Integer | `0` (unlimited) | Total number of listings to collect across all queries. Prefill is `100` for rapid verification runs. |
| `maxPagesPerTerm` | Integer | `0` (unlimited) | Maximum pagination depth per query term (~60 offers per page). Set to `0` for complete category crawling. |
| `proxyConfiguration` | Object | Residential PL | Proxy configuration. Polish residential proxies provide optimal access and prevent geoblocking. |

#### Example Input: Multi-Keyword Search

```json
{
  "searchTerms": [
    "macbook pro m3",
    "thinkpad x1 carbon"
  ],
  "maxItems": 250,
  "maxPagesPerTerm": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "PL"
  }
}
```

#### Example Input: Filtered Category URL

You can browse Allegro.pl in your standard desktop browser, configure specific facets (e.g. sorted by lowest price or condition new), and copy the URL into `startUrls`:

```json
{
  "startUrls": [
    { "url": "https://allegro.pl/kategoria/smartfony-i-telefony-komorkowe-165?order=p&stan=nowe" }
  ],
  "maxItems": 500,
  "maxPagesPerTerm": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "PL"
  }
}
```

***

### 🔍 URL Recipe Guide for `startUrls`

Allegro URLs support rich query parameters that allow you to isolate exact subsets of the marketplace before scraping:

| Target Subset | URL Structure / Parameter | Purpose |
|---|---|---|
| **Lowest Price First** | `...&order=p` | Sorts offers from cheapest to most expensive |
| **Highest Popularity** | `...&order=t` | Sorts offers by customer buying frequency (trafficked items) |
| **Newest Listings** | `...&order=n` | Surfaces recently published offers for new deal detection |
| **Condition: Brand New** | `...&stan=nowe` | Excludes refurbished, used, or damaged items |
| **Condition: Used / Second-Hand** | `...&stan=uzywane` | Scrapes vintage, second-hand, or pre-owned goods |
| **Smart! Free Delivery** | `...&smart=1` | Limits results exclusively to Allegro Smart! verified delivery |
| **Price Filter Range** | `...&price_from=100&price_to=500` | Filters offers between 100 PLN and 500 PLN |

Simply combine these filters on Allegro.pl, verify the listing in your browser, and paste the final URL into `startUrls`.

***

### 📦 Sample Output

```json
{
  "offerId": "14892019384",
  "productId": "94820148",
  "type": "offer",
  "title": "Apple iPhone 15 128GB Czarny 5G OLED A16 Bionic",
  "url": "https://allegro.pl/oferta/apple-iphone-15-128gb-czarny-5g-oled-a16-bionic-14892019384",
  "price": 3399.00,
  "currency": "PLN",
  "priceWithDelivery": 3399.00,
  "lowestShipping": 0.00,
  "freeDelivery": true,
  "freeReturn": true,
  "rating": 4.92,
  "reviews": 184,
  "productOffersCount": 42,
  "popularity": "68 osób kupiło",
  "superSeller": true,
  "sellerLogin": "ElektroMega_PL",
  "sellerId": "4819204",
  "sellerFeedbackPercent": 99.7,
  "sellerCompany": true,
  "sellerUrl": "https://allegro.pl/uzytkownik/ElektroMega_PL",
  "isSponsored": false,
  "parameters": {
    "Stan": "Nowy",
    "Kolor": "Czarny",
    "Wbudowana pamięć": "128 GB",
    "Pamięć RAM": "6 GB",
    "Przekątna ekranu": "6.1 cala"
  },
  "image": "https://a.allegroimg.com/original/11294a/83b8a1c94b7fa68b7593c68383e2/Apple-iPhone-15-128GB-Czarny",
  "scrapedAt": "2026-11-10T14:20:15.112Z"
}
```

***

### 💼 Step-by-Step Practical Tutorial

#### Step 1: Define Target Products or Categories

Identify whether you are crawling a list of specific SKUs (e.g. `["sony wh-1000xm5", "bose quietcomfort ultra"]`) or a broad category. If targeting a specific category with faceted filters (like `Stan: Nowe` and `Cena: 200 - 500 PLN`), open Allegro in your browser, apply the filters, and copy the full URL from your browser's address bar.

#### Step 2: Configure Run Parameters

Paste the search queries into `searchTerms` or category links into `startUrls`. For quick smoke testing, leave `maxItems` at the default `100`. For thorough inventory extraction, specify your desired cap (e.g. `2000`) or set both `maxItems: 0` and `maxPagesPerTerm: 0` for completely unrestricted crawling.

#### Step 3: Run the Actor and Review Live Progress

Click **Start**. Allegro Scraper will immediately connect through Polish residential IP pools, stream pages, and normalize offer objects. You can inspect live progress logs in the Apify Console.

#### Step 4: Export Clean Data

When the run finishes, access the **Storage** tab. Export the records directly in CSV, Excel, JSON, or connect via webhooks to automate data ingestion into your warehouse or Google Sheets.

***

### 💼 Business Use Cases

#### 1. Automated Repricing & Buy-Box Tracking

Keep your e-commerce catalog competitively priced against Allegro rivals. Extract real-time prices including delivery fees and track competitor stock changes every hour to trigger automatic adjustments in your ERP or repricer engine.

#### 2. Marketplace Brand Protection & MAP Compliance

Monitor authorized and unauthorized distributors. Detect rogue merchants listing products below Minimum Advertised Price (MAP), track counterfeit items, and verify Super Seller credentials for authorized store partners.

#### 3. Polish E-Commerce Market Research & Trend Discovery

Identify fastest-selling consumer goods across Polish regional commerce by monitoring the `popularity` label and total review counts. Discover which product variations (color, storage size, bundle items) attract maximum customer orders.

#### 4. Cross-Border Arbitrage (Amazon vs. Allegro vs. Kaufland)

Evaluate price spreads between Western European platforms (Amazon.de, Kaufland.de) and Allegro.pl. Identify high-margin arbitrage opportunities with localized Polish consumer demand.

#### 5. Merchant Lead Generation & Partner Outreach

Find high-volume commercial sellers with established positive ratings (`sellerFeedbackPercent > 98%`) and verified company status (`sellerCompany: true`) for wholesale partnerships, agency marketing, or fulfillment services.

***

### 💡 Best Practices & Pro Tips

- 🇵🇱 **Always Use Polish Proxies**: Allegro applies strict geographic routing to protect user experiences. Using residential proxies configured with `apifyProxyCountry: "PL"` ensures high data consistency and prevents challenges.
- 🔍 **Combine Broad & Specific Keywords**: For comprehensive brand coverage, query both generic terms (`"lego star wars"`) and specific manufacturer codes (`"lego 75192"`).
- 🏷️ **Extracting Multi-Variant Parameters**: The `parameters` dictionary automatically captures technical attributes such as storage capacity, size, and material without requiring manual selector maintenance.
- ⚡ **Prefill Speed vs. Bulk Depth**: Leave `maxItems: 0` and `maxPagesPerTerm: 0` when scheduled for batch night runs to crawl deep catalogs of 1,000+ items.

***

### 🔗 Exporting & Integration

Once your run completes, you can consume the dataset immediately via:

- **Apify API**: Fetch JSON or NDJSON programmatically in your microservice:
  ```bash
  curl -X GET "https://api.apify.com/v2/datasets/{DATASET_ID}/items?format=json&clean=true"
  ```
- **Direct Downloads**: Download instantly via the Apify Console as CSV, Excel (`.xlsx`), XML, or JSON.
- **Python Integration**:
  ```python
  from apify_client import ApifyClient
  import pandas as pd

  client = ApifyClient("YOUR_APIFY_TOKEN")
  run_input = {
      "searchTerms": ["sony wh-1000xm5"],
      "maxItems": 150
  }
  run = client.actor("haketa/allegro-scraper").call(run_input=run_input)
  items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
  df = pd.DataFrame(items)
  print(f"Scraped {len(df)} offers. Lowest price: {df['price'].min()} PLN")
  ```
- **Node.js Integration**:
  ```javascript
  import { ApifyClient } from 'apify-client';

  const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
  const run = await client.actor('haketa/allegro-scraper').call({
      searchTerms: ['garmin fenix 7'],
      maxItems: 100,
  });
  const { items } = await client.dataset(run.defaultDatasetId).listItems();
  console.log(`Fetched ${items.length} offers`);
  ```
- **Automated Webhooks (Slack / Discord / Zapier / Make)**:
  Configure Apify Webhooks to notify your team when a crawl finishes or automatically post price drops into your operational channels.

***

### ❓ Frequently Asked Questions

##### Does this scraper require an Allegro account or developer API token?

No. Allegro Scraper accesses publicly viewable catalog pages and extracts structured offer data directly without any login credentials, session cookies, or official developer portal approval.

##### How does pagination work?

Allegro presents approximately 60 listing offers per page. When `maxPagesPerTerm` is set to `0`, the scraper crawls subsequent pages sequentially until your desired `maxItems` threshold is met or all available offers are collected.

##### Can I filter by specific product conditions (New vs. Used)?

Yes! The easiest way is to apply condition, price, or brand filters directly on Allegro.pl in your browser, copy the resulting listing URL, and paste it into the `startUrls` parameter.

##### Are sponsored advertisements separated from organic listings?

Yes. The `isSponsored` boolean attribute clearly identifies whether a listing is an organically ranked offer (`false`) or a paid sponsored promo box (`true`).

##### Can I schedule recurring daily or hourly price checks?

Yes. Using Apify's built-in **Schedules** tab, you can execute the actor on cron schedules (e.g. every morning at 06:00 UTC or every 4 hours) to continuously update your internal databases.

##### What happens if an offer does not have free shipping?

The scraper accurately records `freeDelivery: false` and calculates the explicit shipping fee in `lowestShipping`, while also computing `priceWithDelivery` by adding the shipping cost to the item price.

##### How are duplicate offers handled when searching multiple overlapping keywords?

The actor maintains an in-memory deduplication set across `offerId`, `productId`, and canonical URLs during each run, ensuring that your exported dataset contains 0 duplicate records even if products appear in multiple search queries.

##### Are prices returned with Polish VAT included?

Yes. Prices listed on Allegro.pl consumer listings are gross consumer prices in Polish Złoty (`PLN`), including standard applicable Polish VAT.

##### Can I run Allegro Scraper headlessly in production pipelines?

Yes. The actor runs entirely via optimized HTTP requests without spinning up heavy browser engines, making it fast, lightweight, and cost-effective for continuous 24/7 scraping.

***

### 📋 Changelog

#### v1.2 — 2026-11

- **Deep Pagination Unlocked**: Removed restrictive 30-page ceiling; now supports 1,000+ items across multi-query extractions.
- **Auto-Unlimited Controls**: Updated `maxItems` and `maxPagesPerTerm` to accept `0` for unconstrained pagination.
- **Optimized Polish Proxy Handling**: Enhanced residential IP rotation and automatic retry logic for consistent Polish marketplace data collection.
- **Schema & Documentation Refresh**: Added standardized output schemas, interactive viewer links, and updated dataset field mappings.

#### v1.1 — 2026-11

- Added full parameter attribute mapping (`parameters` dictionary for technical specifications).
- Enhanced Super Seller and merchant company verification indicators.
- Added demand popularity indicators (`popularity` string).

#### v1.0 — 2026-11

- Initial production release for Allegro.pl marketplace scraping.
- Support for search keywords and direct listing URLs.
- Delivery fee parsing and total price calculations.

# Changelog

This Actor's version history is a separate document: https://apify.com/haketa/allegro-scraper/changelog.md

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to search on Allegro.pl. Example: iphone, laptop, buty nike.

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

Allegro listing or category URLs to scrape directly (useful for custom filters, sorts, or specific categories).

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

Maximum number of offers to save across all searches. Set to 0 for unlimited (governed by maxPagesPerTerm or total results). Default and prefill are 100 for fast runs.

## `maxPagesPerTerm` (type: `integer`):

How many result pages to crawl per search (~60 offers per page). Set to 0 for unlimited pagination (governed by maxItems).

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

Polish residential proxy configuration. Allegro protects listings against automated bots, so residential proxies from Poland ensure reliable extraction.

## Actor input object example

```json
{
  "searchTerms": [
    "iphone"
  ],
  "startUrls": [],
  "maxItems": 100,
  "maxPagesPerTerm": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Direct JSON endpoint containing all scraped Allegro offers, prices, and seller details

## `datasetUi` (type: `string`):

Interactive dataset viewer and export UI for CSV, JSON, and Excel formats

## `output` (type: `string`):

Execution summary containing total offers scraped and search terms processed

# 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 = {
    "searchTerms": [
        "iphone"
    ],
    "startUrls": [],
    "maxItems": 100,
    "maxPagesPerTerm": 0,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PL"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/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 = {
    "searchTerms": ["iphone"],
    "startUrls": [],
    "maxItems": 100,
    "maxPagesPerTerm": 0,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PL",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/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 '{
  "searchTerms": [
    "iphone"
  ],
  "startUrls": [],
  "maxItems": 100,
  "maxPagesPerTerm": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}' |
apify call haketa/allegro-scraper --silent --output-dataset

```

## MCP server setup

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