# LekkeSlaap Reviews Scraper (`knagymate/lekkeslaap-reviews-scraper`) Actor

Extract LekkeSlaap guest reviews and ratings from South African accommodations. Collect overall & category scores (cleanliness, service, safety, value), review text, stay details, and host responses. Export clean data to JSON, CSV, or Excel with date cutoff and sorting options.

- **URL**: https://apify.com/knagymate/lekkeslaap-reviews-scraper.md
- **Developed by:** [knagymate](https://apify.com/knagymate) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 92.6% runs succeeded, 0 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## LekkeSlaap Reviews Scraper

Scrape **LekkeSlaap guest reviews and accommodation ratings** at scale with a fast, reliable, and production-ready Apify Actor.

Extract structured **LekkeSlaap review and accommodation rating data** including:

- ⭐ Guest ratings with overall scores and category breakdowns (1–5 scale)
- 📝 Review headlines, full comments, and authentic traveler feedback
- 👤 Reviewer names, stay duration, and traveler type details
- 💬 Official host and management responses to guest feedback
- 🏨 Accommodation summary with aggregated ratings and total review counts
- 🔢 Specific category evaluations: cleanliness, service, location, safety, and value for money
- 📅 Normalized review publication dates for longitudinal trend analysis
- 🌐 Accommodation property IDs and canonical review page links

Perfect for:

- Travel & hospitality businesses operating in South Africa and Southern Africa
- Hospitality asset managers, property operators, and safari lodge managers
- Travel SEO, editorial, and content marketing teams
- AI/LLM training datasets and customer sentiment analysis
- Reputation management platforms and brand intelligence dashboards
- Competitive benchmarking across South African guest houses, B\&Bs, self-catering cottages, boutique hotels, and game lodges

Optimized for large-scale review extraction from **LekkeSlaap** (lekkeslaap.co.za), the leading accommodation booking and travel review platform across South Africa and Namibia.

***

## ✨ Features

- ✅ **Complete LekkeSlaap Coverage**: Scrape reviews from any game lodge, boutique hotel, B\&B, guest farm, self-catering apartment, or holiday home
- ✅ **Detailed Category Ratings**: Extract granular 1–5 scores for cleanliness, service, location, safety, and value for money alongside the overall score
- ✅ **Host Response Extraction**: Capture official property replies (`hostResponse`) to analyze guest resolution rates and management engagement
- ✅ **Traveler & Stay Context**: Capture traveler segment data and stay duration (`stayDetails`) such as couples, families, and multi-night guests
- ✅ **Configurable Sort Ordering**: Sort reviews by most recent (`newestFirst`), oldest (`oldestFirst`), highest rated (`highestRated`), or lowest rated (`lowestRated`)
- ✅ **Incremental Scraping with Cutoff Date**: Filter reviews published on or after a specified date (`cutoffDate`) to avoid duplicate processing in recurring runs
- ✅ **Customizable Review Limits**: Set maximum reviews per accommodation (`maxReviewsPerHotel`) or leave unlimited for complete property archival
- ✅ **Property-Level Summary Records**: Always output aggregate accommodation metrics (`hotelSummary`) including total review count and overall rating
- ✅ **Batch Processing**: Handle dozens or hundreds of LekkeSlaap accommodation URLs in a single Actor run (`startUrls`)
- ✅ **Clean, Normalized Output**: Standardized date formats and numeric scores ready for immediate SQL, BI, or spreadsheet import
- ✅ **Apify API & Webhooks Ready**: Trigger automated runs via REST API and receive real-time notifications via Make, Zapier, or Slack
- ✅ **Enterprise Proxy & Retry Support**: Built on async HTTP client architecture with automatic proxy rotation and exponential backoff

***

## 🔍 Supported LekkeSlaap Pages

The scraper accepts **valid LekkeSlaap accommodation detail or review URLs only**. Standalone property IDs, city/regional search result pages, or arbitrary search queries are strictly rejected.

**Supported URL formats:**

```text
https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp
https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews
https://www.lekkeslaap.co.za/accommodation/the-marly-boutique-hotel
https://www.lekkeslaap.co.za/accommodation/the-marly-boutique-hotel/reviews
https://www.lekkeslaap.co.za/accommodation/oudewerf-hotel/reviews
```

The Actor automatically normalizes the accommodation URL, resolves the internal property ID, and navigates LekkeSlaap review endpoints to collect all requested reviews.

***

## ⚙️ Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | array | *Required* | One or more valid LekkeSlaap accommodation URLs to scrape |
| `maxReviewsPerHotel` | integer | `100` | Maximum number of reviews to collect per accommodation (minimum: `1`, leave empty for unlimited) |
| `cutoffDate` | string | *None* | Only collect reviews published on or after this date (`YYYY-MM-DD`). Ideal for scheduled incremental runs |
| `sortBy` | string | `newestFirst` | Review sort order: `newestFirst`, `oldestFirst`, `highestRated`, or `lowestRated` |
| `alwaysReturnSummary` | boolean | `true` | Include an accommodation-level summary record even if no reviews match the filters |

***

## 📥 Example Input

```json
{
  "startUrls": [
    {
      "url": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews"
    },
    {
      "url": "https://www.lekkeslaap.co.za/accommodation/the-marly-boutique-hotel"
    }
  ],
  "maxReviewsPerHotel": 100,
  "cutoffDate": "2025-01-01",
  "sortBy": "newestFirst",
  "alwaysReturnSummary": true
}
```

***

## 📦 Output Dataset

For every scraped accommodation, the Actor pushes structured records into the Apify default dataset. It returns both **individual review records** (`recordType: "review"`) and an **accommodation summary record** (`recordType: "summary"`).

Each record combines individual guest feedback, stay context, category ratings, host replies, and overall property metadata — making downstream ETL, database loading, and business intelligence reporting straightforward and reliable.

***

## 🧾 Output Fields

| Field | Type | Description |
|---|---|---|
| `recordType` | string | Record classification: `review` for individual guest feedback or `summary` for aggregate property metrics |
| `reviewId` | string / null | Unique LekkeSlaap internal review identifier |
| `reviewDate` | string / null | Normalized date when the review was submitted (`YYYY-MM-DD`) |
| `reviewerName` | string / null | Reviewer display name or anonymous indicator |
| `reviewTitle` | string / null | Headline or title written by the reviewer |
| `reviewText` | string / null | Full review feedback text |
| `hostResponse` | string / null | Official response or acknowledgement written by property management |
| `stayDetails` | string / null | Length of stay and guest category (e.g., `"2 night stay · Couple"`) |
| `ratings.overall` | number / null | Overall score given by the guest on a 1.0–5.0 scale |
| `ratings.cleanliness` | number / null | Cleanliness sub-score (1.0–5.0) |
| `ratings.service` | number / null | Service sub-score (1.0–5.0) |
| `ratings.location` | number / null | Location sub-score (1.0–5.0) |
| `ratings.safety` | number / null | Safety and security sub-score (1.0–5.0) |
| `ratings.valueForMoney` | number / null | Value for money sub-score (1.0–5.0) |
| `hotelSummary.hotelId` | string | Internal LekkeSlaap accommodation identifier |
| `hotelSummary.startUrl` | string | Original input URL provided in the Actor configuration |
| `hotelSummary.actualUrl` | string / null | Final canonical URL of the accommodation review page |
| `hotelSummary.numberOfReviews` | integer / null | Total number of published reviews available for the accommodation |
| `hotelSummary.ratings` | object / null | Aggregated property-level average ratings across all categories |

***

## 🏨 Example Review Output

#### Individual Review Record (`recordType: "review"`):

```json
{
  "recordType": "review",
  "reviewId": "1168364",
  "reviewDate": "2026-09-01",
  "reviewerName": "Jane Doe",
  "reviewTitle": "Lovely stay",
  "reviewText": "Lovely stay Friendly staff and a beautiful location. Game drives were unforgettable.",
  "hostResponse": "Thank you for staying with us! We hope to welcome you back to the bush soon.",
  "stayDetails": "2 night stay · Couple",
  "ratings": {
    "overall": 4.5,
    "cleanliness": 5.0,
    "service": 5.0,
    "location": 4.5,
    "safety": 5.0,
    "valueForMoney": 4.0
  },
  "hotelSummary": {
    "hotelId": "99627",
    "startUrl": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews",
    "actualUrl": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews",
    "numberOfReviews": 107,
    "ratings": {
      "overall": 4.8,
      "cleanliness": 4.9,
      "service": 4.8,
      "location": 4.7,
      "safety": 4.9,
      "valueForMoney": 4.6
    }
  }
}
```

#### Accommodation Summary Record (`recordType: "summary"`):

```json
{
  "recordType": "summary",
  "hotelSummary": {
    "hotelId": "99627",
    "startUrl": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews",
    "actualUrl": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews",
    "numberOfReviews": 107,
    "ratings": {
      "overall": 4.8,
      "cleanliness": 4.9,
      "service": 4.8,
      "location": 4.7,
      "safety": 4.9,
      "valueForMoney": 4.6
    }
  }
}
```

> ℹ️ LekkeSlaap uses a **5-point rating scale** (1.0 to 5.0). Ratings above 4.5 represent top-tier guest satisfaction. Each review features both an aggregate guest score and granular sub-category ratings (cleanliness, service, location, safety, and value for money) alongside management feedback.

***

## 🌍 Ideal Use Cases

Perfect for:

- **Hotel & lodge reputation monitoring** — Continuously track guest sentiment, overall scores, and emerging complaints across South African safari lodge and hospitality portfolios
- **Travel SEO & destination content** — Extract authentic traveler feedback from Cape Town, Kruger National Park, Garden Route, and Drakensberg destinations to enrich regional travel guides and FAQ sections
- **AI/LLM training & NLP datasets** — Build multilingual hospitality fine-tuning datasets with authentic guest comments and management response pairs from Southern Africa
- **Sentiment analysis & aspect mining** — Automatically categorize guest feedback into operational dimensions such as cleanliness, staff friendliness, location accessibility, and safety
- **Market intelligence & regional benchmarking** — Compare property ratings and review volumes across competitive travel corridors (Western Cape, Mpumalanga, KwaZulu-Natal, Namibia)
- **Revenue management & pricing correlation** — Analyze how seasonal score variations, review freshness, and traveler demographics correlate with accommodation rates and occupancy
- **OTA & metasearch integration** — Ingest structured review feeds into travel comparison engines, booking aggregators, and hospitality software tools
- **Reputation management platforms** — Feed customer experience dashboards with instant alerts on negative reviews, safety concerns, and response tracking
- **Hospitality analytics dashboards** — Create automated PowerBI, Tableau, or Looker Studio reporting pipelines for property managers, safari operators, and hospitality investors
- **Customer experience & safety research** — Isolate review sentiment by safety and value-for-money metrics to prioritize security investments and amenity upgrades

***

## 🚀 Integrations

**Platforms:**

- Apify API & Console (Cloud-managed execution)
- Python SDK (`apify-client`)
- Node.js SDK
- JavaScript / TypeScript
- Go SDK
- Java SDK

**Workflows:**

- Make.com (Integromat)
- Zapier
- Google Sheets
- Airtable
- Slack notifications
- Discord webhooks
- Custom REST webhooks

**Data Warehouses:**

- Google BigQuery
- Snowflake
- Amazon Redshift
- AWS S3 (Parquet / JSONL)
- Azure Data Lake
- Airbyte & Fivetran pipelines

**AI/ML:**

- LangChain & LlamaIndex
- OpenAI / GPT-4o / Claude
- Hugging Face Transformers
- Custom NLP & aspect-based sentiment pipelines

**Export Formats:**

- JSON (default structured objects)
- CSV (flat spreadsheet export)
- Excel (XLSX)
- XML
- Parquet (columnar storage for big data)

***

## ⚡ Reliability & Performance

**Technical Stack:**

- Python 3.13+ with modern asynchronous event-driven architecture
- Intelligent pagination and robust ID-based review traversal
- Automatic request retries with exponential backoff and jitter
- Smart browser impersonation for consistent protocol handshakes
- Proxy support with rotating residential and datacenter proxy pools
- Memory-efficient streaming of dataset items directly to Apify storage
- Graceful exception recovery on network timeouts and transient server errors

**Optimized for:**

- High-throughput production workloads across hundreds of properties
- Low-latency data extraction with balanced concurrency controls
- Incremental scheduled runs with date cutoff filters
- Long-term pipeline stability without manual session maintenance

***

## 📊 Data Quality

**Included Features:**

- ✅ **Strict URL Validation**: Rejects invalid query links or non-accommodation URLs to prevent wasted compute credits
- ✅ **Date Normalization**: Standardizes review publication dates to ISO formats (`YYYY-MM-DD`)
- ✅ **Sub-Category Score Mapping**: Accurately maps category evaluations (cleanliness, service, location, safety, value for money)
- ✅ **Host Response Tracking**: Connects property management replies directly with guest reviews
- ✅ **Whitespace & HTML Sanitization**: Decodes HTML entities and removes irregular spacing or invisible formatting characters
- ✅ **Deduplication Safeguards**: Prevents duplicate review emission during multi-page pagination traverses

***

## 👨‍💻 About the Author

Created by **[knagymate](https://apify.com/knagymate)** — specialized in high-performance, enterprise-ready Apify Actors for:

- Hotel & travel review scraping
- SEO-optimized datasets
- AI-ready structured data
- Production-grade integrations

**Need custom solutions?**

- Enterprise scraping setups
- Private Actor modifications
- Custom integrations & webhooks
- Data pipeline optimization

👉 Contact via Apify marketplace.

***

## ⭐ Support & Feedback

If this Actor helps your project:

- ⭐ **Star** this repository on GitHub
- 💬 **Leave a review** on the Apify marketplace
- 📧 **Report issues** or request new features

Your feedback helps improve this tool for the community!

# Actor input Schema

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

One or more full LekkeSlaap accommodation detail or reviews URLs.

## `maxReviewsPerHotel` (type: `integer`):

Maximum number of reviews to scrape per accommodation. Set to 0 or leave empty for unlimited.

## `cutoffDate` (type: `string`):

Only include reviews published on or after this date. Format: YYYY-MM-DD. Leave empty to scrape all reviews.

## `sortBy` (type: `string`):

Order reviews by publication date or rating.

## `alwaysReturnSummary` (type: `boolean`):

Include summary record even if no reviews are found matching the criteria.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews"
    }
  ],
  "maxReviewsPerHotel": 100,
  "sortBy": "newestFirst",
  "alwaysReturnSummary": true
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        {
            "url": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews"
        }
    ],
    "maxReviewsPerHotel": 100,
    "sortBy": "newestFirst",
    "alwaysReturnSummary": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("knagymate/lekkeslaap-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 = {
    "startUrls": [{ "url": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews" }],
    "maxReviewsPerHotel": 100,
    "sortBy": "newestFirst",
    "alwaysReturnSummary": True,
}

# Run the Actor and wait for it to finish
run = client.actor("knagymate/lekkeslaap-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 '{
  "startUrls": [
    {
      "url": "https://www.lekkeslaap.co.za/accommodation/klipdrift-sands-bush-camp/reviews"
    }
  ],
  "maxReviewsPerHotel": 100,
  "sortBy": "newestFirst",
  "alwaysReturnSummary": true
}' |
apify call knagymate/lekkeslaap-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,knagymate/lekkeslaap-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/Fw9lK7ezq4FN0hK9t/builds/Je8iivVW4kIFHt1vp/openapi.json
