# Allegro Lokalnie Classifieds Scraper (`moving_beacon-owner1/allegro-lokalnie-classifieds-scraper`) Actor

Collects offers from Allegro Lokalnie, including prices in PLN, original prices, locations, sellers, brands, images, and URLs for the listings.

- **URL**: https://apify.com/moving_beacon-owner1/allegro-lokalnie-classifieds-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 results

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

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

## What's an Apify Actor?

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 Lokalnie Classifieds Scraper

Scrapes Allegro Lokalnie classified offers, PLN prices, original prices, locations, sellers, brands, images and offer URLs.

***

***

### Input Configuration

| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | `string` | `"rower"` | Offer keyword to search for on Allegro Lokalnie (for example 'rower', 'telefon', 'meble'). |
| `max_records` | `integer` | `20` | Maximum number of records to return. |
| `max_pages` | `integer` | `1` | Maximum number of result pages to crawl. |
| `delay` | `number` | `0.5` | Delay between paginated requests in seconds. |
| `timeout` | `integer` | `40` | HTTP request timeout in seconds. |
| `proxy_url` | `string` | `null` | Optional HTTP/HTTPS proxy URL (for example 'http://user:password@host:port'). |
| `proxy_configuration` | `object` | `null` | Apify Proxy settings. Recommended for cloud execution. |

***

### Output Example

Each record pushed to the Apify dataset contains:

```json
{
  "title": "Rower elektryczny CyklonEbike",
  "description": "Waga: 50 kg",
  "price": 5900.0,
  "currency": "PLN",
  "price_text": "5 900 zł",
  "old_price": null,
  "url": "https://allegrolokalnie.pl/oferta/rower-elektryczny-cyklonebike",
  "image_url": "https://a.allegroimg.com/s180x180/1e05eb/526f6a074f0eac418acbdc9d18c3",
  "sku": "a3b6a00f-17a2-4f82-9a51-98f8ca2dd3e9",
  "brand": null,
  "rating": null,
  "review_count": null,
  "availability": "Kup teraz",
  "location": "Wrocław",
  "seller": "osoba prywatna",
  "source": "allegrolokalnie.pl",
  "query": "rower",
  "position": 1,
  "scraped_at": "2026-11-21T08:50:10.435577+00:00"
}
```

***

### Output Fields

The dataset schema is defined in `.actor/actor.json`. Common fields include
`title`, `price`, `currency`, `price_text`, `url`, `image_url`, `sku`,
`brand`, `rating`, `review_count`, `availability`, `seller`, `source`,
`query`, `position` and `scraped_at`. Source-specific fields are documented in
the schema and shown in the output example above.

***

### Limitations & Compliance

- Allegro Lokalnie is a separate public site from the blocked Allegro marketplace.
- Prices are in PLN and are not converted.
- Live-only: HTTP failures raise and fail the run instead of emitting fabricated records.
- Offer availability and markup can change; respect Allegro Lokalnie's terms of service and robots.txt.

This actor queries public pages and endpoints. It does not bypass CAPTCHAs,
Cloudflare, Akamai, DataDome or other anti-bot systems. Review the target
site's terms of service, robots.txt and applicable privacy and marketing laws
before running recurring or high-volume jobs.

# Actor input Schema

## `query` (type: `string`):

Offer keyword to search for on Allegro Lokalnie (for example 'rower', 'telefon', 'meble').

## `max_records` (type: `integer`):

Maximum number of records to return.

## `max_pages` (type: `integer`):

Maximum number of result pages to crawl.

## `delay` (type: `number`):

Delay between paginated requests in seconds.

## `timeout` (type: `integer`):

HTTP request timeout in seconds.

## `proxy_url` (type: `string`):

Optional HTTP/HTTPS proxy URL (for example 'http://user:password@host:port').

## `proxy_configuration` (type: `object`):

Apify Proxy settings. Recommended for cloud execution.

## Actor input object example

```json
{
  "query": "rower",
  "max_records": 20,
  "max_pages": 1,
  "delay": 0.5,
  "timeout": 40
}
```

# 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 = {
    "query": "rower",
    "max_records": 20,
    "max_pages": 1,
    "timeout": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/allegro-lokalnie-classifieds-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 = {
    "query": "rower",
    "max_records": 20,
    "max_pages": 1,
    "timeout": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/allegro-lokalnie-classifieds-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 '{
  "query": "rower",
  "max_records": 20,
  "max_pages": 1,
  "timeout": 40
}' |
apify call moving_beacon-owner1/allegro-lokalnie-classifieds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/allegro-lokalnie-classifieds-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/2is4PtC0kaBM2zLkY/builds/V9mSsNhcr1cSackUf/openapi.json
