# Local Citation Audit — NAP Consistency Checker (`s-r/local-citation-audit`) Actor

Audit one US business across Google Maps and Yellow Pages. Compare name, address, phone and website with field-level evidence, branch matching and explicit warnings for missing or unavailable listings.

- **URL**: https://apify.com/s-r/local-citation-audit.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** SEO tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 places

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

## Local Citation Audit — NAP Consistency Checker

Run a local citation audit for one US business across Google Maps and Yellow Pages. Get the observed name, address, phone and website for each confirmed listing, with field comparisons and a separate report describing both source checks.

A citation can exist with an outdated phone number or a different website. This Actor keeps those differences visible. It first identifies the branch using its street address, unit, city and state together with independent name, phone or website evidence. It then compares each field separately. A listing does not need to agree with every supplied value to appear in the results.

### Local citation audit workflow

Supply the business name and its full US street address. Add the phone and website when you want to compare those canonical values. The Actor checks both directories and returns at most one confirmed listing from each. It does not choose the first search result simply because the name looks similar. Nearby businesses, another branch and unrelated fallback results are excluded when branch identity cannot be established.

Read the dataset for the original listing values. Read `local.json` for the complete audit, including sources that were unavailable or returned no matching listing. A field mismatch describes a difference in the observed data. It does not establish which source is correct, whether a business has moved or whether a phone number still works.

### Input

`business_name` and `address` are required. Include the house number, street, unit when applicable, city and state. A ZIP code is recommended. When the address cannot identify the city and state unambiguously, provide `city` and `state` separately. Those fields and `postal_code` must agree with information already present in the address.

```json
{
  "business_name": "Fred Smith Plumbing & Heating",
  "address": "1674 1st Ave, New York, NY 10128",
  "phone": "(212) 744-1300",
  "website": "http://www.fredsmithplumbing.com/"
}
```

This input comes from an actual business listing captured during development. It is an example of observed source data rather than a declaration that the website is the canonical truth. Directory values can change after an example is captured.

The optional `phone` accepts a valid US number and an extension. The optional `website` accepts a public HTTP or HTTPS URL or a domain. `country_code` defaults to `US`; other countries are rejected in this version. Submit one branch per run. Batch fields, directory URLs and custom search controls are not supported.

### Output

Each dataset row represents one confirmed directory listing. Core fields include `source`, `fetched_at`, `platform`, `name`, `place_id`, `url` and `listing_key`. Address components, phone, website, categories, rating, review count and business coordinates appear only when actually observed. The directory listing URL is kept separate from the business website. A search area's coordinates are never supplied as business coordinates.

Every row also includes `identity_match`, `comparisons` and `warnings`. Each comparison has a status and an explanation. `match` means normalized values agree. `mismatch` means comparable values differ. `unknown` means a source value is absent or cannot be compared safely. `not_provided` means the optional canonical phone or website was omitted. Missing source fields remain visible in warnings even when the corresponding customer field was omitted.

Normalization handles letter case, spacing, basic punctuation, common street abbreviations, US state names, phone formatting and an initial `www` in a website hostname. House numbers, units and phone extensions retain their meaning. Different subdomains remain different. Website comparison uses the hostname rather than page paths; it does not visit either website or verify ownership.

#### Example row

This is one row as it was delivered by a real run for `Katz's Delicatessen`. `fetched_at`, the
normalized values inside each comparison, and the address components, categories and rating are
left out for length; everything shown is copied unchanged. The Yellow Pages listing is the same
branch, and the name is not written the same way:

```json
{
  "source": "local-citation-audit",
  "platform": "yellowpages",
  "place_id": "482439941",
  "name": "Katz's Deli",
  "url": "https://www.yellowpages.com/new-york-ny/mip/katzs-deli-482439941",
  "listing_key": "yellowpages:482439941",
  "address": "205 E Houston St, New York, NY 10002",
  "phone": "(212) 254-2246",
  "website": "http://katzsdelicatessen.com",
  "identity_match": {
    "signals": ["address", "phone", "website"],
    "reason": "The same street address, unit, city and state plus independent name, phone or website evidence identify this branch"
  },
  "comparisons": {
    "name": {
      "status": "mismatch",
      "reason": "The observed values differ after normalization; this does not prove a directory error",
      "input_value": "Katz's Delicatessen",
      "source_value": "Katz's Deli"
    },
    "address": {
      "status": "match",
      "reason": "The normalized values agree",
      "input_value": "205 E Houston St, New York, NY, 10002",
      "source_value": "205 E Houston St, New York, NY, 10002, US"
    },
    "phone": {
      "status": "match",
      "reason": "The normalized values agree",
      "input_value": "(212) 254-2246",
      "source_value": "(212) 254-2246"
    },
    "website": {
      "status": "match",
      "reason": "The normalized values agree",
      "input_value": "https://katzsdelicatessen.com/",
      "source_value": "http://katzsdelicatessen.com"
    }
  },
  "warnings": ["yellowpages: name differs from the supplied business details"]
}
```

Both directories delivered a listing in that run, the name field disagreed, and the report summary
came back `inconsistent`. The Google Maps row for the same run reported `match` for all four fields.

#### Complete report in local.json

The key-value store record `local.json` contains the supplied business, exactly two source observations, cross-source comparisons, a summary and all warnings. Each observation states whether a request was attempted, how many usable pages and unique candidates were checked, which delivered listings belong to it and whether coverage stopped before another page could be checked.

Source states distinguish `found`, `not_found`, `no_match`, `ambiguous`, `blocked`, `timeout`, `rate_limited` and `incomplete`. Unavailable sources are not reported as missing citations. An ambiguous search does not produce an invented listing row. Search coverage is bounded and never described as a complete directory inventory.

The summary is `inconsistent` when a supplied canonical field or a cross-source comparison has a proven difference. It is `consistent` only when both source checks are complete and every required comparison agrees. Other cases are `inconclusive`. Cross-source phone and website comparisons still run when the customer omits those optional canonical fields. This can expose a disagreement that a comparison against customer input alone would miss.

### Use cases

A local SEO agency runs one audit per client location before it starts a citation campaign, so it
knows which directory already carries an outdated phone number instead of copying it onward. A
franchise operator checks that every branch publishes the same trading name, address and website in
both directories, and keeps the rows where the branch is spelled differently. A business that moved
or changed its number runs the audit twice — once per directory it cares about — and reads the rows
that still show the previous values. A reputation or listings tool embeds the Actor per location and
receives the same report structure every time, including the case where a directory has no listing
for that branch.

One run covers one branch. Larger inventories are a loop over branches, which keeps every run's
report readable and every row charged on its own.

### What else exists

Citation platforms such as BrightLocal's Citation Tracker or Whitespark scan a long list of
directories, track them over time and bill per location per month. They answer "where does this
business appear across the whole web, and what changed since last week". This Actor answers a
narrower question: for one US branch, what do Google Maps and Yellow Pages show right now, do those
values agree with each other and with the details you supplied, and which of the two checks could not
be completed. It runs per input rather than on a subscription, and only delivered listings count as
results.

Free web form checkers compare two strings you paste in. This Actor searches the directory itself,
establishes branch identity from the address plus independent name, phone or website evidence
instead of trusting a similar name, and separates "no listing found" from "the source could not be
checked", so an empty answer is never presented as a proven absence.

### Pricing

Only confirmed, delivered dataset listings count as result events. The report, source observations, warnings, rejected candidates and unsuccessful requests do not add result events. A run without a confirmed listing has zero result events. Any applicable platform usage charges remain governed by Apify's current pricing.

One business can deliver up to two listings, one per directory. The configured dataset cap for non-paying accounts is ten rows, which does not reduce this single-business audit. Read the current Actor pricing panel for event prices before running larger workloads; this documentation does not promise a subscription rate or introduce a separate credit system.

### Limits and interpretation

This version supports US branches and the two named directories. It does not build citations, edit listings, retrieve reviews, crawl business websites or monitor changes over time. It does not check Yelp. Results describe what could be observed during the bounded search, and source availability can vary. A partial run keeps its confirmed listings and explains the missing evidence in the report.

### FAQ

#### Does no matching listing prove the business is absent from a directory?

No. It means no confirmed branch appeared in the checked search results. The report states the checked range and any unexamined continuation. A blocked or unfinished source check leaves listing presence unknown.

#### Can I leave out the phone and website?

Yes. Name and an unambiguous US street address are enough to start. Optional customer comparisons become `not_provided`, while observed directory values and comparisons between the two directories remain available.

#### Why can a confirmed listing have a mismatched business name?

A street address and matching phone or website can identify the same branch despite a name variant. The Actor preserves the actual source name and reports the difference. It does not silently rewrite directory values to match the input.

#### Where is the report when no dataset rows are returned?

The complete audit remains in `local.json` when valid input starts an audit, including total source failure. Invalid input is rejected before source observations are created. Inspect the run errors and report together to distinguish an empty checked search from an unavailable source.

# Actor input Schema

## `business_name` (type: `string`):

Business name for one US branch.

## `address` (type: `string`):

Full US street address, including city and state; include the unit and ZIP when available.

## `phone` (type: `string`):

Optional canonical US phone number, with an optional extension.

## `website` (type: `string`):

Optional canonical public HTTP(S) URL or domain; compared by exact hostname without www.

## `country_code` (type: `string`):

Only US locations are supported.

## `city` (type: `string`):

US city; required with state when the address is not unambiguous. Must agree with the address.

## `state` (type: `string`):

US state code or full state name; must agree with the address.

## `postal_code` (type: `string`):

US ZIP or ZIP+4 as text; must agree with the address.

## Actor input object example

```json
{
  "business_name": "Fred Smith Plumbing & Heating",
  "address": "1674 1st Ave, New York, NY 10128",
  "phone": "(212) 744-1300",
  "website": "http://www.fredsmithplumbing.com/",
  "country_code": "US"
}
```

# Actor output Schema

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

One row per confirmed directory listing.

## `local` (type: `string`):

Both source checks, comparisons and warnings, including runs without confirmed listings.

# 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 = {
    "business_name": "Fred Smith Plumbing & Heating",
    "address": "1674 1st Ave, New York, NY 10128",
    "phone": "(212) 744-1300",
    "website": "http://www.fredsmithplumbing.com/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/local-citation-audit").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 = {
    "business_name": "Fred Smith Plumbing & Heating",
    "address": "1674 1st Ave, New York, NY 10128",
    "phone": "(212) 744-1300",
    "website": "http://www.fredsmithplumbing.com/",
}

# Run the Actor and wait for it to finish
run = client.actor("s-r/local-citation-audit").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 '{
  "business_name": "Fred Smith Plumbing & Heating",
  "address": "1674 1st Ave, New York, NY 10128",
  "phone": "(212) 744-1300",
  "website": "http://www.fredsmithplumbing.com/"
}' |
apify call s-r/local-citation-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/local-citation-audit"
        }
    }
}
```

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/NOkwPv090h9G8PoJM/builds/sI8YdhyJwXQc4Z8kn/openapi.json
