# US Healthcare Clinic Contact, Schema & Chain Detector (`thanh81646/apify-us-healthcare-clinic-contact-enricher`) Actor

Enrich US medical, dental, audiology & veterinary clinic websites with MX-verified emails, phones, social links, Schema.org metadata, and automatic Corporate Chain / DSO exclusion flags.

- **URL**: https://apify.com/thanh81646/apify-us-healthcare-clinic-contact-enricher.md
- **Developed by:** [Trung Thanh Tran](https://apify.com/thanh81646) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 clinic enricheds

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

## US Healthcare Clinic Contact, Schema & Chain Detector (Apify Actor)

High-speed **Python Async (`httpx` + `BeautifulSoup4` + `DNS/MX Verification`) Apify Actor** purpose-built for healthcare B2B sales teams, medical device manufacturers, dental/audiology wholesalers, SaaS SDRs, and healthcare recruiting agencies targeting **genuinely independent US private practices**.

Given any list of clinic URLs (from Google Maps scrapers, NPI registries, or CRM exports), this Actor extracts **DNS/MX-verified emails, E.164 US phone numbers, 5-platform social links (`FB, IG, LI, YT, X`), `Schema.org` `MedicalOrganization` metadata**, and automatically classifies every domain into **`Verified Independent`**, **`Chain Excluded`**, or **`Needs Review`** by screening against **38+ major US Dental DSOs, Audiology retail chains, Veterinary consolidators, and Private-Equity MSOs**.

***

### ✨ Key Engineering Capabilities

- **Automatic Corporate Chain / DSO / Franchise Screening:** Identifies national DSOs, retail franchises, and private-equity MSOs (*Aspen Dental, Heartland Dental, Pacific Dental Services, Miracle-Ear, Beltone, HearingLife, Banfield, VCA, BluePearl, The Joint Chiropractic, ATI PT, One Medical, MyEyeDr*, franchise legal disclosures, and `15+` store-locator footprints).
- **DNS / MX Deliverability Check:** Strips telemetry/asset false positives (`sentry.io`, `wixpress.com`, `.png`, `.webp`) and performs async DNS `MX` + `A` resolution on every discovered email domain (`mx_dns_valid_emails`).
- **Smart Internal Subpage Crawling:** Automatically inspects `/contact`, `/about`, `/our-practice`, and `/locations` pages (up to 2 internal subpages per clinic) to maximize front-desk/owner contact capture.
- **Schema.org Healthcare Entity Extraction:** Parses `MedicalOrganization`, `Dentist`, `Physician`, `VeterinaryCare`, `MedicalClinic`, and `LocalBusiness` JSON-LD `@graph` blocks (`address`, `medicalSpecialty`, `aggregateRating`, `parentOrganization`).
- **256 MB Lightweight Execution:** Pure async `httpx` architecture — zero headless Chromium bloat, enriching hundreds of clinics per minute for pennies.

***

### 📥 Input Configuration

```json
{
  "startUrls": [
    { "url": "https://pacificaudiology.com/" },
    { "url": "https://brooklyndentalstudio.com/" },
    { "url": "https://www.banfield.com/" }
  ],
  "followContactPages": true,
  "excludeChainsFromOutput": false,
  "customChainKeywords": "",
  "maxConcurrency": 5
}
```

***

### 📤 Sample Output Record

```json
{
  "url": "https://pacificaudiology.com/",
  "clinic_name": "Pacific Audiology Clinic",
  "specialty_category": "Audiology & Hearing Care",
  "ownership_status": "Verified Independent",
  "chain_confidence_score": 0.05,
  "chain_signals": [],
  "emails": ["info@pacificaudiology.com"],
  "mx_dns_valid_emails": ["info@pacificaudiology.com"],
  "phones": ["+1-503-292-8700"],
  "social_profiles": {
    "facebook": ["https://www.facebook.com/..."]
  },
  "medical_schema_types": ["LocalBusiness", "MedicalOrganization"],
  "pages_crawled": 3,
  "status_code": 200,
  "error": null
}
```

***

### 🛠️ Integration with n8n, Make.com & Python

#### 1. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("thanh81646/us-healthcare-clinic-contact-enricher").call(
    run_input={
        "startUrls": [
            {"url": "https://pacificaudiology.com/"},
            {"url": "https://brooklyndentalstudio.com/"},
        ],
        "excludeChainsFromOutput": True,
    }
)

for clinic in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(clinic["clinic_name"], "->", clinic["ownership_status"], clinic["mx_dns_valid_emails"])
```

#### 2. n8n Workflow (`Google Maps Scraper -> Clinic Chain Filter -> HubSpot / Lemlist`)

1. Trigger a Google Maps or NPI directory scrape in **n8n**.
2. Pass extracted clinic `website` URLs to the **Apify** node running `us-healthcare-clinic-contact-enricher` with `excludeChainsFromOutput: true`.
3. Route only **`Verified Independent`** practices with `mx_dns_valid_emails` directly into **HubSpot**, **Instantly**, **Smartlead**, or **Google Sheets**!

#### 3. Make.com Scenario

1. Watch new healthcare leads in **Airtable / Google Sheets**.
2. Call **Apify -> Run an Actor** (`us-healthcare-clinic-contact-enricher`) synchronously.
3. Update the lead status column with `ownership_status`, `specialty_category`, and `mx_dns_valid_emails`.

***

### 💼 Need Custom Healthcare Lead Scrapers, NPI Enrichers, or AI Automations?

Built and maintained by **Trung Thanh Tran** (*Python, Playwright, n8n & AI Automation Engineer*):

- 🟢 **Hire me on Upwork (Custom Healthcare Lead Lists, Scrapers & AI Pipelines):** [upwork.com/freelancers/trungthanhtrandev](https://www.upwork.com/freelancers/trungthanhtrandev)
- ⚡ **Order Fast-Turnaround Data & Scraping Gigs on Fiverr:** [fiverr.com/trungthnhtrn244](https://www.fiverr.com/trungthnhtrn244)
- 📦 **Download the Complete Python, AI & n8n Scraper Toolkit Pro (6 CLI Engines + 3 Blueprints):** [trungthanh16.gumroad.com/l/python-ai-automation-n8n-scraper-toolkit-pro](https://trungthanh16.gumroad.com/l/python-ai-automation-n8n-scraper-toolkit-pro)
- 💻 **GitHub Portfolio:** [github.com/Tthanh2k6](https://github.com/Tthanh2k6)

***

### ⚖️ Legal & Independence Disclaimer

**Nominative Fair Use — Public Non-Authenticated Factual Data Only:** This Actor is an independent software utility that processes exclusively publicly accessible, non-authenticated healthcare clinic web pages at the user's explicit direction. It does not access patient portals, Protected Health Information (PHI / HIPAA records), login walls, or technical access controls, nor does it store or resell proprietary databases. Any corporate healthcare, DSO, or veterinary brand names referenced in ownership classification rules (such as Aspen Dental, Heartland Dental, Banfield, VCA, etc.) are trademarks of their respective owners and are used strictly for descriptive identification purposes (*nominative fair use*). Users act as independent Data Controllers and are solely responsible for ensuring their target URLs, rate limits, and downstream outreach comply with applicable laws (including CAN-SPAM, TCPA, GDPR, and CCPA).

# Actor input Schema

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

List of US medical, dental, audiology, chiropractic, optometry, or veterinary clinic URLs to enrich and screen for corporate chain/DSO ownership.

## `maxItems` (type: `integer`):

Maximum number of clinic URLs to enrich in a single run (Free-tier Apify runs are capped at 25 results).

## `followContactPages` (type: `boolean`):

Automatically discover and inspect up to 2 internal Contact, About, or Locations pages per clinic domain to maximize email, phone, and ownership detection accuracy.

## `excludeChainsFromOutput` (type: `boolean`):

When enabled, clinics classified as 'Chain Excluded' are omitted from the output dataset so your CRM only receives independent practices.

## `customChainKeywords` (type: `string`):

Optional comma-separated brand names or private-equity MSO/DSO groups to flag as 'Chain Excluded' (e.g. 'SmileDirect, RegionaleCare').

## `maxConcurrency` (type: `integer`):

Maximum number of parallel async HTTP clinic requests.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://pacificaudiology.com/"
    },
    {
      "url": "https://brooklyndentalstudio.com/"
    },
    {
      "url": "https://www.banfield.com/"
    }
  ],
  "maxItems": 10,
  "followContactPages": true,
  "excludeChainsFromOutput": false,
  "customChainKeywords": "",
  "maxConcurrency": 5
}
```

# Actor output Schema

## `dataset` (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://pacificaudiology.com/"
        },
        {
            "url": "https://brooklyndentalstudio.com/"
        },
        {
            "url": "https://www.banfield.com/"
        }
    ],
    "maxItems": 10,
    "followContactPages": true,
    "excludeChainsFromOutput": false,
    "customChainKeywords": "",
    "maxConcurrency": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("thanh81646/apify-us-healthcare-clinic-contact-enricher").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://pacificaudiology.com/" },
        { "url": "https://brooklyndentalstudio.com/" },
        { "url": "https://www.banfield.com/" },
    ],
    "maxItems": 10,
    "followContactPages": True,
    "excludeChainsFromOutput": False,
    "customChainKeywords": "",
    "maxConcurrency": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("thanh81646/apify-us-healthcare-clinic-contact-enricher").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://pacificaudiology.com/"
    },
    {
      "url": "https://brooklyndentalstudio.com/"
    },
    {
      "url": "https://www.banfield.com/"
    }
  ],
  "maxItems": 10,
  "followContactPages": true,
  "excludeChainsFromOutput": false,
  "customChainKeywords": "",
  "maxConcurrency": 5
}' |
apify call thanh81646/apify-us-healthcare-clinic-contact-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thanh81646/apify-us-healthcare-clinic-contact-enricher"
        }
    }
}
```

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/RVhpd8I8d8bqxpyZs/builds/LiUPN44dpyv402Rhd/openapi.json
