# Local Business NAP Consistency QA (`checksmithcats/local-business-nap-consistency-qa`) Actor

Samples local-business scraper output for NAP completeness, duplicate clusters, phone and website signals, and sampled website reachability.

- **URL**: https://apify.com/checksmithcats/local-business-nap-consistency-qa.md
- **Developed by:** [Checksmith Cats](https://apify.com/checksmithcats) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / local business nap report generated

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Business NAP Consistency QA

Sample Google Maps or local-business scraper output for name-address-phone consistency before delivery, CRM import, or lead-list cleanup.

This Actor inspects sampled Apify dataset output or submitted JSON/CSV data and returns aggregate consistency signals without storing raw row values.

### Useful For

- Google Maps scraper outputs
- Local business lead lists
- Agency delivery checks
- CRM import preflights

### Signals

- Required NAP fields not observed
- Rows missing observed name, address, or phone fields
- Invalid-looking phone values
- Duplicate normalized name/address groups
- Reused phone, website, and address groups
- Opening-hours format-looking issues
- Website URL format and sampled reachability
- Sensitive-looking pattern counts

### Limits

This Actor does not independently check source pages, confirm complete Google Maps coverage, validate phone ownership, judge lead value, validate live email inboxes, or forecast sales results. It reports machine-detectable internal consistency signals in sampled output.

### Usage Controls

- `sampleLimit`: default 200 sampled rows, maximum 5,000
- Billing is based on sampled/reachable rows only; the 200-row default is the typical run basis.

### Related tools

- Scraped Dataset QA Preflight - Use when the dataset needs broader schema, duplicate, and sensitive-pattern checks first.
- Event / LocalBusiness Preflight - Use when local-business records are backed by public pages with JSON-LD markup.
- Apify Dataset Drift Monitor - Use when the NAP dataset should be watched for run-to-run drift.

### Minimal input

```json
{
  "items": [
    {
      "name": "Sample Cafe",
      "address": "1 Main Street",
      "phone": "+1 555 111 2222",
      "website": "https://example.com",
      "openingHours": "Mon-Fri 09:00-17:00"
    },
    {
      "name": "Sample Cafe",
      "address": "1 Main Street",
      "phone": "bad",
      "website": "not-a-url",
      "openingHours": "unknown"
    }
  ],
  "sampleLimit": 200,
  "websiteCheckLimit": 0,
  "countryHint": "US"
}
```

### API and scheduled use

Run the same validated input from Apify Console, the Actor API, CLI, schedules, or integrations. The run writes machine-readable findings to the default dataset and the complete report to the run storage.

### Common input errors

Start with the published example and keep `items`, `sampleLimit`, `websiteCheckLimit`, `countryHint` in the documented JSON shape. Malformed JSON, unsupported URL schemes, missing required values, and inputs above the stated limits are rejected rather than repaired silently.

# Actor input Schema

## `datasetId` (type: `string`):

Dataset ID to read via the Apify API. Provide exactly one source field; invalid combinations are rejected without a custom charge.

## `runId` (type: `string`):

Actor run ID. The QA resolves its default dataset ID.

## `apiToken` (type: `string`):

Optional token for private datasets or runs. Sent in the Authorization header only and not stored in reports.

## `items` (type: `array`):

Optional inline array of local-business item objects.

## `dataJson` (type: `string`):

Optional JSON array, or an object with an items array.

## `csvText` (type: `string`):

Optional CSV with a header row. Values are summarized as aggregate consistency signals.

## `sampleLimit` (type: `integer`):

Maximum number of rows to sample from the current dataset. Keep the default small for scheduled or exploratory runs.

## `websiteCheckLimit` (type: `integer`):

Maximum number of unique website URLs to fetch for reachability signals. Set 0 to skip.

## `countryHint` (type: `string`):

Optional short country hint such as US, JP, GB, or DE. Used only as report context.

## Actor input object example

```json
{
  "sampleLimit": 200,
  "websiteCheckLimit": 25
}
```

# 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("checksmithcats/local-business-nap-consistency-qa").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("checksmithcats/local-business-nap-consistency-qa").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 checksmithcats/local-business-nap-consistency-qa --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,checksmithcats/local-business-nap-consistency-qa"
        }
    }
}

```

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/Zxp64rBn3zUUZDcpm/builds/cLXfoYPzqfMJkS25T/openapi.json
