# Paginasamarillas Spain Scraper (`blackfalcondata/paginasamarillas-es-scraper`) Actor

Scrape paginasamarillas.es — Spanish business listings by keyword and city. Each record has the business name and address with phone and website and email and coordinates, plus opening hours and branch addresses where listed. Export clean JSON or CSV for CRM and lead lists.

- **URL**: https://apify.com/blackfalcondata/paginasamarillas-es-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Business, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.59 / 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

### What does Paginasamarillas Spain Scraper do?

Paginasamarillas Spain Scraper extracts structured company data from [paginasamarillas.es](https://paginasamarillas.es) — including contact details, full descriptions, location data, and seller ratings. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (full descriptions and contact information) where the source provides them.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **⭐ Ratings and review counts:** `rating` and `reviewCount` for every company that has them.
- **📍 Coordinates:** `latitude`, `longitude` and `coordinates` on each company that has a location, ready for a map.
- **🏘️ Address:** `address`, `streetAddress`, `postalCode` and `city` as separate fields for every company that lists them.
- **📇 Contact details:** `phone`, `phones`, `website` and `email` where the company publishes them.
- **🍽️ Cuisines and place types:** `cuisines` tell you what kind of place each company is.
- **🕒 Opening hours:** `openingHours` and `hours` where the company publishes them.
- **🔍 Keyword search:** search paginasamarillas.es by keyword with the `query` input, in the place you name in `location`.
- **🔗 Paste-mode:** paste paginasamarillas.es URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **📋 Detail enrichment:** toggle two-stage scraping: first collect listings, then enrich each with full description + detail-page-only fields. Off by default to keep runs fast; flip on when you need the deep payload.
- **♻️ Incremental mode:** recurring runs emit only directory entries that are new or updated — keep your supplier-outreach lists fresh without re-fetching the full directory. Saves 80–95% on weekly syncs.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.

### What data can you extract from paginasamarillas.es?

Each result includes Core company fields (`id`, `title`, `location`, `url`, `name`, `category`, `activities`, and `about`, and more), detail fields when enrichment is enabled (`description`, `detailUrl`, and `detailFetched`), and contact information (`phone`, `phones`, `email`, and `emails`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Detail enrichment is on by default and adds richer fields such as full descriptions and contact information where the source provides them.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — What to look for, in Spanish — an activity, trade or business type (e.g. "fontaneros", "dentistas", "talleres de coches"), or a company name. Required if no startUrls provided.
- **`location`** — Spanish city or province to search in (e.g. "Madrid", "Barcelona", "Sevilla"). Leave empty to search all of Spain.
- **`maxResults`** — Maximum total results (0 = unlimited). (default: `100`)
- **`startUrls`** — Paste raw search URLs from the target site. Each URL becomes its own search task; results are merged and deduped by listing ID across all URLs. When provided, startUrls REPLACE the query/location fields (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error). (default: `[]`)
- **`includeDetails`** — Open each business page for the full record (email, coordinates, opening hours, brands, extra addresses). Off = the search-result fields only. (default: `true`)
- **`descriptionMaxLength`** — Truncate description to N chars. 0 = no truncation. (default: `0`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`descriptionFormat`** — Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others. (default: `"all"`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls, country) so different filter sets never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.
- **`skipReposts`** — When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection). (default: `false`)
- ...and 15 more parameters

### Input examples

**Basic search** — Keyword-driven search scoped to a city with a tight radius.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "fontaneros",
  "location": "Madrid",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit companies that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "fontaneros",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "fontaneros-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "fontaneros",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured company records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example company record

```json
{
  "id": "8DdsfCdjkf",
  "title": "ASISTENCIA HOGAR 24H",
  "location": "Madrid, MADRID",
  "url": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "name": "ASISTENCIA HOGAR 24H",
  "category": "Multiservicios: empresas",
  "activities": [
    "Multiservicios: empresas"
  ],
  "description": "REPARACIONES e INSTALACIONES Rápidas 24h y Festivos. Económicos, Equipo de técnicos propio, Garantía 100%, Atendemos todas las Zonas. Asistencia Inmediata del hogar.",
  "about": "Información y Servicios\nASISTENCIA INMEDIATA DEL HOGAR\nSomos una empresa especializada en las reparaciones urgentes del hogar. Disponemos de muy buenos profesionales con capacidad para acudir a su dom...",
  "phone": "910553918",
  "phones": [
    "910553918"
  ],
  "website": "http://asistencia-hogar.com",
  "address": "Pasaje Pradillo, 8, 28002, Madrid",
  "streetAddress": "Pasaje Pradillo, 8",
  "postalCode": "28002",
  "city": "Madrid",
  "province": "MADRID",
  "latitude": 40.441196264,
  "longitude": -3.672668243,
  "logoUrl": "https://multimedia.paginasamarillas.es/adsContentSrv/20455390-0-8DdsfCdjkf/5a387623-1498-4b48-97ac-501ecfabe167/asistenciahogar24.PNG",
  "isAdvertiser": true,
  "isFeatured": true,
  "adId": "S00726636_000",
  "advertiserId": "GRzKO218aOfO",
  "additionalInfo": [
    "Horario continuo: 24 HORAS"
  ],
  "brands": [
    "AEG",
    "AGNI",
    "AIRIS",
    "AIRWELL",
    "AITONA",
    "... 74 more items"
  ],
  "technicalService": [
    "BOSCH",
    "EDESA",
    "FAGOR",
    "JUNKERS",
    "MIELE",
    "... 15 more items"
  ],
  "yearsOnDirectory": 20,
  "otherLocations": [
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carrer de los Angeles, 4 , 08005 Barcelona, BARCELONA",
      "url": "https://www.paginasamarillas.es/f/barcelona/asistencia-hogar-24h_2cEVEk3wQz.html",
      "phone": "936404934",
      "latitude": 41.391316111,
      "longitude": 2.19485421
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carretera de Arcos , 11402 Jerez de la Frontera, CADIZ",
      "url": "https://www.paginasamarillas.es/f/jerez-de-la-frontera/asistencia-hogar-24h_vOqgca5vZv.html",
      "phone": "956305607",
      "latitude": 36.6838889,
      "longitude": -6.1336111
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carrer de Llevant, 7 , 08930 Sant Adrià de Besòs, BARCELONA",
      "url": "https://www.paginasamarillas.es/f/sant-adria-de-besos/asistencia-hogar-24h_jHxcxdL5L1.html",
      "phone": "936404934",
      "latitude": 41.419463523,
      "longitude": 2.22256771
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carrer de L'abat Escarré, 5 , 08172 Sant Cugat del Vallès, BARCELONA",
      "url": "https://www.paginasamarillas.es/f/sant-cugat-del-valles/asistencia-hogar-24h_AcFjjouZuy.html",
      "phone": "936404934",
      "latitude": 41.47688991,
      "longitude": 2.087689533
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Calle Viñavieja , 01400 Laudio/Llodio, ARABA",
      "url": "https://www.paginasamarillas.es/f/laudio-llodio/asistencia-hogar-24h_uYJGzstWbo.html",
      "phone": "945318907",
      "latitude": 43.145324,
      "longitude": -2.9621073
    },
    "... 253 more items"
  ],
  "position": 1,
  "scrapedAt": "2026-10-22T18:22:21.407Z",
  "searchUrl": "https://www.paginasamarillas.es/search/fontaneros/all-ma/all-pr/all-is/madrid/all-ba/all-pu/all-nc/1",
  "email": "persianistas.bilbao@gmail.com",
  "emails": [
    "persianistas.bilbao@gmail.com"
  ],
  "listingId": "madrid/asistencia-hogar-24h_8DdsfCdjkf",
  "paginasamarillasUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "profileUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "detailUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "listingUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "canonicalUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "sourceUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "street": "Pasaje Pradillo, 8",
  "country": "ES",
  "countryCode": "ES",
  "sourceCountry": "ES",
  "region": "MADRID",
  "locality": "Madrid",
  "source": "paginasamarillas.es",
  "sourceSite": "paginasamarillas.es",
  "recordType": "business",
  "listingType": "advertiser",
  "businessName": "ASISTENCIA HOGAR 24H",
  "categories": [
    "Multiservicios: empresas"
  ],
  "primaryCategory": "Multiservicios: empresas",
  "industry": "Multiservicios: empresas",
  "slogan": "REPARACIONES e INSTALACIONES Rápidas 24h y Festivo",
  "logo": "https://multimedia.paginasamarillas.es/adsContentSrv/20455390-0-8DdsfCdjkf/5a387623-1498-4b48-97ac-501ecfabe167/asistenciahogar24.PNG",
  "imageUrl": "https://multimedia.paginasamarillas.es/adsContentSrv/20455390-0-8DdsfCdjkf/5a387623-1498-4b48-97ac-501ecfabe167/asistenciahogar24.PNG",
  "coordinates": {
    "latitude": 40.441196264,
    "longitude": -3.672668243
  },
  "mapUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html?gm=map",
  "googleMapsUrl": "https://www.google.com/maps?q=40.441196264,-3.672668243",
  "allPhones": [
    "910553918"
  ],
  "allAddresses": [
    "Pasaje Pradillo, 8, 28002, Madrid",
    "Carrer de los Angeles, 4 , 08005 Barcelona, BARCELONA",
    "Carretera de Arcos , 11402 Jerez de la Frontera, CADIZ",
    "Carrer de Llevant, 7 , 08930 Sant Adrià de Besòs, BARCELONA",
    "Carrer de L'abat Escarré, 5 , 08172 Sant Cugat del Vallès, BARCELONA",
    "... 254 more items"
  ],
  "branches": [
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carrer de los Angeles, 4 , 08005 Barcelona, BARCELONA",
      "url": "https://www.paginasamarillas.es/f/barcelona/asistencia-hogar-24h_2cEVEk3wQz.html",
      "phone": "936404934",
      "latitude": 41.391316111,
      "longitude": 2.19485421
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carretera de Arcos , 11402 Jerez de la Frontera, CADIZ",
      "url": "https://www.paginasamarillas.es/f/jerez-de-la-frontera/asistencia-hogar-24h_vOqgca5vZv.html",
      "phone": "956305607",
      "latitude": 36.6838889,
      "longitude": -6.1336111
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carrer de Llevant, 7 , 08930 Sant Adrià de Besòs, BARCELONA",
      "url": "https://www.paginasamarillas.es/f/sant-adria-de-besos/asistencia-hogar-24h_jHxcxdL5L1.html",
      "phone": "936404934",
      "latitude": 41.419463523,
      "longitude": 2.22256771
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Carrer de L'abat Escarré, 5 , 08172 Sant Cugat del Vallès, BARCELONA",
      "url": "https://www.paginasamarillas.es/f/sant-cugat-del-valles/asistencia-hogar-24h_AcFjjouZuy.html",
      "phone": "936404934",
      "latitude": 41.47688991,
      "longitude": 2.087689533
    },
    {
      "name": "ASISTENCIA HOGAR 24H",
      "address": "Calle Viñavieja , 01400 Laudio/Llodio, ARABA",
      "url": "https://www.paginasamarillas.es/f/laudio-llodio/asistencia-hogar-24h_uYJGzstWbo.html",
      "phone": "945318907",
      "latitude": 43.145324,
      "longitude": -2.9621073
    },
    "... 253 more items"
  ],
  "branchCount": 258,
  "hasPhone": true,
  "hasEmail": true,
  "hasWebsite": true,
  "hasWhatsapp": false,
  "isPremium": true,
  "sponsored": true,
  "searchTerm": "fontaneros",
  "searchQuery": "fontaneros",
  "searchKeyword": "fontaneros",
  "searchLocation": "Madrid",
  "portalUrl": "https://www.paginasamarillas.es/f/madrid/asistencia-hogar-24h_8DdsfCdjkf.html",
  "contentQuality": "full",
  "detailFetched": true
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape paginasamarillas.es

1. Go to [Paginasamarillas Spain Scraper](https://apify.com/blackfalcondata/paginasamarillas-es-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Keep `includeDetails` on (the default) for full descriptions, contact info, or turn it off for faster, cheaper runs.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract company data from paginasamarillas.es for market research and competitive analysis.
- Monitor new and changed companies on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.
- Benchmark seller / dealer reputation using rating fields.

### How much does it cost to scrape paginasamarillas.es?

Pricing for Paginasamarillas Spain Scraper has not been finalized yet. It will be published here before the actor becomes publicly available.

You only use your normal Apify platform resources when you run the actor from your own account.

### FAQ

#### How many results can I get from paginasamarillas.es?

The number of results depends on the search query and available companies on paginasamarillas.es. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Paginasamarillas Spain Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed companies on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Paginasamarillas Spain Scraper with other apps?

Yes. Paginasamarillas Spain Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Paginasamarillas Spain Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Paginasamarillas Spain Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape paginasamarillas.es?

This actor extracts publicly available data from paginasamarillas.es. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/paginasamarillas-es-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [1182.ee Scraper - Estonian Business Directory](https://apify.com/blackfalcondata/1182-ee-scraper?fpr=1h3gvi) — Scrape the 1182.ee Estonian business directory by keyword and get registry codes, phone numbers.
- [1188.lv Business Directory Scraper](https://apify.com/blackfalcondata/1188-lv-scraper?fpr=1h3gvi) — Scrape 1188.lv — Latvia's business directory. Search by keyword or city and get the phone number.
- [2GIS Russia Places Scraper \[Just 💰$0.14\] — Addresses & Ratings](https://apify.com/blackfalcondata/2gis-ru-scraper?fpr=1h3gvi) — Scrape 2gis.ru places by keyword and city: addresses and coordinates, categories, ratings.
- [Acquire Scraper - Startups & SaaS Businesses for Sale](https://apify.com/blackfalcondata/acquire-com-scraper?fpr=1h3gvi) — Scrape startup and SaaS businesses for sale on Acquire.com: filter public listings by keyword.
- [Ahrefs Blog Scraper - Posts, Authors & Full Text](https://apify.com/blackfalcondata/ahrefs-com-scraper?fpr=1h3gvi) — Scrape the ahrefs.com blog: search posts by keyword, filter by category, and export title, excerpt,.
- [Apontador Brazil Business Scraper](https://apify.com/blackfalcondata/apontador-com-br-scraper?fpr=1h3gvi) — Scrape Apontador — Brazil's local business directory. Search any city and category for business.
- [BBB Business Scraper \[Just 💰$0.54\]](https://apify.com/blackfalcondata/bbb-org-scraper?fpr=1h3gvi) — Scrape Better Business Bureau (bbb.org) business profiles in the USA and Canada: BBB rating,.
- [Bizi.si Slovenian Company Scraper](https://apify.com/blackfalcondata/bizi-si-scraper?fpr=1h3gvi) — Get Slovenian company records from the bizi.si registry: name, registration number, tax ID,.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on paginasamarillas.es. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Paginasamarillas Spain's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Paginasamarillas Spain or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

paginasamarillas scraper, paginasamarillas api, apify paginasamarillas, paginasamarillas data extraction, paginasamarillas spain scraper, paginasamarillas spain api, apify paginasamarillas spain, paginasamarillas spain data extraction, paginasamarillas.es scraper, paginasamarillas.es data, paginasamarillas.es api.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/paginasamarillas-es-scraper/changelog.md

# Actor input Schema

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

What to look for, in Spanish — an activity, trade or business type (e.g. "fontaneros", "dentistas", "talleres de coches"), or a company name. Required if no startUrls provided.

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

Spanish city or province to search in (e.g. "Madrid", "Barcelona", "Sevilla"). Leave empty to search all of Spain.

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

Maximum total results (0 = unlimited).

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

Paste raw search URLs from the target site. Each URL becomes its own search task; results are merged and deduped by listing ID across all URLs. When provided, startUrls REPLACE the query/location fields (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error).

## `includeDetails` (type: `boolean`):

Open each business page for the full record (email, coordinates, opening hours, brands, extra addresses). Off = the search-result fields only.

## `descriptionMaxLength` (type: `integer`):

Truncate description to N chars. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `descriptionFormat` (type: `string`):

Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls, country) so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit listings whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit listings that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "query": "fontaneros",
  "location": "Madrid",
  "maxResults": 100,
  "startUrls": [],
  "includeDetails": true,
  "descriptionMaxLength": 0,
  "compact": false,
  "descriptionFormat": "all",
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5
}
```

# 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": "fontaneros",
    "location": "Madrid",
    "maxResults": 100,
    "descriptionFormat": "all",
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/paginasamarillas-es-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": "fontaneros",
    "location": "Madrid",
    "maxResults": 100,
    "descriptionFormat": "all",
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/paginasamarillas-es-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": "fontaneros",
  "location": "Madrid",
  "maxResults": 100,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/paginasamarillas-es-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blackfalcondata/paginasamarillas-es-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/y0ql2eEyRdLqpbZSO/builds/d4IGJ51ZN5zFV5Ivf/openapi.json
