# Auto Trader UK Dealer Profile Scraper (`sabatali/dealer-profile-actor`) Actor

Scrapes Auto Trader UK dealer profile pages and returns structured JSON with dealer name, contact details, stock counts, services, awards, reviews, and location data. Designed for Clay enrichment workflows.

- **URL**: https://apify.com/sabatali/dealer-profile-actor.md
- **Developed by:** [Sabat Ali](https://apify.com/sabatali) (community)
- **Categories:** Other, Real estate
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

### What does Auto Trader UK Dealer Profile Scraper do?

**Auto Trader UK Dealer Profile Scraper** is an [Apify Actor](https://apify.com/actors) that extracts structured dealer data from [Auto Trader UK](https://www.autotrader.co.uk) dealer profile pages. For each dealer it returns name, address, contact details, opening hours, manufacturer approval status, brand badges, stock counts, services, awards, reviews, about text, coordinates, and more.

Run it on Apify for scheduling, API access, proxy rotation, and integrations — or locally with `apify run`.

**Full documentation:** [DOCUMENTATION.md](./DOCUMENTATION.md) — input/output reference, architecture, field logic, API, troubleshooting, and Clay mapping.

### Why use this Actor?

- **Clay-ready fields** — Maps to LAYER1 columns (`at_dealer_profile_url`, `at_manufacturer_approved`, stock counts, services, awards, reviews, etc.)
- **Two input modes** — Direct profile URLs (fast) or root domains (auto-find AT profile)
- **Efficient** — Parses embedded `AT_APOLLO_STATE` JSON; no browser per profile
- **Franchised + independent** — Tested on dealers such as Citygate Kia Slough and Professional Motors Limited

### How to use

1. Create an [Apify account](https://console.apify.com/sign-up).
2. Open the Actor → **Input** tab.
3. Add **Dealer Profile URLs** and/or **Root Domains**.
4. Start the run → download results from **Dataset** (JSON, CSV, Excel).

#### Local run

```bash
pip install -r requirements.txt
playwright install chromium
apify run
```

### Input (summary)

| Field | Description |
|-------|-------------|
| `dealer_urls` | AT dealer profile URLs |
| `root_domains` | Website domains (Actor finds AT profile) |
| `max_items` | Limit dealers (0 = unlimited) |
| `max_concurrency` | Parallel requests (default 10) |
| `proxyConfiguration` | Optional Apify Proxy |

See [DOCUMENTATION.md §7](./DOCUMENTATION.md#7-input-reference) for full details.

### Output (summary)

One JSON object per dealer. Example (franchised):

```json
{
  "dealer_name": "Citygate Kia Slough",
  "at_dealer_profile_url": "https://www.autotrader.co.uk/dealers/citygate-kia-slough-10008283?channel=cars",
  "manufacturer_approved": true,
  "brand_badges": ["KIA"],
  "used_stock_count": 46,
  "new_stock_count": 10,
  "website": "http://www.citygate.co.uk/",
  "review_score": 4.7,
  "review_count": 114,
  "dealer_type": "franchised"
}
```

**All 25 fields** are documented in [DOCUMENTATION.md §8](./DOCUMENTATION.md#8-output-reference).

### Data table

| Field | Description |
|-------|-------------|
| `dealer_name` | Trading name |
| `at_dealer_profile_url` | Profile URL |
| `address` / `postcode` | Location |
| `phone` / `website` / `email` | Contact |
| `opening_hours` | Opening times |
| `manufacturer_approved` | Approved badge |
| `brand_badges` | Franchise brands |
| `used_stock_count` / `new_stock_count` | Stock |
| `services` / `awards` | Lists |
| `review_score` / `review_count` | Reviews |
| `about_text` / `family_owned` / `years_established` | About |
| `lat` / `long` | Coordinates |
| `dealer_type` | `franchised` or `independent` |
| `scraped_at` | UTC timestamp |

### Pricing / cost

- **URL input:** Low compute (~target $0.005/profile on Apify).
- **Root domain input:** Higher (Playwright search + profile matching).
- Enable **Apify Proxy** only if you see 403 errors.

### Tips

- Prefer `dealer_urls` when you already have Auto Trader links.
- Use `max_items` for test runs.
- See [DOCUMENTATION.md §20](./DOCUMENTATION.md#20-troubleshooting) for errors.

### FAQ

Public Auto Trader dealer pages only — no listings, no login. You are responsible for ToS compliance.

**Issues?** Apify Console → Actor → Issues tab, or see full [DOCUMENTATION.md](./DOCUMENTATION.md).

# Actor input Schema

## `dealer_urls` (type: `array`):

Mode 1 — Paste Auto Trader dealer profile URLs to scrape directly. Remove this list if you use root\_domains or dealer\_searches instead.

## `root_domains` (type: `array`):

Mode 2 — Enter website domains (e.g. sloughmotorgroup.co.uk). The actor finds the matching Auto Trader profile, then scrapes it. Leave empty if using dealer\_urls or dealer\_searches.

## `dealer_searches` (type: `array`):

Mode 3 — Search by dealer company name and UK postcode. The first search result is scraped. Leave empty if using dealer\_urls or root\_domains.

## `max_items` (type: `integer`):

Maximum number of dealers to process (0 = unlimited)

## `max_concurrency` (type: `integer`):

Maximum number of concurrent HTTP requests

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

Proxy settings for Auto Trader UK. On Apify Cloud, enable Apify Proxy with country GB. For local runs, set useApifyProxy to false.

## Actor input object example

```json
{
  "dealer_urls": [
    "https://www.autotrader.co.uk/dealers/dundee-audi-8218?channel=cars"
  ],
  "root_domains": [
    "sloughmotorgroup.co.uk"
  ],
  "dealer_searches": [
    {
      "company_name": "Dundee Audi",
      "postal_code": "AB12 3AW"
    }
  ],
  "max_items": 0,
  "max_concurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "GB",
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "dealer_urls": [
        "https://www.autotrader.co.uk/dealers/dundee-audi-8218?channel=cars"
    ],
    "root_domains": [
        "sloughmotorgroup.co.uk"
    ],
    "dealer_searches": [
        {
            "company_name": "Dundee Audi",
            "postal_code": "AB12 3AW"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sabatali/dealer-profile-actor").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 = {
    "dealer_urls": ["https://www.autotrader.co.uk/dealers/dundee-audi-8218?channel=cars"],
    "root_domains": ["sloughmotorgroup.co.uk"],
    "dealer_searches": [{
            "company_name": "Dundee Audi",
            "postal_code": "AB12 3AW",
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("sabatali/dealer-profile-actor").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 '{
  "dealer_urls": [
    "https://www.autotrader.co.uk/dealers/dundee-audi-8218?channel=cars"
  ],
  "root_domains": [
    "sloughmotorgroup.co.uk"
  ],
  "dealer_searches": [
    {
      "company_name": "Dundee Audi",
      "postal_code": "AB12 3AW"
    }
  ]
}' |
apify call sabatali/dealer-profile-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sabatali/dealer-profile-actor"
        }
    }
}

```

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/dZrAWImbJW72xvDxA/builds/iy5wuwvmFihbmaoWh/openapi.json
