# Wallapop Spain Scraper — Classified Ads & Prices (`noahadler/wallapop-spain-scraper`) Actor

Scrape Wallapop Spain by keyword and city: title, price, location, shipping and images. Fast JSON path for secondhand market research and lead generation. Clean ad schema for Spain C2C pricing and sourcing.

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

## Pricing

from $1.50 / 1,000 ads

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

## Wallapop Spain Scraper — Classified Ads & Prices

**Wallapop scraper** / **Wallapop Spain API** for **secondhand marketplace listings**: extract ads from **es.wallapop.com** by keyword and city with title, price, location, shipping flag and images.

Ideal if you need a **Wallapop API**, **Spain classifieds export**, **Barcelona/Madrid price research**, or marketplace lead generation.

> **For users**\
> Usually works **without proxy** (JSON API).\
> If you get **403**, turn **Apify RESIDENTIAL** ON and set country **Spain (`ES`)**.

**Why this Actor:** Keyword + city · Fast API path (no browser) · Shipping / reserved flags · ES market focus

***

### Table of contents

1. [What this Actor does](#what-this-actor-does)
2. [What you get](#what-you-get)
3. [Features](#features)
4. [Input](#input)
5. [Output example](#output-example)
6. [Output fields](#output-fields)
7. [Quick start (API)](#quick-start-api)
8. [Use cases](#use-cases)
9. [Limitations](#limitations)
10. [FAQ](#faq)
11. [Keywords](#keywords)

***

### What this Actor does

| Step | Action |
|------|--------|
| 1 | Resolve city → lat/lng (or use your coordinates) |
| 2 | Call Wallapop `api/v3/search` |
| 3 | Paginate with `next_page` until `maxItems` |
| 4 | Normalize listing fields |

***

### What you get

**Ad content**

- Title, description, image
- Price (EUR), reserved flag

**Place & logistics**

- City, region, postal code
- Shipping available

***

### Features

| Capability | Detail |
|------------|--------|
| **Keywords** | Multi-term batch |
| **Spanish cities** | Madrid, Barcelona, Valencia, … |
| **URL paste** | `es.wallapop.com` search URLs |
| **Filters** | Min/max price, distance, sort |
| **No Chromium** | Lightweight HTTP Actor |

***

### Input

| Field | Required | Description |
|-------|----------|-------------|
| `keywords` | Cond. | Search terms |
| `city` | No | Spanish city (default Barcelona) |
| `latitude` / `longitude` | No | Override geo |
| `distanceKm` | No | Radius |
| `searchUrls` | Cond. | Search URLs |
| `maxItems` / `orderBy` | No | Caps / sort |
| `minPrice` / `maxPrice` | No | EUR |
| `proxyConfiguration` | No | RESIDENTIAL + ES if blocked |

#### Example — iPhone in Barcelona

```json
{
  "keywords": ["iphone"],
  "city": "Barcelona",
  "maxItems": 40,
  "orderBy": "newest"
}
```

***

### Output example

```json
{
  "listingId": "3zlmy2dy9njx",
  "listingUrl": "https://es.wallapop.com/item/iphone-14-pro-256-gb-morado-...",
  "title": "iPhone 14 Pro 256 GB Morado",
  "price": 410.0,
  "currency": "EUR",
  "city": "Barcelona",
  "shippingAvailable": true,
  "reserved": false
}
```

***

### Output fields

| Field | Notes |
|-------|--------|
| `listingId`, `listingUrl`, `title` | Identity |
| `price`, `currency`, `description` | Content |
| `city`, `region`, `postalCode` | Geo |
| `shippingAvailable`, `reserved` | Status |
| `imageUrl`, `scrapedAt` | Extra |

***

### Quick start (API)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_TOKEN>")
run = client.actor("YOUR_USERNAME/wallapop-spain-scraper").call(
    run_input={
        "keywords": ["ps5"],
        "city": "Madrid",
        "maxItems": 30,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

***

### Use cases

- Secondhand price bands in Spain
- Reseller sourcing alerts
- Brand / model availability monitoring
- Cross-check vs Milanuncios / Kleinanzeigen

***

### Limitations

- Phone/email usually behind chat — not on search cards.
- Unknown cities fall back to Barcelona coordinates (override with lat/lng).
- API shape can change.
- Respect Wallapop Terms of Service.

***

### FAQ

**Nationwide?**\
Use a central city + large `distanceKm`, or omit tight radius.

**Italy / Portugal?**\
v0.1 focuses on **Spain** (`es.wallapop.com`).

**403?**\
Enable RESIDENTIAL + country `ES`.

***

### Keywords

wallapop, wallapop scraper, wallapop spain, wallapop api, spain classifieds, barcelona wallapop, madrid marketplace scraper

# Actor input Schema

## `keywords` (type: `array`):

Search terms (1–10). Each keyword runs as its own search.

## `city` (type: `string`):

Spanish city for geo search. Examples: Madrid, Barcelona, Valencia, Sevilla.

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

Overrides city geocoding when set with longitude.

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

Overrides city geocoding when set with latitude.

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

Optional search radius in kilometers.

## `searchUrls` (type: `array`):

Optional es.wallapop.com search URLs. Overrides keyword builder when set.

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

Maximum ads to return (1–500).

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

Sort order.

## `minPrice` (type: `number`):

Min price (EUR).

## `maxPrice` (type: `number`):

Max price (EUR).

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

FOR USERS: usually works without proxy. If blocked, enable Apify RESIDENTIAL with country Spain (ES).

## Actor input object example

```json
{
  "keywords": [
    "iphone"
  ],
  "city": "Barcelona",
  "maxItems": 50,
  "orderBy": "newest"
}
```

# Actor output Schema

## `listings` (type: `string`):

Spain marketplace listings.

# 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"
    ],
    "city": "Barcelona"
};

// Run the Actor and wait for it to finish
const run = await client.actor("noahadler/wallapop-spain-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"],
    "city": "Barcelona",
}

# Run the Actor and wait for it to finish
run = client.actor("noahadler/wallapop-spain-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"
  ],
  "city": "Barcelona"
}' |
apify call noahadler/wallapop-spain-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,noahadler/wallapop-spain-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/5Mdl4rauaClEvVOqO/builds/8KgRDlQyhf6uo6t5P/openapi.json
