# Yell Scraper — UK Business Leads & Emails (`b2b_leads/yell-real-time-data-scraper`) Actor

Live UK business directory data from Yell: search any trade by town or postcode, then export full listings — phones, addresses, websites, categories, hours, ratings, reviews, plus public emails. Enable only the features you need and stream structured JSON to your dataset in real time.

- **URL**: https://apify.com/b2b_leads/yell-real-time-data-scraper.md
- **Developed by:** [Emmanuel](https://apify.com/b2b_leads) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Yell Real-Time Data

Live UK business directory intelligence from Yell: search any trade or service by town, city, or postcode, then pull full listings — phone numbers, addresses, websites, categories, services, opening hours, ratings, and public reviews. Checkbox features let you enable only what you need, and every business is streamed to your dataset in real time as structured JSON.

> **Free plan notice:** on the Apify Free plan this Actor exports a small sample per run (2 records). Upgrade to a paid Apify plan for full, unlimited exports.

### Who is this for

Built for agencies, local-SEO teams, sales teams, recruiters, and CRM owners working with UK businesses:

- **Lead generation** — pull plumbers, electricians, solicitors, accountants, restaurants, salons, garages… complete with phones and websites, ready for outreach.
- **Local SEO & citation audits** — see which businesses in a town carry ratings, review counts, working websites, and a complete address.
- **Market & competitor research** — size any trade in any postcode: how many players, how well reviewed, who has their own site.
- **CRM & enrichment pipelines** — stream records straight into Google Sheets, Airtable, HubSpot, or Pipedrive through webhooks.
- **Franchise & multi-site monitoring** — track your own listings, or a competitor's, across many locations for presence and contact accuracy.
- **AI agents & MCP workflows** — feed live directory answers into an agent (see below).

### Feature matrix

| Feature | What it does | Default |
|---|---|---|
| 🔎 **Business search** | Multi-task search: pair a keyword ("plumbers", "indian restaurants", "solicitors") with any UK location ("Bristol", "Leeds", "BS1"). Each task collects its businesses across result pages — every business is a row with name, category, phone, area, rating, and listing link. | **On** |
| 🎯 **Business details & reviews** | Enriches **every** row in place: overview text, full address and postcode, extra phone numbers, website, categories, products & services, opening hours, geo coordinates, and recent customer reviews. Enrich, never filter — every business is still exported even when a listing has little detail. | **On** |
| 📧 **Find emails** | Reads the business's own website — the one already collected for the listing — and adds a publicly listed contact email where one is available. Best-effort and lightweight, so the fast search path stays fast. | Off |
| 🧭 **Lead details** | Discovers the business's own website when the listing does not give one, then adds its publicly available emails, extra phone numbers, and social profiles where they can be verified against the business name and area. | Off |
| 🔗 **Scrape By URL** | Paste Yell business listing links to collect exactly those businesses — same output as search. | Off |
| 🌐 **Webhooks** | JSON or Slack. Every record is POSTed to your URL the moment it is collected — CRM, Zapier, Make, n8n. | Off |

Features combine freely: search + business details is the classic deep run; search + **Find emails** is the fast outreach run (name, phone, website, email); search + lead details is the deep prospecting run; Scrape By URL re-collects a listing you already know.

**Find emails vs Lead details:** *Find emails* reuses the website the listing already gave you, so it is cheap and quick — turn it on when you just need an address to reach out to. *Lead details* does more: it also hunts down a website when the listing has none and gathers extra numbers and social profiles, which is slower per business.

### Input reference

#### 🔎 Business search

| Field | Type | Default | Notes |
|---|---|---|---|
| `enableSearch` | boolean | `true` | Master switch for search. |
| `searchTasks` | array | 2 demo rows | One row per search: `keyword`, `location`, optional `maxResults`. |
| `maxResultsPerTask` | integer | `10` | Default cap per task; override per task with `maxResults`. |
| `maxPagesPerTask` | integer | `5` | Safety cap on how many result pages of one search to collect. |

Example `searchTasks`:

```json
[
    { "keyword": "plumbers", "location": "Bristol", "maxResults": 10 },
    { "keyword": "electricians", "location": "London", "maxResults": 25 },
    { "keyword": "indian restaurants", "location": "BS1", "maxResults": 10 }
]
```

Keywords work best as the trade or service you would type into a search box ("builders", "hairdressers", "emergency plumbers", "solicitors"). Locations accept a town or city, or a postcode / postcode area (add the postcode to sharpen the area).

#### 🎯 Business details & reviews

| Field | Type | Default | Notes |
|---|---|---|---|
| `enableBusinessDetails` | boolean | `true` | Adds the full listing and recent reviews to each row in place. |
| `maxReviewsPerBusiness` | integer | `3` | How many recent reviews to attach per business (0 disables review capture). |

#### 📧 Emails & lead details

| Field | Type | Default | Notes |
|---|---|---|---|
| `fetchEmails` | boolean | `false` | Reads each business's own already-collected website for a publicly listed contact email. Best-effort and lightweight — fills `email` / `emails` where an address is available. |
| `enableContactDiscovery` | boolean | `false` | Discovers the website when the listing has none, then adds emails, extra phones, and socials where they verify against the business name and area. Off by default because it adds time per business. |

#### 🔗 Scrape By URL

| Field | Type | Default | Notes |
|---|---|---|---|
| `enableScrapeByUrl` | boolean | `false` | Master switch. |
| `scrapeUrls` | string\[] | `[]` | Yell business listing links, e.g. `https://www.yell.com/biz/mogford-prescott-ltd-bristol-7860112/`. |

#### ⚙️ Output & limits

| Field | Type | Default | Notes |
|---|---|---|---|
| `maxItems` | integer | `10000` | Global cap on total rows across all features. |
| `concurrency` | integer | `4` | Parallel detail lookups (1–8). |
| `delayBetweenRequestsMs` | integer | `1200` | Polite pacing between collections (0–5000 ms). |
| `webhookUrl` | string | `""` | Optional real-time push URL. |
| `webhookFormat` | string | `json` | `json` or `slack`. |
| `proxyConfiguration` | object | Apify RESIDENTIAL (UK) | Apify residential proxy, on by default. |

### Output field reference

Every row is one business:

| Field | Description |
|---|---|
| `name`, `profileUrl`, `businessId` | Business identity and its listing link. |
| `primaryCategory`, `categories` | Trade / business type. |
| `phone`, `phones`, `phoneLabels` | Contact numbers (labels such as "Freephone", "Mobile"). |
| `address`, `streetAddress`, `town`, `postcode`, `areaServed`, `location` | Location fields. |
| `latitude`, `longitude` | Map coordinates when published. |
| `website`, `websiteDomain`, `websiteConfidence` | The business's own site, when known. |
| `email`, `emails` | Contact emails (Find emails, or Lead details). |
| `socials`, `facebookUrl`, `instagramUrl`, `linkedinUrl`, `twitterUrl` | Social profiles (Lead details). |
| `strapline`, `description`, `services`, `openingHours` | Listing content. |
| `rating`, `ratingScale`, `reviewCount`, `reviews[]` | Ratings and recent reviews (`author`, `rating`, `date`, `title`, `body`). |
| `sponsored`, `yearsWithYell` | Listing markers. |
| `businessDetails`, `contactDiscovery`, `emailDiscovery` | Which enrichments ran for this row. |
| `searchKeywords`, `searchLocation`, `searchTaskLabel`, `position` | Where the row came from. |
| `scrapedAt` | Collection timestamp. |

### Webhook guide

Every record is always saved to the run's dataset. A webhook is an **additional** real-time push the moment each record is collected. Delivery failures never stop the run.

**JSON** (`webhookFormat: "json"`) — the full record object, exactly as in the dataset:

```json
{
    "name": "Mogford Prescott Ltd",
    "primaryCategory": "Plumbers",
    "phone": "+441172050596",
    "town": "Bristol",
    "website": "https://www.mogfordprescott.co.uk",
    "rating": 4.4,
    "profileUrl": "https://www.yell.com/biz/mogford-prescott-ltd-bristol-7860112/"
}
```

**Slack** (`webhookFormat: "slack"`) — a Slack-friendly message payload (`{ "text": "…" }`) you can POST directly to a Slack incoming webhook:

```
📍 *Mogford Prescott Ltd*
Category: Plumbers  •  Rating: 4.4/5 (12 reviews)
Phone: +441172050596
Address: 12 High St, Westbury-on-Trym, Bristol, BS9 3DU
Website: https://www.mogfordprescott.co.uk
View listing
```

### Using with AI agents (MCP)

This Actor works as a tool for AI agents through the **Apify MCP server**, so an assistant can answer live UK business questions without you writing code.

Example question you can ask an MCP-enabled assistant:

> "Find 20 electricians in Leeds with a rating of at least 4, and give me their phone numbers and websites."

The assistant calls this Actor, reads the structured dataset, and answers directly. Pair it with a Sheets/Airtable tool to have the results written straight into your workspace.

### FAQ

**Does it need a proxy?** The Actor routes through Apify's residential proxy (United Kingdom) by default and needs no setup from you. Change the country in the Connection section only if you need a different route.

**What does the free plan get me?** A small sample of 2 records per run so you can see the output shape. Paid plans export everything you request.

**How fresh is the data?** Every run collects live from the directory at run time — opening hours, ratings, review counts, and contact details reflect the moment of collection.

**Can I only get the fast fields?** Yes. Turn off *Business details & reviews* for a lighter, faster run that still gives you name, category, phone, area, rating, and listing link.

**Can I re-collect a specific business later?** Yes — use *Scrape By URL* with any Yell business listing link.

**Do I need to paginate myself?** No. Results flow into your dataset continuously and memory stays light, so large runs are safe.

### Delivery

- **Structured output** — one JSON row per business in the run's dataset, plus a run summary (including a `paywall` object) in the key-value store.
- **Real-time streaming** — rows are written as they are collected, so downstream jobs can start immediately.
- **Free trial** — on the Apify Free plan, runs are capped at 2 records, then finish gracefully with an upgrade notice.
- **Webhooks** — optional JSON or Slack push per record.

# Actor input Schema

## `enableSearch` (type: `boolean`):

Search Yell by keyword and UK location (town, city, or postcode). Enabled by default.

## `searchTasks` (type: `array`):

Primary input. Add one row per search: a keyword (trade, service, or business type) plus a UK location.

## `maxResultsPerTask` (type: `integer`):

Default maximum businesses per search task. Override per task in the list above.

## `maxPagesPerTask` (type: `integer`):

How many result pages of the same search to collect (safety cap for very large runs).

## `enableBusinessDetails` (type: `boolean`):

Enrich every business in place with its full listing: overview, full address, extra phone numbers, website, categories, services, opening hours, and recent customer reviews. Every business is still exported even when a listing has little detail — this adds a little extra time per business.

## `maxReviewsPerBusiness` (type: `integer`):

How many recent customer reviews to attach to each business when business details are on (0 disables review capture).

## `enableContactDiscovery` (type: `boolean`):

Discovers the business's own website when the listing does not give one, then adds its publicly available emails, extra phone numbers, and social profiles where they can be verified against the business name and area. Off by default because it adds extra time per business. If you only want emails and the listing already shows a website, use Find emails instead — it is much faster.

## `fetchEmails` (type: `boolean`):

Reads each business's own website — the one already collected for the listing — and adds a publicly listed contact email where one is available. Off by default because it adds a little extra time per record.

## `enableScrapeByUrl` (type: `boolean`):

Collect specific Yell business listings instead of searching.

## `scrapeUrls` (type: `array`):

Yell business listing links to collect (one per line), e.g. https://www.yell.com/biz/mogford-prescott-ltd-bristol-7860112/

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

Global cap on total dataset rows across all features. Set high for large runs (e.g. 10000+). Note: the run also respects your max total charge for this run.

## `concurrency` (type: `integer`):

How many detail lookups to run in parallel (1–8). Higher is faster; 4 is a good default.

## `delayBetweenRequestsMs` (type: `integer`):

Polite pacing between collections (0–5000 ms). Higher values are slower but gentler.

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

Optional. Every record is always saved to the run's dataset — this webhook is an ADDITIONAL real-time push. When set, each new record is also POSTed to this URL (CRM, Slack incoming webhook, Zapier, Make, Google Sheets).

## `webhookFormat` (type: `string`):

json = full record object; slack = Slack-friendly message payload.

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

Apify residential proxy (United Kingdom) is enabled by default for reliable collection of this UK directory.

## Actor input object example

```json
{
  "enableSearch": true,
  "searchTasks": [
    {
      "keyword": "plumbers",
      "location": "Bristol",
      "maxResults": 10
    },
    {
      "keyword": "electricians",
      "location": "London",
      "maxResults": 10
    }
  ],
  "maxResultsPerTask": 10,
  "maxPagesPerTask": 5,
  "enableBusinessDetails": true,
  "maxReviewsPerBusiness": 3,
  "enableContactDiscovery": false,
  "fetchEmails": false,
  "enableScrapeByUrl": false,
  "scrapeUrls": [],
  "maxItems": 10000,
  "concurrency": 4,
  "delayBetweenRequestsMs": 1200,
  "webhookUrl": "",
  "webhookFormat": "json",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "GB"
  }
}
```

# Actor output Schema

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

Complete dataset with every business row from all enabled features in this run.

## `search` (type: `string`):

Businesses from keyword + location search.

## `runSummary` (type: `string`):

Per-run metadata: totals, enabled features, spending-limit status, and the paywall object (detected, isPaying, pricingTier, limited, blocked).

# 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 = {
    "enableSearch": true,
    "searchTasks": [
        {
            "keyword": "plumbers",
            "location": "Bristol",
            "maxResults": 10
        },
        {
            "keyword": "electricians",
            "location": "London",
            "maxResults": 10
        }
    ],
    "maxResultsPerTask": 10,
    "maxPagesPerTask": 5,
    "enableBusinessDetails": true,
    "maxReviewsPerBusiness": 3,
    "enableContactDiscovery": false,
    "fetchEmails": false,
    "maxItems": 10000,
    "concurrency": 4,
    "delayBetweenRequestsMs": 1200,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "GB"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_leads/yell-real-time-data-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 = {
    "enableSearch": True,
    "searchTasks": [
        {
            "keyword": "plumbers",
            "location": "Bristol",
            "maxResults": 10,
        },
        {
            "keyword": "electricians",
            "location": "London",
            "maxResults": 10,
        },
    ],
    "maxResultsPerTask": 10,
    "maxPagesPerTask": 5,
    "enableBusinessDetails": True,
    "maxReviewsPerBusiness": 3,
    "enableContactDiscovery": False,
    "fetchEmails": False,
    "maxItems": 10000,
    "concurrency": 4,
    "delayBetweenRequestsMs": 1200,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "GB",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("b2b_leads/yell-real-time-data-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 '{
  "enableSearch": true,
  "searchTasks": [
    {
      "keyword": "plumbers",
      "location": "Bristol",
      "maxResults": 10
    },
    {
      "keyword": "electricians",
      "location": "London",
      "maxResults": 10
    }
  ],
  "maxResultsPerTask": 10,
  "maxPagesPerTask": 5,
  "enableBusinessDetails": true,
  "maxReviewsPerBusiness": 3,
  "enableContactDiscovery": false,
  "fetchEmails": false,
  "maxItems": 10000,
  "concurrency": 4,
  "delayBetweenRequestsMs": 1200,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "GB"
  }
}' |
apify call b2b_leads/yell-real-time-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_leads/yell-real-time-data-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/wd5Cw75ucFvfyxzZi/builds/8XZDHlEexCid0LaFC/openapi.json
