# Wallapop Listings Scraper (`muhammadafzal/wallapop-listings-scraper`) Actor

Scrape public Wallapop listings for titles, descriptions, prices, images, locations, categories, shipping flags, and seller details.

- **URL**: https://apify.com/muhammadafzal/wallapop-listings-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 wallapop listings

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

## Wallapop Listings Scraper

**Free plan limit:** Free-plan users can receive up to **5 result records per run**. Paid-plan and local/unknown runs retain the Actor's existing limits.

Collect public Wallapop listings as clean JSON for price monitoring, second-hand market research, inventory discovery, and lead qualification. Search by keyword, reuse a filtered Wallapop search URL, or extract one public item page.

The Actor follows Wallapop's public web experience. It first loads the public site, then uses the page-owned search requests and pagination tokens that Wallapop itself exposes to anonymous visitors. Individual item URLs are read from the structured `__NEXT_DATA__` embedded in their public pages. No login, private messages, hidden profiles, or CAPTCHA bypass is used.

### What the Wallapop scraper extracts

Each default-dataset row is one unique, schema-validated listing.

| Field | Meaning |
|---|---|
| `listingId`, `url` | Stable Wallapop ID and public item URL |
| `title`, `description` | Seller-written listing content |
| `price`, `currency` | Current cash asking price |
| `categoryId`, `categoryName`, `taxonomy` | Category and full returned hierarchy |
| `images` | Large and thumbnail image URLs |
| `location` | Approximate city, region, postal code, country, and coordinates |
| `sellerId` | Public seller identifier when returned |
| `sellerName`, `sellerType`, `sellerVerified`, `sellerRating` | Rich seller fields available on direct item URLs |
| `characteristics` | Condition, brand, model, size, or other item summary from direct URLs |
| `isReserved`, `isShippable`, `isRefurbished`, `hasWarranty` | Listing state and fulfillment flags |
| `createdAt`, `modifiedAt` | Source timestamps when Wallapop returns them |
| `sourceType`, `searchQuery`, `scrapedAt` | Provenance and scrape timestamp |

Search results contain the listing description, price, images, approximate location, categories, shipping state, and seller ID. Direct item URLs add the public seller display name, type, verification state, rating, and item characteristics when present.

### When to use it

Use this Actor to:

- monitor asking prices for phones, bikes, furniture, collectibles, cars, and other second-hand products;
- find newly posted inventory with `sortBy: "newest"`;
- compare regional availability by changing latitude, longitude, and country code;
- feed listing records into spreadsheets, databases, alerts, or downstream AI workflows;
- capture a known public item URL with richer public seller information.

Do not use it for login-only data, private messages, contact details that Wallapop does not publish, purchasing, posting listings, or interacting with sellers. It does not download image binaries; it returns the public image URLs.

### Input

| Input | Default | Notes |
|---|---:|---|
| `queries` | `["iphone"]` | Keyword searches, one string per query |
| `startUrls` | none | Public Wallapop `/search`, `/app/search`, or `/item/` URLs |
| `maxResults` | `50` | Global unique-result and billing cap, 1–1,000 |
| `maxPagesPerSearch` | `5` | Pagination cap per query/search URL, 1–50 |
| `sortBy` | `most_relevance` | Relevance, newest, either price direction, or distance |
| `latitude`, `longitude` | Madrid | Search center used for keyword queries |
| `countryCode` | `ES` | Two-letter country tied to the search center |
| `proxyConfiguration` | direct | Optional proxy; limited permissions may require a direct fallback |

If a search URL already contains filters such as category or price parameters, the Actor preserves them. Explicit URL parameters take precedence over the general sort and location defaults.

#### Search example

```json
{
  "queries": ["iphone 15", "macbook air m2"],
  "maxResults": 100,
  "maxPagesPerSearch": 3,
  "sortBy": "newest",
  "latitude": 40.4168,
  "longitude": -3.7038,
  "countryCode": "ES"
}
```

#### Filtered URL and item example

```json
{
  "queries": [],
  "startUrls": [
    { "url": "https://es.wallapop.com/app/search?keywords=bicicleta&min_sale_price=100&max_sale_price=800" },
    { "url": "https://es.wallapop.com/item/example-listing-1234567890" }
  ],
  "maxResults": 50
}
```

#### Run through the Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_USERNAME~wallapop-listings-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["camera sony"],"maxResults":10,"sortBy":"newest"}'
```

Use an authorization header instead of placing a token in the URL in production systems.

### Output example

```json
{
  "listingId": "xzog9oe7d2j9",
  "title": "iPhone 13 Verde",
  "description": "Teléfono móvil en buen estado con caja original.",
  "url": "https://es.wallapop.com/item/iphone-13-verde-1294249781",
  "price": 250,
  "currency": "EUR",
  "categoryId": "24200",
  "categoryName": "Technology & electronics",
  "taxonomy": [
    { "id": "24200", "name": "Technology & electronics" },
    { "id": "9447", "name": "Smartphones" }
  ],
  "images": [
    { "url": "https://cdn.wallapop.com/images/example.jpg?pictureSize=W800", "smallUrl": "https://cdn.wallapop.com/images/example.jpg?pictureSize=W320" }
  ],
  "location": {
    "city": "Madrid",
    "region": "Comunidad de Madrid",
    "postalCode": "28070",
    "countryCode": "ES",
    "latitude": 40.42,
    "longitude": -3.69
  },
  "sellerId": "36ewexe7gy6d",
  "sellerName": null,
  "sellerType": null,
  "sellerVerified": null,
  "sellerRating": null,
  "characteristics": null,
  "isReserved": false,
  "isShippable": true,
  "isRefurbished": false,
  "hasWarranty": false,
  "createdAt": "2026-08-23T10:00:04.237Z",
  "modifiedAt": "2026-08-28T19:46:29.901Z",
  "sourceType": "search",
  "searchQuery": "iphone",
  "scrapedAt": "2026-08-30T12:00:00.000Z"
}
```

The `OUTPUT` key-value-store record contains the classified run outcome (`DATA`, `EMPTY`, `BLOCKED`, `FAILED`, or `REJECTED`), delivered result count, charged dataset-event count, pages, inputs, and warnings. Diagnostics never pollute the homogeneous listing dataset.

### Pay-per-event pricing

Current Apify event prices and platform-usage treatment are listed in the dedicated [Pricing section](#pricing) below.

A 10-listing run costs up to **$0.195** in Actor events: $0.005 start + 10 × $0.019. A 100-listing run costs up to **$1.905**. Apify may enforce a lower maximum charge selected by the user; the Actor checks that limit before crawling and never intentionally emits more billable records than allowed. Platform usage is included.

### Reliability and limits

- The default is low-cost direct HTTP because that path returned complete live data during development.
- One coherent device identity, app version, headers, and optional sticky proxy URL are reused for the run.
- HTTP 429 and transient 5xx responses receive bounded backoff; repeated access failures stop without fabricated rows.
- Pagination uses Wallapop's opaque `next_page` token and obeys both `maxPagesPerSearch` and `maxResults`.
- Records are normalized, schema-checked, and deduplicated by `listingId` before dataset writes.
- Valid partial results are preserved. Warnings and terminal diagnostics are written to `OUTPUT`.
- Wallapop can change its public web contract or restrict a network range. You can request an authorized Apify proxy with a country consistent with the search. If the Actor's limited-permissions mode prevents proxy initialization, the Actor falls back to the measured direct route and records that fact in `OUTPUT`.

Search ranking and inventory are dynamic. Running the same query later can produce different results, and listing timestamps or fields can be absent when Wallapop does not expose them.

### Responsible use

Scrape only public information you are permitted to collect. Follow Wallapop's terms, robots policies where applicable, local law, privacy rules, and fair-use expectations. Avoid excessive collection, do not use the output for harassment or unsolicited contact, and apply appropriate retention and access controls to seller identifiers and approximate location data. This Actor is independent and is not affiliated with or endorsed by Wallapop.

For support, include the Apify run ID, the redacted input, the `OUTPUT` record, and the first relevant warning. Never post tokens, proxy credentials, cookies, or private personal data in an issue.

### Pricing

This Actor uses **pay-per-event** pricing. These are the current Apify Store event prices:

| Event | Price (USD) | When it is charged |
|---|---:|---|
| `apify-default-dataset-item` | FREE: $0.019; BRONZE: $0.018; SILVER: $0.017; GOLD: $0.015; PLATINUM: $0.015; DIAMOND: $0.015 | Wallapop listing — One schema-valid Wallapop listing written to the default dataset. |
| `apify-actor-start` | $0.005 | Actor Start — Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). — Charged once per run. |

Apify platform usage for this Actor run is included alongside the event prices above; no separate per-run platform-usage fee is passed to users.

This covers Apify platform usage for this Actor run. Other Apify products or usage outside this Actor run may still follow your account plan.

# Changelog

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

# Actor input Schema

## `queries` (type: `array`):

Use this for keyword discovery, one query per line, for example `iphone 15` or `bicicleta montaña`. If no query or URL is supplied, the Actor uses `iphone`.

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

Use this for public Wallapop search or individual `/item/` URLs, for example `https://es.wallapop.com/app/search?keywords=iphone`. Profile, login, and checkout URLs are not supported.

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

Use this to cap unique listing records and result charges across every input. Default 50; minimum 1; maximum 1,000.

## `maxPagesPerSearch` (type: `integer`):

Use this to limit Wallapop pagination for each query or search URL. Each page contains up to about 40 listings. Default 5; maximum 50.

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

Use this to order keyword queries and search URLs that do not already specify `order_by`. Default is relevance.

## `latitude` (type: `number`):

Use this as the search center latitude for keyword queries, for example `40.4168` for Madrid. Default 40.4168; not an exact-address lookup.

## `longitude` (type: `number`):

Use this as the search center longitude for keyword queries, for example `-3.7038` for Madrid. Default -3.7038; not an exact-address lookup.

## `countryCode` (type: `string`):

Use this for the two-letter country tied to the search center, for example `ES`. Default `ES`; it does not translate listing text.

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

Use this only when Wallapop blocks direct cloud traffic or you need a consistent regional IP. Direct HTTP is the measured default. If limited Actor permissions prevent proxy initialization, the run continues directly and records a warning.

## Actor input object example

```json
{
  "queries": [
    "iphone"
  ],
  "maxResults": 50,
  "maxPagesPerSearch": 5,
  "sortBy": "most_relevance",
  "latitude": 40.4168,
  "longitude": -3.7038,
  "countryCode": "ES",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The default dataset containing one record per unique listing.

## `summary` (type: `string`):

Outcome, counts, billing parity, and warnings for this run.

# 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 = {
    "queries": [
        "iphone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/wallapop-listings-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 = { "queries": ["iphone"] }

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/wallapop-listings-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 '{
  "queries": [
    "iphone"
  ]
}' |
apify call muhammadafzal/wallapop-listings-scraper --silent --output-dataset

```

## MCP server setup

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