# Local Lead Qualifier (`digitals-lab/local-lead-qualifier`) Actor

Qualify OSM or supplied local businesses using first-party web evidence.

- **URL**: https://apify.com/digitals-lab/local-lead-qualifier.md
- **Developed by:** [URPSM](https://apify.com/digitals-lab) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 qualified leads

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 Lead Qualifier

Qualify OpenStreetMap-discovered or user-supplied local businesses with bounded, first-party website evidence.

Use `mode: "osm"` with a full city and one of `cafe`, `restaurant`, `bakery`, `hairdresser`, or `mode: "list"` with 1–50 `{name, websiteUrl}` businesses. A name alone is allowed but is not externally searched. The two modes use the same qualification logic. Example: `{"mode":"list","businesses":[{"name":"The Louvre Museum","websiteUrl":"https://www.louvre.fr/en"}],"maxResults":1}`. No Google Maps, Instagram, inferred email, personal contacts, sales prediction, or guaranteed coverage.

Each dataset row contains provenance, website status, observed generic company email/phone and first-party social links, evidence score (0–100), not-observed signals and caveats. This is not a measure of purchase intent. Download `lead-pack.zip` for UTF-8 BOM CSV, JSON report, manifest, and import README. `REPORT.md` and `REPORT.html` provide aggregate summaries; `stats.json` records counts/errors. For OSM runs, credit © OpenStreetMap contributors (https://www.openstreetmap.org/copyright), ODbL. Derived database reuse may require share-alike beyond attribution.

Limits: 50 attempted businesses, 3 public HTML pages/site, 1 MiB/page, 180 seconds, one bounded city lookup and Overpass query. Robots denial and network failures do not prove the business is absent. No login, paywall, CAPTCHA bypass or paid proxy. Public OSM services may rate-limit or be unavailable. Use is subject to https://operations.osmfoundation.org/policies/nominatim/ and https://wiki.openstreetmap.org/wiki/Overpass_API. Local runs cost no Apify platform usage; platform costs depend on the user's run settings and are not estimated here.

FAQ: Why is a score zero? No supported first-party evidence was observed within the crawl limits. Why no email? Named contacts and addresses not published on company pages are omitted. Why empty? The bounded discovery query may have no eligible tagged businesses or a source may be unavailable; inspect `stats.json`.

# Actor input Schema

## `mode` (type: `string`):

OSM city discovery or supplied business list.

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

Full city name and country for OSM discovery; leave empty in list mode.

## `category` (type: `string`):

Exact OSM category; leave empty in list mode.

## `businesses` (type: `array`):

List-mode company names and/or first-party public websites; no personal contacts.

## `maxResults` (type: `integer`):

Hard maximum of attempted unique businesses in the dataset.

## `maxPagesPerSite` (type: `integer`):

Maximum first-party HTML pages including the landing page.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout, subject to the overall run deadline.

## Actor input object example

```json
{
  "mode": "list",
  "maxResults": 20,
  "maxPagesPerSite": 2,
  "requestTimeoutSecs": 10
}
```

# Actor output Schema

## `leads` (type: `string`):

No description

## `stats` (type: `string`):

No description

## `report` (type: `string`):

No description

## `reportMarkdown` (type: `string`):

No description

## `reportHtml` (type: `string`):

No description

## `leadPack` (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("digitals-lab/local-lead-qualifier").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("digitals-lab/local-lead-qualifier").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 digitals-lab/local-lead-qualifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digitals-lab/local-lead-qualifier"
        }
    }
}
```

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/BypvKMpubpzbUgQr6/builds/IuONuacaSyrLEhHC7/openapi.json
