# Rated People Scraper — UK Trade Leads, Ratings & Reviews (`scrapersdelight/rated-people-scraper`) Actor

Scrape UK tradespeople from Rated People by trade and town: business name, rating, review count, reviews, service area, badges and profile URL.

- **URL**: https://apify.com/scrapersdelight/rated-people-scraper.md
- **Developed by:** [Scrapers Delight](https://apify.com/scrapersdelight) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 per trader returneds

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/platform/actors/running/actors-in-store#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

## Rated People Scraper — UK Trade Leads, Ratings & Reviews

Scrape verified UK tradespeople from [Rated People](https://www.ratedpeople.com) by
**trade** and **town**. For every trader you get the business name, rating (out of 5),
review count, recent reviews, service-area polygon, badges, verification status and a
direct profile URL — a clean, structured B2B lead list Google Maps can't give you.

### What you get (one row per unique trader)

| Field | Notes |
|---|---|
| `companyName`, `profileStem`, `profileUrl`, `traderId` | Identity. `profileStem` is the stable dedupe key. |
| `averageRating`, `numberOfRatings`, `ratingOutOf` | Rating **normalized to a 0–5 scale**. |
| `companyDescription`, `avatarUrl`, `coverImageUrl`, `companyLogoUrl`, `workGalleryImages` | Marketing/profile assets. |
| `town`, `postcode`, `outcodes`, `serviceAreaPolygon` | Location + the trader's real service area (lat/lng polygon). |
| `trades`, `skills`, `badges`, `isVerified`, `isNewJoiner`, `isActive` | Category + trust signals. |
| `ratingsBreakdown`, `latestReview`, `reviews[]` | Full reviews: homeowner first name, out-code, rating, date, comment, skill. |
| `phone` | The trader's `maskedNumber`. **Often absent** — most profiles do not publish a number. |
| `searchTrade`, `searchLocation`, `enriched`, `scrapedAt` | Provenance. |

### Input

- **trades** — e.g. `Plumber`, `Electrician`, `Roofer`, `Bathroom Fitter`. Free text is
  normalized to Rated People's slug and validated against its trade list.
- **locations** *(optional)* — e.g. `London`, `Manchester`, `Birmingham`, or a path like
  `west-midlands/birmingham`. Combined with every trade (trades × locations). Leave empty
  to scrape each trade's nationwide top traders.
- **expandLocationTowns** — for each location, also scrape every sibling postal town Rated
  People lists (a big volume multiplier).
- **enrichProfiles** — open each profile for the full reviews, service area, badges and phone.
- **onlyWithPhone**, **maxItems**, **requestDelayMs**, **proxyConfiguration**.

### How it works / limits

- Rated People is a Cloudflare-fronted **Remix (SSR)** app. Each page embeds its full
  route data in a `window.__remixContext` blob, so this actor reads structured JSON — no
  browser, no DOM scraping. **Apify RESIDENTIAL, country GB proxy is required** (direct
  requests get a Cloudflare challenge); it is the default.
- **Each search page returns up to 20 traders** (measured hard cap — the site does not
  paginate these listings). Coverage therefore comes from **breadth**: run many trades ×
  many locations, and/or turn on *Expand to nearby towns*. `numberOfRatings`/`total` are
  the site's real, location-filtered figures.
- **Ratings are normalized to a 0–5 scale.** (Rated People's search cards use a 0–10 scale
  internally and its profiles a 0–5 scale; this actor emits a single 0–5 value.)
- **Phone is usually masked/absent** on Rated People — treat `phone` as a bonus field, not
  a guarantee.

### Legality

You are responsible for complying with Rated People's Terms of Service and applicable law.
Only ordinary public page loads are used — no login, no CAPTCHA solving, no anti-abuse
bypass. Trader records may contain **personal data** (sole-trader names, phone numbers,
review-author first names); handling it lawfully (e.g. UK GDPR) is your responsibility.

# Actor input Schema

## `trades` (type: `array`):

Trade categories to scrape, e.g. "Plumber", "Electrician", "Roofer", "Bathroom Fitter". Free text is normalized to Rated People's slug (e.g. Plumber -> plumbers) and validated against its trade list.

## `locations` (type: `array`):

Optional. UK towns or cities to scrape each trade in, e.g. "London", "Manchester", "Birmingham". Combined with every trade (trades x locations). You can also paste a Rated People location path, e.g. "west-midlands/birmingham". Leave empty to scrape each trade's nationwide top traders.

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

Optional: paste Rated People trade/location URLs directly, e.g. https://www.ratedpeople.com/local-plumbers/west-midlands/birmingham . Used in addition to trades x locations above.

## `expandLocationTowns` (type: `boolean`):

For each resolved location, also scrape every sibling postal town Rated People lists for it (e.g. all West Midlands towns near Birmingham). A big volume multiplier. Note: each town page returns up to 20 traders.

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

Stop after this many unique traders (0 = no limit). Each unique trader is charged once.

## `enrichProfiles` (type: `boolean`):

Open each trader's profile to add the full reviews list, service-area polygon, town/postcode, badges, verification status and (when published) a phone number. Slower but far richer. Turn off for fast rating-only lists.

## `onlyWithPhone` (type: `boolean`):

Drop any trader that does not publish a phone number. Note: most Rated People profiles mask the phone, so this will keep only a small subset. Requires 'Enrich from profile pages'.

## `requestDelayMs` (type: `integer`):

Politeness delay between page loads. Lower is faster but more likely to be rate-limited.

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

Rated People is behind Cloudflare and blocks direct (no-proxy) requests. Apify Proxy RESIDENTIAL, country GB is required and is the default.

## Actor input object example

```json
{
  "trades": [
    "Plumber",
    "Electrician"
  ],
  "locations": [
    "London",
    "Manchester"
  ],
  "startUrls": [],
  "expandLocationTowns": false,
  "maxItems": 25,
  "enrichProfiles": true,
  "onlyWithPhone": false,
  "requestDelayMs": 1500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "GB"
  }
}
```

# Actor output Schema

## `leads` (type: `string`):

One item per unique trader: name, rating (out of 5), review count, reviews, service area, badges and profile URL.

# 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 = {
    "trades": [
        "Plumber",
        "Electrician"
    ],
    "locations": [
        "London",
        "Manchester"
    ],
    "startUrls": [],
    "maxItems": 25,
    "requestDelayMs": 1500,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "GB"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapersdelight/rated-people-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 = {
    "trades": [
        "Plumber",
        "Electrician",
    ],
    "locations": [
        "London",
        "Manchester",
    ],
    "startUrls": [],
    "maxItems": 25,
    "requestDelayMs": 1500,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "GB",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapersdelight/rated-people-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 '{
  "trades": [
    "Plumber",
    "Electrician"
  ],
  "locations": [
    "London",
    "Manchester"
  ],
  "startUrls": [],
  "maxItems": 25,
  "requestDelayMs": 1500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "GB"
  }
}' |
apify call scrapersdelight/rated-people-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapersdelight/rated-people-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/WqwvtdnEPsuXO5arZ/builds/wMXwKtwq0HywYI2uz/openapi.json
