# 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:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=sabatali/dealer-profile-actor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Auto Trader UK Dealer Profile Scraper",
        "description": "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.",
        "version": "1.5",
        "x-build-id": "iy5wuwvmFihbmaoWh"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/sabatali~dealer-profile-actor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-sabatali-dealer-profile-actor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/sabatali~dealer-profile-actor/runs": {
            "post": {
                "operationId": "runs-sync-sabatali-dealer-profile-actor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/sabatali~dealer-profile-actor/run-sync": {
            "post": {
                "operationId": "run-sync-sabatali-dealer-profile-actor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "dealer_urls": {
                        "title": "Dealer Profile URLs",
                        "type": "array",
                        "description": "Mode 1 — Paste Auto Trader dealer profile URLs to scrape directly. Remove this list if you use root_domains or dealer_searches instead.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "https://www.autotrader.co.uk/dealers/dundee-audi-8218?channel=cars"
                        ]
                    },
                    "root_domains": {
                        "title": "Root Domains",
                        "type": "array",
                        "description": "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.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "sloughmotorgroup.co.uk"
                        ]
                    },
                    "dealer_searches": {
                        "title": "Dealer Searches (Company Name + Postcode)",
                        "type": "array",
                        "description": "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.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "company_name": {
                                    "title": "Company Name",
                                    "type": "string",
                                    "description": "Dealer name as shown on Auto Trader (e.g. Dundee Audi, Group 1 BMW)"
                                },
                                "postal_code": {
                                    "title": "Postal Code",
                                    "type": "string",
                                    "description": "UK postcode for the search (e.g. AB12 3AW, NW3 6LT)"
                                }
                            },
                            "required": [
                                "company_name",
                                "postal_code"
                            ]
                        },
                        "default": [
                            {
                                "company_name": "Dundee Audi",
                                "postal_code": "AB12 3AW"
                            }
                        ]
                    },
                    "max_items": {
                        "title": "Max Items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of dealers to process (0 = unlimited)",
                        "default": 0
                    },
                    "max_concurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of concurrent HTTP requests",
                        "default": 10
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings for Auto Trader UK. On Apify Cloud, enable Apify Proxy with country GB. For local runs, set useApifyProxy to false.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyCountry": "GB",
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
