# Local Review Snippet Extractor (`junipr/local-review-snippet-extractor`) Actor

Extract visible review snippets, ratings, dates, reviewer display names, source pages, and common review themes from public local business pages

- **URL**: https://apify.com/junipr/local-review-snippet-extractor.md
- **Developed by:** [junipr](https://apify.com/junipr) (community)
- **Categories:** SEO tools, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.50 / 1,000 review source page scanneds

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

## Local Review Snippet Extractor

Extract visible review snippets, ratings, dates, reviewer display names, response signals, and transparent text themes from public business pages.

### What you get

- Fetch only supplied public review or business page URLs; arbitrary review-site crawling is disabled.
- Extract repeated visible review blocks and JSON-LD Review entities.
- Normalize ratings, publication dates, reviewer display names, owner-response signals, and source selectors.
- Filter by visible minimum rating and cap snippets per page and source count.
- Assign transparent keyword themes such as service, speed, quality, price, and communication.

### Input

```json
{
  "startUrls": [
    "https://example.com/business/reviews"
  ],
  "reviewPageUrls": [],
  "allowedDomains": [
    "example.com"
  ],
  "maxPages": 3,
  "maxDepth": 0,
  "maxSources": 3,
  "businessName": "Example Plumbing",
  "minRating": 1,
  "maxReviewsPerPage": 10,
  "extractThemes": true,
  "includeReviewerDisplayNames": true,
  "includeEvidence": true,
  "includeRawSnapshots": false,
  "requestDelayMs": 250,
  "timeoutMs": 15000,
  "userAgentMode": "standard",
  "maxChargeUsd": 15,
  "includeReport": true
}
```

Use `htmlInputs` when you already have source HTML or need deterministic recurring analysis. URL runs accept normal public HTTP(S) pages. Private-network and unsupported URL targets are rejected.

### Dataset output

Each dataset item is a complete, schema-defined record. Fields that are not present in the source remain `null` rather than being guessed.

```json
{
  "sourceUrl": "https://example.com/business/reviews",
  "recordType": "review_snippet",
  "issueCode": "local_review_snippet_extractor_review_extracted",
  "reviewSource": "example.com",
  "businessName": "Example Plumbing",
  "ratingValue": 5,
  "ratingScale": 5,
  "reviewDate": "2026-06-01",
  "reviewerDisplayName": "Taylor",
  "reviewText": "Fast service and clear communication.",
  "reviewTheme": "service",
  "sentimentLabel": "positive",
  "responseFound": true,
  "evidenceSelector": "review-block:1"
}
```

### Reports

A successful run can write:

- `local-review-snippet-extractor-summary-report.md`
- `local-review-snippet-extractor-records.csv`
- `local-review-snippet-extractor-issues.json`
- `local-review-snippet-extractor-evidence-samples.json`
- `local-review-snippet-extractor-run-metadata.json`

Reports include row counts, issue severities, evidence references, recommendations, and the input fields consumed by the run.

### Pricing and cost controls

This actor uses pay-per-event pricing with Apify platform usage pass-through off:

- actor-start — $0.01000 per run
- review-source-page-scanned — $0.00650 per page
- review-snippet-extracted — $0.00295 per snippet
- review-theme-emitted — $0.00295 per theme
- audit-report-generated — $0.08000 per report

The default `maxChargeUsd` is $15. The runtime checks the local budget and the Apify charge result before every paid dataset item. If either limit is reached, it stops before emitting unpaid output and writes billing diagnostics to key-value storage.

### Safe crawling behavior

- Public HTTP(S) sources only.
- Private-network, localhost, and unsupported protocol targets are rejected.
- `allowedDomains`, `maxPages`, actor-specific caps, `maxDepth`, `timeoutMs`, and `requestDelayMs` bound discovery.
- Supplied HTML is processed without an external request.
- Protected or authenticated sources are outside the supported public-data scope.

### Limitations

- Only publicly visible review text is extracted; no accounts, private profiles, or hidden reviewer data are accessed.
- Missing ratings, dates, and display names remain null rather than being inferred.
- Keyword themes are transparent evidence labels, not model-generated sentiment claims.

### Common use cases

- Export source-linked review evidence.
- Find negative reviews without a visible owner response.
- Compare visible ratings and themes across supplied sources.

# Actor input Schema

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

Public business or review pages containing visible review snippets.

## `sitemapUrls` (type: `array`):

Optional public sitemap URLs for user-selected review sources.

## `htmlInputs` (type: `array`):

Optional source-backed public review page snapshots.

## `allowedDomains` (type: `array`):

Optional domain allowlist for supplied URLs.

## `maxPages` (type: `integer`):

Maximum pages fetched or analyzed.

## `maxDepth` (type: `integer`):

Reserved discovery depth; supplied URL mode does not crawl arbitrary review-site links.

## `maxSources` (type: `integer`):

Maximum supplied review pages fetched.

## `includeEvidence` (type: `boolean`):

Include visible review text excerpts in output rows.

## `includeRawSnapshots` (type: `boolean`):

Reserve raw snapshots in run artifacts when enabled.

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

Delay between public HTTP requests in milliseconds.

## `timeoutMs` (type: `integer`):

Per-request timeout in milliseconds.

## `userAgentMode` (type: `string`):

Normal HTTP user-agent profile.

## `reviewPageUrls` (type: `array`):

Additional public review pages merged with startUrls.

## `businessName` (type: `string`):

Optional public business name used to label extracted snippets.

## `minRating` (type: `number`):

Exclude review snippets with a lower visible rating; unrated visible snippets remain eligible.

## `maxReviewsPerPage` (type: `integer`):

Maximum visible snippets emitted from each source page.

## `extractThemes` (type: `boolean`):

Assign transparent keyword-based themes from observed review text.

## `includeReviewerDisplayNames` (type: `boolean`):

Include only display names already visible on the public source page.

## `maxChargeUsd` (type: `number`):

Maximum estimated PPE spend before a graceful stop.

## `includeReport` (type: `boolean`):

Write review evidence and theme reports to key-value storage.

## Actor input object example

```json
{
  "startUrls": [
    "https://example.com/"
  ],
  "sitemapUrls": [],
  "htmlInputs": [],
  "allowedDomains": [],
  "maxPages": 1,
  "maxDepth": 0,
  "maxSources": 5,
  "includeEvidence": true,
  "includeRawSnapshots": false,
  "requestDelayMs": 250,
  "timeoutMs": 15000,
  "userAgentMode": "standard",
  "reviewPageUrls": [],
  "businessName": "",
  "minRating": 1,
  "maxReviewsPerPage": 10,
  "extractThemes": true,
  "includeReviewerDisplayNames": true,
  "maxChargeUsd": 15,
  "includeReport": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `report` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("junipr/local-review-snippet-extractor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("junipr/local-review-snippet-extractor").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 '{}' |
apify call junipr/local-review-snippet-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,junipr/local-review-snippet-extractor"
        }
    }
}

```

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/scbHohVhnBq5EUzNJ/builds/J15yqoQBWW2G8M7GE/openapi.json
