# WhatClinic Clinic Scraper (`muhammadafzal/whatclinic-clinic-scraper`) Actor

Find and export public WhatClinic clinic listings by specialty, treatment, country, region, or city. Get clinic names, profile URLs, addresses, contact details, ServiceScore, reviews, treatments, and pricing text.

- **URL**: https://apify.com/muhammadafzal/whatclinic-clinic-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 clinic returneds

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/actors/running/actors-in-store.md#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

## WhatClinic.com Clinic Scraper

Scrape public WhatClinic.com directory pages and clinic profiles into structured records for healthcare market research, clinic discovery, lead research, and location/treatment comparisons.

### Input

Pass a WhatClinic directory, treatment, or profile URL in `startUrls`, or generate a directory URL with `category`, `country`, `region`, `city`, and optional `treatment`. The prefilled input targets dentists in Istanbul.

```json
{
  "startUrls": [{ "url": "https://www.whatclinic.com/dentists/turkey/istanbul" }],
  "maxResults": 25,
  "maxPages": 3
}
```

### Output

Each dataset item contains `name`, `profileUrl`, `sourceUrl`, `address`, `phone`, `website`, `serviceScore`, `reviewCount`, `reviews`, `treatments`, `pricingText`, `description`, `imageUrl`, and `scrapedAt`. Missing public values are `null` or empty arrays.

### Pricing

| Event | Price |
|---|---:|
| Actor start | $0.00005 per run |
| Clinic returned | $0.001 per unique clinic |

The result event is automatically charged for each default-dataset item. A 25-clinic run has an event-charge maximum of $0.02505, excluding any separately configured platform usage.

### Reliability and limitations

The actor uses a bounded Playwright crawl with one concurrent session, deduplication, and limited retries. It detects common access-challenge pages and writes a `SUMMARY` record with an explicit `Blocked`, `Empty`, or `Completed` outcome. Public page markup and optional fields can change; the actor does not bypass CAPTCHAs, login walls, or other access controls.

This actor collects public clinic/business information. Use it only for lawful purposes, respect WhatClinic’s terms and applicable privacy/data-protection rules, and keep request rates reasonable.

### What data does WhatClinic.com Clinic Scraper return?

| Field | Type | Description |
|---|---|---|
| `name` | string | Clinic name |
| `profileUrl` | string | Profile URL |
| `sourceUrl` | string | Source URL |
| `category` | string or null | Category |
| `address` | string or null | Address |
| `phone` | string or null | Phone |
| `website` | string or null | Website |
| `email` | string or null | Email |
| `serviceScore` | number or null | WhatClinic ServiceScore |
| `reviewCount` | integer or null | Review count |
| `reviews` | array | Reviews |
| `treatments` | array | Treatments |
| `pricingText` | string or null | Pricing text |
| `description` | string or null | Description |
| `imageUrl` | string or null | Image URL |
| `scrapedAt` | string | Scraped at |

### Use cases

- Build public prospect lists and qualify organizations or professionals before responsible outreach.
- Run a one-off research job and export the structured result as JSON, CSV, Excel, XML, or RSS from Apify.
- Schedule the same input to monitor changes over time and send completed datasets to a webhook or integration.
- Feed schema-shaped records into a database, spreadsheet, BI tool, or AI workflow with the source URL retained for verification.

### Run WhatClinic.com Clinic Scraper with the Apify API

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('muhammadafzal/whatclinic-clinic-scraper').call({
  "startUrls": [
    {
      "url": "https://www.whatclinic.com/dentists/turkey/istanbul"
    }
  ],
  "category": "dentists",
  "country": "turkey",
  "region": "",
  "city": "istanbul",
  "treatment": "",
  "maxResults": 25,
  "maxPages": 3
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

You can also run the Actor from Apify Console, schedules, webhooks, the REST API, Make, Zapier, n8n, or the hosted Apify MCP server.

### Support

When reporting a problem, include the **Actor run ID**, a redacted input, the expected result, and a small public example URL when applicable. Do not post API tokens, cookies, credentials, or personal data in an issue.

### Frequently asked questions

#### Can I schedule WhatClinic.com Clinic Scraper?

Yes. Use an Apify schedule to run the same saved input at a chosen interval, then connect a webhook or integration to process the dataset when the run finishes.

#### How should I test a new input?

Begin with the prefilled example or a small limit. Confirm that the output fields, source coverage, runtime, and live charges match your workflow before increasing the scope.

#### How do I export the results?

Open the run's default dataset in Apify Console and export JSON, CSV, Excel, XML, or RSS. Applications can retrieve the same records through the Apify API client or REST dataset endpoint.

#### Can an AI agent call this Actor?

Yes. Add `muhammadafzal/whatclinic-clinic-scraper` through the hosted Apify MCP server or call it through the API. The Actor's input and dataset schemas help agents construct valid requests and interpret returned records.

# Actor input Schema

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

Use when you have a WhatClinic directory, treatment, or clinic profile URL. Example: https://www.whatclinic.com/dentists/turkey/istanbul.

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

Use to generate a directory URL when startUrls is empty. Example: dentists. Do not include a full URL.

## `country` (type: `string`):

Use with category to generate a directory URL. Example: turkey. Use the WhatClinic URL slug.

## `region` (type: `string`):

Optional WhatClinic region slug. Example: istanbul-province.

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

Optional city slug. Example: istanbul.

## `treatment` (type: `string`):

Optional treatment slug to target treatment listings. Example: routine-dental-examination.

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

Maximum unique clinics to return. Default 25; allowed 1–500.

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

Maximum directory/profile pages to visit. Default 3; allowed 1–25.

## `includeReviews` (type: `boolean`):

Reserved for profile review extraction when exposed publicly. Default true.

## `maxReviewsPerClinic` (type: `integer`):

Maximum reviews per clinic when available. Default 5; allowed 0–25.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy configuration for authorized access when direct requests are blocked.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.whatclinic.com/dentists/turkey/istanbul"
    }
  ],
  "category": "dentists",
  "country": "turkey",
  "region": "",
  "city": "istanbul",
  "treatment": "",
  "maxResults": 25,
  "maxPages": 3,
  "includeReviews": true,
  "maxReviewsPerClinic": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `summary` (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://www.whatclinic.com/dentists/turkey/istanbul"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/whatclinic-clinic-scraper").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://www.whatclinic.com/dentists/turkey/istanbul" }] }

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/whatclinic-clinic-scraper").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://www.whatclinic.com/dentists/turkey/istanbul"
    }
  ]
}' |
apify call muhammadafzal/whatclinic-clinic-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/whatclinic-clinic-scraper"
        }
    }
}

```

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/dqkn8dPw07l8kkGa8/builds/CXBRPw2FEvpGcPrhA/openapi.json
