# Canada Healthcare Clinic Api (`hashem277/canada-healthcare-clinic-api`) Actor

Canada Dental & Healthcare Clinic API (RCDSO, CPSO, OCP)

- Unified Multi-Registry Schema: Normalizes RCDSO (dentists & dental clinics), CPSO (physicians & surgeons), and OCP (accredited pharmacies) into one consistent JSON structure.

- **URL**: https://apify.com/hashem277/canada-healthcare-clinic-api.md

- **Developed by:** [HASHEM ALSAGGAF](https://apify.com/hashem277) (community)

- **Features:** Limited permissions

- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks

- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 normalized provider or clinic records

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

## Canada Dental & Healthcare Clinic API (RCDSO, CPSO, OCP)

Search and verify licensed Ontario dentists (**RCDSO**), physicians (**CPSO**), and pharmacies (**OCP**) into one normalized JSON schema for **Clay**, **n8n**, healthcare SaaS, and **AI agents (MCP)**.

### Features

- **Unified Multi-Registry Schema:** Normalizes **RCDSO** (dentists & dental clinics), **CPSO** (physicians & surgeons), and **OCP** (accredited pharmacies) into one consistent JSON structure.
- **Two Modes:**
  - `search`: Filter by `query` (provider last name / pharmacy name), `city`, `postalCode`, or `specialty`.
  - `verify`: Batch-verify specific `registrationNumbers` for credentialing, onboarding, or CRM hygiene.
- **Compliance & Risk Signals:** Normalizes licence `status` (`active`, `inactive`, `suspended`, `revoked`, `expired`), disciplinary flags (`hasDisciplinaryAction`), terms/conditions (`hasTermsOrConditions`), and permits.
- **Pay-Per-Event (PPE) Ready:** Configured with `.actor/pay_per_event.json` (`actor-start` + `clinic-record-extracted` per verified record).

### Example Inputs

#### Search Mode

```json
{
  "registries": ["rcdso", "cpso", "ocp"],
  "mode": "search",
  "query": "Smith",
  "city": "Toronto",
  "activeOnly": true,
  "maxResultsPerRegistry": 25
}
```

> **Note for CPSO:** CPSO's register rejects overly broad city-only queries without a `query` (last name), `postalCode`, or `specialty` filter. Include at least one narrowing filter when querying `cpso`.

#### Verify Mode

```json
{
  "registries": ["rcdso", "cpso"],
  "mode": "verify",
  "registrationNumbers": ["501299", "141145"],
  "activeOnly": false
}
```

### Sample Output

```json
{
  "registry": "rcdso",
  "registryName": "Royal College of Dental Surgeons of Ontario",
  "province": "ON",
  "country": "CA",
  "entityType": "dentist",
  "licenseNumber": "501299",
  "status": "active",
  "rawStatus": "Member",
  "providerName": "Divya Patel",
  "clinicName": "Pearl Dental Studio",
  "specialty": "General Dentistry",
  "languages": [],
  "address": "2135 Lake Shore Blvd W, Toronto, M8V 0B3",
  "city": "Toronto",
  "postalCode": "M8V 0B3",
  "phone": null,
  "fax": null,
  "website": null,
  "hasDisciplinaryAction": false,
  "hasTermsOrConditions": false,
  "permits": [],
  "profileUrl": "https://www.rcdso.org/find-a-dentist/search-results/dentist?id=501299",
  "scrapedAt": "2026-11-16T21:40:00.000Z"
}
```

### Local Development

```bash
npm install
npm run typecheck
npm test
npm run build
```

### Publishing to Apify

```bash
npm install -g apify-cli
apify login
apify push
```

# Actor input Schema

## `registries` (type: `array`):

Select which Canadian healthcare regulatory registers to query.

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

Search by name/city/specialty or verify specific licence numbers.

## `query` (type: `string`):

Provider last name, clinic/pharmacy name, or keyword.

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

Optional Ontario city filter (e.g. Toronto, Ottawa, Mississauga).

## `postalCode` (type: `string`):

Optional Canadian postal code or 3-character FSA prefix (e.g. M5V).

## `specialty` (type: `string`):

Optional specialty filter (e.g. Orthodontics, Periodontics, Family Medicine).

## `registrationNumbers` (type: `array`):

Used in 'verify' mode: specific RCDSO, CPSO, or OCP registration numbers to verify.

## `activeOnly` (type: `boolean`):

When enabled, filters out inactive, retired, or revoked records.

## `includeDisciplinaryFlags` (type: `boolean`):

Include public disciplinary, terms/conditions, and sedation/facility permit indicators.

## `maxResultsPerRegistry` (type: `integer`):

Maximum normalized records to return per selected registry.

## `concurrency` (type: `integer`):

Maximum concurrent HTTP requests per registry.

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

Optional Apify Proxy settings (recommended for high-volume CPSO/RCDSO runs).

## Actor input object example

```json
{
  "registries": [
    "rcdso",
    "cpso",
    "ocp"
  ],
  "mode": "search",
  "query": "Dental",
  "city": "Toronto",
  "activeOnly": true,
  "includeDisciplinaryFlags": true,
  "maxResultsPerRegistry": 25,
  "concurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "query": "Dental",
    "city": "Toronto"
};

// Run the Actor and wait for it to finish
const run = await client.actor("hashem277/canada-healthcare-clinic-api").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 = {
    "query": "Dental",
    "city": "Toronto",
}

# Run the Actor and wait for it to finish
run = client.actor("hashem277/canada-healthcare-clinic-api").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 '{
  "query": "Dental",
  "city": "Toronto"
}' |
apify call hashem277/canada-healthcare-clinic-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hashem277/canada-healthcare-clinic-api"
        }
    }
}
```

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/copXd6f583ohwr7KJ/builds/HSMRLJyfLBOpE881h/openapi.json
