# Treatwell Review Scraper (`scrape_pro/treatwell-reviews-scraper`) Actor

Treatwell review scraper to extract all reviews from a Treatwell business. Supports a single Treatwell business url as input. Download the reviews as JSON, CSV, XML, Excel, HTML Table, RSS or JSONL.

- **URL**: https://apify.com/scrape_pro/treatwell-reviews-scraper.md
- **Developed by:** [Tom](https://apify.com/scrape_pro) (community)
- **Categories:** Automation
- **Stats:** 13 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 reviews

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 Treatwell Review Scraper do?

Effortlessly extract reviews from a treatwell business by simply providing URLs of the Treatwell business profiles. Download your data in diverse formats such as JSON and Excel, ensuring compatibility with various applications, reports, and databases.

#### Treatwell Review Scraper data output

The output for the scrape is stored in the dataset. After the run is finished, you can download the dataset in various data formats (JSON, CSV, XML, RSS, HTML Table).

#### Input example

```javascript
   {
        "urls": [
            {
                "url": "https://www.treatwell.co.uk/place/avenida-salon-1/"
            },
            {
                "url": "https://www.treatwell.co.uk/place/live-true-london-vauxhall/?serviceIds=TR5025417,TR5025426&t=166&tt=6"
            }
        ],
        "scrapeReviewerInfo": true,
        "language": "English",
        "limit": 10
    }
```

#### Output example

```javascript
   {
        "business_url": "https://www.treatwell.co.uk/place/avenida-salon-1/",
        "business_id": "411076",
        "review": {
            "id": 21444947,
            "created_at": "2025-01-21T19:07:49.000Z",
            "visited_at": "2025-01-18T00:00:00.000Z",
            "review_text": "Will be coming back !",
            "review_generated": false,
            "verified": true,
            "rating": 5,
            "treatment_names": [
                "Ladies' T-Section Highlights"
            ],
            "reviewer_name": "Louise",
            "reviewer_anonymous": false
        },
        "scraped_at": "2025-01-24T14:44:35.337Z",
    }
```

# Actor input Schema

## `urls` (type: `array`):

The URLs of the Treatwell businesses you want to get reviews from.

## `scrapeReviewerInfo` (type: `boolean`):

Scrape reviewer name. You should only extract reviewer's info if you have a legit reason to do so.

## `language` (type: `string`):

The language of the treatments and employee descriptions.

## `limit` (type: `integer`):

The maximum number of reviews to scrape from each business page. Leave empty to scrape all reviews.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.treatwell.co.uk/place/avenida-salon-1/"
    }
  ],
  "language": "English"
}
```

# 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 = {
    "urls": [
        {
            "url": "https://www.treatwell.co.uk/place/avenida-salon-1/"
        }
    ],
    "scrapeReviewerInfo": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrape_pro/treatwell-reviews-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 = {
    "urls": [{ "url": "https://www.treatwell.co.uk/place/avenida-salon-1/" }],
    "scrapeReviewerInfo": False,
}

# Run the Actor and wait for it to finish
run = client.actor("scrape_pro/treatwell-reviews-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 '{
  "urls": [
    {
      "url": "https://www.treatwell.co.uk/place/avenida-salon-1/"
    }
  ],
  "scrapeReviewerInfo": false
}' |
apify call scrape_pro/treatwell-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrape_pro/treatwell-reviews-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/sOSiG5VWf2shHa10e/builds/C28LBcqdtfOggh07x/openapi.json
