# Wallapop Scraper — All Categories (`rastriq/wallapop-scraper`) Actor

Extract listings from any Wallapop category: Cars, Motos, Tech, Fashion, Real Estate, Home, Sports, Bikes, Collectibles and more. Incremental mode included.

- **URL**: https://apify.com/rastriq/wallapop-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** E-commerce, Developer tools, Lead generation
- **Stats:** 1 total users, 1 monthly users, 85.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.92 / 1,000 results

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?

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

# Actor input Schema

## `categoryId` (type: `string`):

<b>Wallapop category to scrape.</b><br>Leave empty to search across all categories (no category filter).

## `keywords` (type: `string`):

<b>Free-text search.</b><br>Examples: <code>iPhone 13</code>, <code>Nike Air Max</code>, <code>sofá esquinero</code>, <code>piso Madrid centro</code>.<br>Leave empty to browse the full category.

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

<b>Hard cap on the number of listings returned.</b><br>50 ≈ under 1 min, 500 ≈ 3–5 min, 5 000 ≈ 20–30 min.<br><i>Note: Cars category is fetched in a single search pass. All other categories require one additional detail request per listing for structured attributes.</i>

## `location` (type: `string`):

City used as the geographic center. Ignored when custom coordinates are set.

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

Only return listings priced at or above this amount.

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

Only return listings priced at or below this amount.

## `minYear` (type: `integer`):

Oldest year to include (applies to Cars and Motos).

## `maxYear` (type: `integer`):

Newest year to include (applies to Cars and Motos).

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

<b>Filter by seller profile.</b>

## `orderBy` (type: `string`):

<b>How results are ordered.</b>

## `distanceKm` (type: `integer`):

Maximum distance from the search center (only applies with <code>orderBy: Closest</code>).

## `timeFilter` (type: `string`):

Restrict results to a recent time window.

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

<b>Hard cap on search-result pages swept.</b> ~35 listings per page.<br>Leave at 0 for automatic: enough pages to satisfy <b>Max results</b> in normal mode, or 30 pages (~1 000 listings scanned) in incremental mode, where most listings are skipped as unchanged and more pages must be walked to find the new ones.

## `enableCursor` (type: `boolean`):

<b>Return only listings that are new or have changed since your last run.</b><br>The actor keeps a ledger of every listing id it has already delivered for this search stream, together with a fingerprint of <code>price / title / reserved / warranty</code>. A listing is returned when its id is unknown (<code>\_delta\_status: "new"</code>) or when its fingerprint moved (<code>\_delta\_status: "updated"</code>). Everything else is skipped and not charged.<br><br>The ledger makes no assumption about feed ordering or timestamps, so a listing that surfaces late in Wallapop's rotating feed is still captured.<br><br><b>First run:</b> captures a full baseline and seeds the ledger.<br><b>Subsequent runs:</b> new and changed listings only.<br><br>Use <code>cursorId</code> to keep parallel searches independent.

## `cursorId` (type: `string`):

<b>Optional.</b> Names the ingestion stream this run belongs to. Runs sharing a stream id share one ledger; different ids are fully independent.<br><br>Leave empty and the actor derives a stable id from your search filters, which is normally what you want. Set it explicitly when several searches should feed a single catalogue (e.g. <code>catalogue-es</code>), or to force a clean rebuild by using a new value.<br><br>Only used when <b>Incremental mode</b> is on.

## `emitSeenIds` (type: `boolean`):

<b>Write every listing id observed during the sweep to the run's key-value store</b> under <code>SEEN\_IDS</code> — including the ones skipped as unchanged.<br><br>With delta ingestion your catalogue never expires rows on its own: a listing that sells simply stops appearing. Compare <code>SEEN\_IDS</code> across runs and mark anything absent for N consecutive sweeps as delisted.<br><br>No extra cost.

## `customLatitude` (type: `number`):

Latitude override (27.0–44.0).

## `customLongitude` (type: `number`):

Longitude override (-18.2 to 5.0).

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

Proxy settings. Enable Apify proxy to avoid rate-limiting on large runs.

## `fetchSellerDetails` (type: `boolean`):

Enrich each listing with <b>seller\_type</b> (<code>consumer</code> / <code>professional</code>), <b>seller\_name</b> and <b>seller\_slug</b> via a cached call to <code>/api/v3/users/{user\_id}</code>.<br>Cost: one extra request per <b>unique seller</b> in the run (not per listing). In local markets, one seller often accounts for many listings, so the overhead is low.<br><b>user\_id is always emitted for free</b> regardless of this flag.

## `geoStopPostalPrefix` (type: `string`):

Stop pagination when too many consecutive pages fall outside this postal-code prefix.<br>Examples: <code>48</code> for Bizkaia, <code>28</code> for Madrid, <code>08</code> for Barcelona.<br>Leave empty to disable the guard.

## `geoStopThreshold` (type: `number`):

Fraction of items on a page that must be <b>outside</b> the postal prefix to count that page as a drift page.<br>Default <code>0.5</code> (50 %). Lower values trigger the stop sooner.

## `geoStopPages` (type: `integer`):

Number of <b>consecutive</b> drift pages before pagination stops.<br>Default <code>3</code>. A higher value is more tolerant of occasional out-of-region results.

## Actor input object example

```json
{
  "keywords": "iPhone",
  "maxItems": 50,
  "location": "madrid",
  "orderBy": "most_relevance",
  "maxPages": 0,
  "enableCursor": false,
  "emitSeenIds": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "fetchSellerDetails": false,
  "geoStopThreshold": 0.5,
  "geoStopPages": 3
}
```

# 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": "iPhone",
    "maxItems": 50,
    "maxPages": 0,
    "cursorId": "",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/wallapop-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": "iPhone",
    "maxItems": 50,
    "maxPages": 0,
    "cursorId": "",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/wallapop-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": "iPhone",
  "maxItems": 50,
  "maxPages": 0,
  "cursorId": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rastriq/wallapop-scraper --silent --output-dataset

```

## MCP server setup

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