# Lento.pl Scraper (`rainminer/lento-pl-scraper`) Actor

Extract classified ads from lento.pl — cars, real estate, electronics, jobs. Export JSON/CSV via Apify. | lento.pl ogłoszenia scrapowanie: motoryzacja, nieruchomości, elektronika. Eksport JSON/CSV bez kodu.

- **URL**: https://apify.com/rainminer/lento-pl-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** E-commerce, Real estate, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.86 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### What does Lento.pl Scraper do?

**Lento.pl Scraper** extracts **classified ads (ogłoszenia)** from [lento.pl](https://www.lento.pl/) — one of Poland's largest free local marketplaces for cars, real estate, electronics, jobs, fashion, and services. Paste a category/search URL (for example `https://www.lento.pl/elektronika/telefony-i-akcesoria.html`) or a single listing URL and export structured ad data without coding.

### Why scrape lento.pl?

- **Market monitoring** — Track new listings for keywords, categories, or cities across Poland.
- **Price research** — Compare asking prices (cena) for products, vehicles, and rentals over time.
- **Lead generation** — Collect commercial offers with seller (sprzedawca) and location (lokalizacja) context.
- **Apify platform** — Schedule runs, export JSON/CSV/Excel, monitor failures, rotate proxies, and integrate via API.

### What data can you extract from lento.pl?

| Field | Description |
| --- | --- |
| id | Unique numeric listing identifier |
| title | Ad title (tytuł) |
| description | Full ad description (opis) |
| price | Numeric price (cena) when available |
| currency | Price currency (waluta), e.g. `PLN` |
| location | City and region (lokalizacja) |
| category | Category breadcrumb path (kategoria) |
| postedAt | Posting date shown on the listing (data) |
| images | Listing image URLs (zdjęcia) |
| seller | Seller or company name (sprzedawca) |
| url | Public listing URL |

### How to scrape lento.pl

1. Open the Actor in Apify Console.
2. Add one or more **lento.pl category, search, or listing URLs** under **Start URLs**.
3. Set **Maximum items** (listings per start URL).
4. Run the Actor and download results from the dataset tab.

### Input

Lento.pl Scraper accepts **Start URLs**, **maxItems** (per start URL), and **proxy configuration**. See the **Input** tab in Apify Console for details.

Supported start URLs:

- Category/search pages: `https://www.lento.pl/{category}/{subcategory}.html`
- Listing pages: `https://{city}.lento.pl/{slug},{listingId}.html`

> **Proxy note:** lento.pl blocks datacenter IPs with an anti-bot challenge. This Actor defaults to **Polish residential proxies** (`RESIDENTIAL`, country `PL`), which is recommended for reliable results.

### Output example

```json
{
  "id": "8449063",
  "title": "Zarejestrowane Karty sim ODBIOR OSOBISTY Rejestracja zdalna!",
  "description": "Wyłączyli Ci kartę u sprzedawcy? Mamy punkty GSM w całej Polsce...",
  "price": 8,
  "currency": "PLN",
  "location": "Kraków, Małopolskie",
  "category": "Elektronika > Telefony i akcesoria > Pre-paid",
  "postedAt": "wczoraj 13:32",
  "images": [
    "https://st-lento.pl/adpics/original/12_2024/05/dc1c0e-...-zdjecia.jpg"
  ],
  "seller": "Simy Hurt Detal",
  "url": "https://krakow.lento.pl/zarejestrowane-karty-sim-odbior-osobisty,8449063.html"
}
```

You can download the dataset in JSON, CSV, Excel, or HTML.

### How much does scraping lento.pl cost?

This Actor uses a lightweight HTTP crawler (no browser). The main cost driver is the **Polish residential proxy** required to bypass lento.pl's anti-bot protection. A typical test run with a few listings per URL finishes quickly, but for large jobs plan for residential proxy traffic.

### FAQ

**Is it legal to scrape lento.pl?**\
This Actor collects only **public** listing content shown on lento.pl. You are responsible for complying with applicable laws (including GDPR) when processing any personal data contained in ads.

**Which URLs are supported?**\
Public category/search pages (e.g. `https://www.lento.pl/motoryzacja/samochody.html`) and individual listing pages under city subdomains (e.g. `https://warszawa.lento.pl/...,12345678.html`).

**Why do I need a proxy?**\
lento.pl serves a Cloudflare Turnstile challenge to datacenter IPs. Polish residential proxies avoid the challenge, so they are enabled by default.

### Image Credit

Image credit: [lento.pl](https://www.lento.pl/)

# Actor input Schema

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

lento.pl category/search URLs (e.g. https://www.lento.pl/elektronika/telefony-i-akcesoria.html) or individual listing URLs (e.g. https://lubin.lento.pl/smartfon-samsung-galaxy-s23-ultra-12-gb,13383138.html).

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

Maximum number of listings to return per start URL.

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

Proxy settings. lento.pl blocks datacenter IPs with an anti-bot challenge, so Polish residential proxies are recommended.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.lento.pl/elektronika/telefony-i-akcesoria.html"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.lento.pl/elektronika/telefony-i-akcesoria.html"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "PL"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/lento-pl-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 = {
    "startUrls": [{ "url": "https://www.lento.pl/elektronika/telefony-i-akcesoria.html" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "PL",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/lento-pl-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 '{
  "startUrls": [
    {
      "url": "https://www.lento.pl/elektronika/telefony-i-akcesoria.html"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "PL"
  }
}' |
apify call rainminer/lento-pl-scraper --silent --output-dataset

```

## MCP server setup

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