# Blue Cross Blue Shield MA Doctor Scraper - $0.90/1000 Providers (`scrapeunblocker/bluecrossma-doctors-scraper`) Actor

Scrape the Blue Cross Blue Shield of Massachusetts Find a Doctor directory by plan network, specialty and ZIP: in-network providers with NPI, practice address, phone, accepting new patients, PCP flag, languages, ratings and distance. $0.90 per 1000 providers.

- **URL**: https://apify.com/scrapeunblocker/bluecrossma-doctors-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 providers

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

## Blue Cross Blue Shield MA Doctors Scraper

Scrape the **Blue Cross Blue Shield of Massachusetts "Find a Doctor" directory** (BCBS MA, member.bluecrossma.com) as clean, structured JSON. Pick a **plan network** (PPO or EPO, HMO Blue, Network Blue, Medicare PPO Blue and the other 26 BCBS MA networks), a **specialty** and a **ZIP code**, and get every **in-network provider** the directory lists around it: the provider's **name**, **NPI**, specialty, **practice locations** with **street address and phone**, whether they are **accepting new patients**, the **PCP flag**, **languages**, **gender**, **ratings**, telehealth, Blue Distinction and board-certification **awards**, and the **distance** from the ZIP code. Run many networks, specialties and ZIP codes in one go and page through all results. Turn on **provider profiles** to also get **every practice location** of each provider (the search shows only one) with **office hours**, languages, wheelchair access and **hospital affiliations**, plus the provider's **education** and telehealth options. No BCBS login, API key or proxies to set up.

### Features

- **In-network by plan** - providers the directory lists for one BCBS MA plan network, so you know who is in which network.
- **Any specialty** - family and internal medicine physicians, nurse practitioners, physician assistants, specialists, community health centers - exactly as the directory names them.
- **Around any ZIP code** - a radius of 1-100 miles (default 25), or a `lat,lng` point instead of a ZIP.
- **All pages** - 20 providers per page, up to 500 pages per search, in the directory's own order (`position`).
- **Combinations in one object** - any field can be a list: one network x 3 specialties x 10 ZIP codes is one input line.
- **The directory's full provider record** - `id`, `npi_identifier`, `providerNumber`, `type`, `name`, `specialty`, `languages`, `gender`, `locations` (practice name, address, phone, accepting new patients, amenities, awards), `distance`, `reviews`, `isPCP`, `offersVirtualCare`, `virtualOnly`, `category` / `qualityLabel` and more.
- **Flat fields for spreadsheets** - `practiceName`, `address`, `city`, `state`, `postalCode`, `phone`, `acceptingNewPatients` from the first practice location, and `distanceMiles` as a number.
- **Provider profiles (optional)** - `allLocations` with every practice location of the provider (name, address, city, state, ZIP, phone, accepting new patients, coordinates, office hours by day, languages, wheelchair access, hospital and group affiliations), `locationCount`, `education`, `hospitalAffiliations`, `telehealth`, and the directory's full `profile` object.
- **Helpful errors** - a specialty the directory does not know comes back with its closest directory names; an unknown network with the full list of networks. Not billed.

### Use cases

- **Network adequacy and provider-network research** - how many in-network PCPs or specialists a plan has around each ZIP code.
- **Healthcare lead generation** - practices, addresses and phone numbers of in-network providers by specialty and area.
- **Referral and care-navigation tools** - find in-network doctors accepting new patients near a member.
- **Provider data validation** - compare your provider roster (by NPI) with what the BCBS MA directory shows.
- **Market analysis** - compare networks (PPO vs HMO) by specialty and region.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searches` | array of objects | one example search | Each object: `network`, `specialty`, `zip` and optionally `radius`. Use `networkId` / `specialtyId` instead of names, `geo` (`"lat,lng"`) instead of `zip`. Any field can be a list - every combination is searched. |
| `maxPagesPerSearch` | integer | `1` | Pages per search, 20 providers each (1-500). Stops earlier when the search has fewer pages. |
| `maxItems` | integer | no cap | Optional cap on providers for the whole run. |
| `includeProfiles` | boolean | `false` | Add each provider's profile: all practice locations, hours, education, hospitals. One extra call per provider, charged separately. |
| `radius` | integer | `25` | Miles around the ZIP code for searches without their own `radius` (1-100). |
| `concurrency` | integer | `1` | Searches run at the same time (1-2). |

Names must match the directory exactly (case does not matter). The plan networks are: `PPO OR EPO`, `PPO OR EPO WITH HOSPITAL CHOICE COST SHARE FEATURE`, `PPO BLUE OPTIONS V.5`, `PREFERRED BLUE PPO OPTIONS V.5`, `HMO BLUE`, `HMO BLUE SELECT`, `HMO BLUE OPTIONS V.5`, `HMO BLUE WITH HOSPITAL CHOICE COST SHARE FEATURE`, `HMO BLUE NEW ENGLAND`, `HMO BLUE NEW ENGLAND OPTIONS V.5`, `HMO BLUE NEW ENGLAND WITH HOSPITAL CHOICE COST SHARE FEATURE`, `NETWORK BLUE`, `NETWORK BLUE SELECT`, `NETWORK BLUE OPTIONS V.5`, `NETWORK BLUE WITH HOSPITAL CHOICE COST SHARE FEATURE`, `NETWORK BLUE NEW ENGLAND`, `NETWORK BLUE NEW ENGLAND OPTIONS V.5`, `NETWORK BLUE NEW ENGLAND WITH HOSPITAL CHOICE COST SHARE FEATURE`, `ADVANTAGE BLUE (EPO)`, `ADVANTAGE BLUE (EPO) WITH HOSPITAL CHOICE COST SHARE FEATURE`, `BLUE HIGH PERFORMANCE`, `MEDICARE PPO BLUE`, `MEDICARE HMO BLUE`, `MANAGED BLUE FOR SENIORS`, `MEDEX`, `MEDEX CHOICE`, `MEDEX WITH EYEMED AND TRUHEARING`, `INDEMNITY`, `DENTAL BLUE`, `DENTAL BLUE PPO`. Specialty examples: `Family Medicine - Physician`, `Family Medicine - Nurse Practitioner`, `Internal Medicine - Physician`, `Internal Medicine - Nurse Practitioner`, `Community Health Center`. Not sure of a specialty's exact name? Run it with your best guess - the `ERRORS` record lists the directory's closest names.

#### Example input

```json
{
  "searches": [
    {
      "network": "HMO BLUE",
      "specialty": ["Internal Medicine - Physician", "Family Medicine - Nurse Practitioner"],
      "zip": ["01001", "02139"],
      "radius": 10
    },
    { "network": "PPO OR EPO", "specialty": "Family Medicine - Physician", "zip": "02116" }
  ],
  "maxPagesPerSearch": 5
}
```

### Output

One dataset item per provider (shortened):

```json
{
  "id": 1002553292,
  "npi_identifier": "1194838086",
  "providerNumber": "70010000J42531",
  "type": "P",
  "name": "Richard J Donahue, MD",
  "specialty": "Family Medicine - Physician",
  "languages": "English",
  "gender": "M",
  "locations": [
    {
      "id": 31015277231,
      "name": "Personal Health Md Llc",
      "address": "745 Boylston Street Suite 600, Boston, MA 02116",
      "phone": "6175851500",
      "acceptingNewPatients": "OX",
      "amenities": [{ "type": "Offers Telehealth consultations" }],
      "awards": [{ "name": "BLUE DISTINCTION TOTAL CARE", "awardDetails": [{ "name": "Total Care" }] }]
    }
  ],
  "distance": "0.20861044003022347",
  "reviews": { "overallRating": 0.0, "percentRecommended": 0, "totalRatings": 0 },
  "isPCP": true,
  "offersVirtualCare": true,
  "virtualOnly": false,
  "category": "2",
  "qualityLabel": "Category 2",
  "distanceMiles": 0.209,
  "practiceName": "Personal Health Md Llc",
  "address": "745 Boylston Street Suite 600, Boston, MA 02116",
  "city": "Boston",
  "state": "MA",
  "postalCode": "02116",
  "phone": "6175851500",
  "acceptingNewPatients": "OX",
  "locationCount": 1,
  "search": "PPO OR EPO / Family Medicine - Physician / 02116 / 25 mi",
  "searchNetwork": "PPO OR EPO",
  "searchNetworkId": "311005002",
  "searchSpecialty": "Family Medicine - Physician",
  "searchSpecialtyId": "311000037",
  "searchZip": "02116",
  "searchGeo": "42.350571,-71.076869",
  "searchRadius": 25,
  "searchTotalCount": 709,
  "page": 1,
  "position": 1
}
```

#### With provider profiles

With `includeProfiles` on, each item also carries the provider's profile. The search lists one practice location per provider; the profile has all of them (in our samples about one provider in four has two or more). Example (shortened):

```json
{
  "name": "Jinzy George, MD",
  "npi_identifier": "1386210847",
  "specialty": "Internal Medicine - Physician",
  "locationCount": 5,
  "allLocations": [
    {
      "locationId": 31014001231,
      "name": "Caring Health Center Inc - Main St",
      "address": "1049 Main Street, Springfield, MA - 01103",
      "city": "Springfield",
      "state": "MA",
      "postalCode": "01103",
      "phone": "4137391100",
      "acceptingNewPatients": "OX",
      "latitude": 42.099699,
      "longitude": -72.584778,
      "hours": {
        "Monday": "8:30 AM-7:00 PM",
        "Tuesday": "8:30 AM-7:00 PM",
        "Wednesday": "8:30 AM-7:00 PM",
        "Thursday": "8:30 AM-7:00 PM",
        "Friday": "8:30 AM-7:00 PM",
        "Saturday": "9:00 AM-3:00 PM"
      },
      "extendedHours": true,
      "weekendHours": false,
      "languages": ["English"],
      "adaAccessibility": ["Parking", "Restroom"],
      "hospitalAffiliations": ["Baystate Medical Center"],
      "groupAffiliations": ["Caring Health Center Inc - Main St"]
    },
    { "locationId": 31014002331, "name": "Caring Health Center", "address": "473-477 Sumner Avenue, Springfield, MA - 01108", "...": "..." }
  ],
  "education": ["Medical School: Kasturba Medical College - India, 2009"],
  "hospitalAffiliations": ["Baystate Medical Center"],
  "telehealth": [],
  "profile": {
    "providerId": "p1025099023",
    "matchedLocation": "31014001231",
    "name": "Jinzy George, MD",
    "education": [{ "name": "Kasturba Medical College - India, 2009", "type": "Medical School" }],
    "locations": [{ "locationId": 31014001231, "hours": { "days": [{ "name": "Monday", "hours": "8:30 AM-7:00 PM" }] }, "specializations": [{ "name": "Internal Medicine - Physician", "isCertified": "Board Certified" }], "...": "..." }],
    "...": "..."
  }
}
```

`profile` is the directory's own profile object, passed through as it is (board certification per location, identifiers, ratings, disclaimers and more). Office hours are empty for practices that do not publish them. A provider whose profile cannot be fetched is still returned without one, listed in `ERRORS`, and not charged for the profile.

`acceptingNewPatients`, `category` and `qualityLabel` are the directory's own values, passed through as they are. The key-value store also has:

- `SEARCHES` - every search as the directory resolved it (network and specialty ids, the ZIP code's coordinates), its `totalCount` and `totalPages`, how many providers were collected and whether more pages are left (`hasMore`).
- `ERRORS` - searches that found no providers, names the directory does not know (with `candidates` or `knownNetworks`) and searches that could not be completed, with the reason. These are not charged.

### Pricing

- **$0.90 per 1000 providers** - one dataset item per provider, plus Apify's standard actor start event.
- **Provider profiles: $1.00 per 1000 profiles** - only when *Add provider profiles* is on, and only for providers that come back with their profile.
- Searches that find nothing, unknown names, failed calls and failed profiles are free.

One page (20 providers) costs about $0.018; all 709 family-medicine physicians in the PPO or EPO network within 25 miles of Boston's 02116 (36 pages) cost about $0.64; with profiles about $1.35.

### FAQ

**Do I need a Blue Cross account, API key or proxies?** No. Requests go through [ScrapeUnblocker](https://www.scrapeunblocker.com), which handles the directory's bot protection.

**How fast is it?** A page usually takes a few seconds. The first page after a quiet spell can take a minute or two while the connection warms up; the actor waits and retries on its own.

**How fast are profiles?** About 1-2 seconds per provider when the directory sessions are warm, so a page of 20 providers with profiles takes about half a minute. Profiles share the same small session pool as the searches.

**Why is concurrency limited to 2?** The directory is read through a small pool of sessions, so a run reads one or two pages at a time. A few dozen pages per minute is the realistic pace.

**How fresh is the data?** Every run reads the directory live.

**Is scraping this directory legal?** The actor reads the public provider directory, with no login, and only the information the directory shows to anyone. Make sure your use complies with the site's terms and the law where you are.

### Support

Found a problem or need another field? Open an issue on the actor's Issues tab - we answer within a few days.

# Actor input Schema

## `searches` (type: `array`):

One object per search: "network" (plan network exactly as the directory lists it, e.g. "PPO OR EPO", "HMO BLUE", "MEDICARE PPO BLUE"), "specialty" (exactly as the directory lists it, e.g. "Family Medicine - Physician", "Internal Medicine - Physician", "Family Medicine - Nurse Practitioner"), "zip" (5-digit ZIP code) and optionally "radius" (miles, 1-100). Instead of names you can give "networkId" / "specialtyId", and "geo" ("lat,lng") instead of "zip". Any field can be a list - the search then runs every combination, e.g. one network x 3 specialties x 10 ZIP codes. A name the directory does not know is reported in the ERRORS record with the directory's closest names (not billed).

## `maxPagesPerSearch` (type: `integer`):

Result pages to collect per search, 20 providers each (1-500). The actor stops earlier when a search has fewer pages.

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

Optional cap on providers for the whole run, across all searches. Leave empty for no cap (the run is still limited by Max pages per search and by your maximum charge).

## `includeProfiles` (type: `boolean`):

Open each provider's directory profile and add it: ALL practice locations (the search lists only one) with address, phone, office hours, accepting new patients, languages, wheelchair access and hospital affiliations, plus education and telehealth. One extra call per provider, so slower (about 1-2 s per provider when warm), and charged as a separate 'provider profile' event - only for providers that come back with their profile.

## `radius` (type: `integer`):

Search radius around the ZIP code for searches that do not set their own "radius" (1-100). The directory's default is 25 miles.

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

Searches run at the same time (1-2). Pages of one search are read one after another.

## Actor input object example

```json
{
  "searches": [
    {
      "network": "PPO OR EPO",
      "specialty": "Family Medicine - Physician",
      "zip": "02116"
    }
  ],
  "maxPagesPerSearch": 1,
  "includeProfiles": false,
  "radius": 25,
  "concurrency": 1
}
```

# Actor output Schema

## `items` (type: `string`):

Collected providers, one per row

## `searches` (type: `string`):

Each search as the directory resolved it, with its total providers and pages and how many were collected

## `errors` (type: `string`):

Searches that found no providers, names the directory does not know (with its closest names) and calls that did not complete (not billed)

# 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 = {
    "searches": [
        {
            "network": "PPO OR EPO",
            "specialty": "Family Medicine - Physician",
            "zip": "02116"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/bluecrossma-doctors-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 = { "searches": [{
            "network": "PPO OR EPO",
            "specialty": "Family Medicine - Physician",
            "zip": "02116",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/bluecrossma-doctors-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 '{
  "searches": [
    {
      "network": "PPO OR EPO",
      "specialty": "Family Medicine - Physician",
      "zip": "02116"
    }
  ]
}' |
apify call scrapeunblocker/bluecrossma-doctors-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/bluecrossma-doctors-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/VEaJJDdTm6oC0qL4P/builds/ubvFe8h3XzmaOswpJ/openapi.json
