# BC Physician Billings: MSP Blue Book Practitioner Payments (`newgentalent/bc-msp-practitioner-payments`) Actor

Every physician and practitioner paid by the British Columbia Medical Services Plan (MSP Blue Book), fiscal years 2014/2015 to 2024/2025: name, amount paid in CAD, fiscal year, full payment history, change from the previous year and years listed. Filter by year, name and amount.

- **URL**: https://apify.com/newgentalent/bc-msp-practitioner-payments.md
- **Developed by:** [NewGenTalent](https://apify.com/newgentalent) (community)
- **Categories:** Lead generation, Jobs, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## BC Physician Billings: MSP Blue Book Practitioner Payments

The MSP Blue Book lists every physician and practitioner paid by the British Columbia Medical Services Plan, with the amount paid each fiscal year. This actor returns eleven years of it, 2014/2015 to 2024/2025, about 13,000 names a year, with the full payment history of each name so you can see who is growing, who is new and who has stopped billing.

**[Input](https://apify.com/newgentalent/bc-msp-practitioner-payments/input-schema) | [Output](https://apify.com/newgentalent/bc-msp-practitioner-payments/output-schema) | [Pricing](https://apify.com/newgentalent/bc-msp-practitioner-payments/pricing) | [Examples](https://apify.com/newgentalent/bc-msp-practitioner-payments/examples)**

### What you get

- Name, split into last name and first names.
- Fiscal year and amount paid by MSP in Canadian dollars.
- Previous year amount and the change in percent.
- Years listed, first year listed and the amount for every year.
- Organizations such as health authorities flagged, and left out by default.

Each record can carry these 15 fields. A field the source does not publish comes back as `null` or an empty list.

| Field | Description |
|---|---|
| `name` | Name as published (last name, first names) |
| `last_name` | Last name |
| `first_names` | First and middle names |
| `is_organization` | True for organizations |
| `fiscal_year` | Fiscal year (April to March) |
| `amount_cad` | Amount paid by MSP in the year, CAD |
| `previous_year_amount_cad` | Amount in the previous fiscal year, CAD |
| `change_pct` | Change from the previous year, percent |
| `years_listed` | Fiscal years this name appears in the Blue Book |
| `first_year_listed` | First fiscal year listed |
| `payment_history` | Amount per fiscal year |
| `province` | BC |
| `country` | Canada |
| `source` | Source |
| `observed_at` | When the record was read |

### Input and filters

- Fiscal years (default: the latest).
- Name search.
- Minimum and maximum amount.
- Include or leave out organizations.
- Sort by highest amount, biggest growth or name.

Example input:

```json
{
  "fiscalYears": [
    "2024/2025"
  ],
  "minAmount": 500000,
  "maxResults": 30
}
```

### Use cases

- Physician recruiters finding active, high-volume doctors in British Columbia.
- Medical device, pharma and practice software sales teams sizing practices.
- Clinic buyers and analysts tracking practice growth over a decade.
- Journalists and researchers studying public health spending.

### Coverage and freshness

Fiscal years 2014/2015 to 2024/2025 as published by the Government of British Columbia, about 132,000 yearly payment lines. New years are picked up automatically when the province publishes them.

### Pricing

You pay $0.015 per record returned plus $0.003 per run start. A run that finds nothing charges no records. Users on the free Apify plan get up to 10 records per run. The actor stops when your spending limit is reached.

### Data and privacy

The Blue Book is published by the Government of British Columbia every year. The actor returns names and amounts exactly as published: no addresses, birth dates or ID numbers. You are responsible for using the data under the laws that apply to you.

### FAQ

**Is the amount the doctor's income?**

No. It is the total MSP paid for services billed under that name in the year, before overhead and expenses.

**Why are some names organizations?**

MSP also pays health authorities, labs and clinics. They are left out unless you turn on Include organizations.

**Are emails or phones included?**

No. The Blue Book publishes names and amounts only.

### Run it through the Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/newgentalent~bc-msp-practitioner-payments/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"fiscalYears": ["2024/2025"], "minAmount": 500000, "maxResults": 30}'
```

# Actor input Schema

## `fiscalYears` (type: `array`):

For example 2024/2025 or 2023/2024. Leave empty for the latest year.

## `names` (type: `array`):

Part of a name, last name first, for example Smith or Nguyen, Anh.

## `minAmount` (type: `integer`):

Keep payments of at least this much in the year.

## `maxAmount` (type: `integer`):

Keep payments of at most this much in the year.

## `includeOrganizations` (type: `boolean`):

Also return health authorities and other organizations paid by MSP.

## `sort` (type: `string`):

Order of the results.

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

Free Apify plans are capped at 10 per run.

## Actor input object example

```json
{
  "fiscalYears": [
    "2024/2025"
  ],
  "includeOrganizations": false,
  "sort": "amount_desc",
  "maxResults": 30
}
```

# Actor output Schema

## `results` (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 = {
    "fiscalYears": [
        "2024/2025"
    ],
    "maxResults": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("newgentalent/bc-msp-practitioner-payments").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 = {
    "fiscalYears": ["2024/2025"],
    "maxResults": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("newgentalent/bc-msp-practitioner-payments").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 '{
  "fiscalYears": [
    "2024/2025"
  ],
  "maxResults": 30
}' |
apify call newgentalent/bc-msp-practitioner-payments --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,newgentalent/bc-msp-practitioner-payments"
        }
    }
}
```

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/cDq87IQ4yhFdCwq63/builds/bjSV1kdgk6SPaAHcT/openapi.json
