# Psychologytoday Scraper - Therapist, Psychiatrist Leads (`voyn/psychologytoday-scraper-therapist-psychiatrist-leads`) Actor

Scrape PsychologyToday by state (or all) for therapists, psychiatrists, groups, and treatment-rehab. Returns name, title, address, phone, image, profile URL, locations, insurance/qualifications, specialties, client focus and emails extracted from the therapist’s site.

- **URL**: https://apify.com/voyn/psychologytoday-scraper-therapist-psychiatrist-leads.md
- **Developed by:** [Voyn Software](https://apify.com/voyn) (community)
- **Categories:** Lead generation, Automation, Agents
- **Features:** Full permissions
- **Stats:** 166 total users, 5 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 4.19 out of 5 stars

## Pricing

from $10.00 / 1,000 each therapist data

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?

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

## PsychologyToday Scraper (Apify Actor)

Scrape PsychologyToday listings by category and US state with optional details enrichment. Fast Cheerio parsing for list/profile pages, and **Playwright only** for opening the PT “website” interstitial and extracting therapist-site **emails**.

***

### Features

- Categories: **therapists**, **psychiatrists**, **groups**, **treatment-rehab**
- Scope: one or many **US states**, or all states
- Modes: **List-only** or **List + Details**
- Captures on list page: name, title, address, phone, image, profile URL, short description
- Captures on details page:
  - long description
  - **PT website URL** (psychologytoday_website)
  - **Therapist website URL** (website)
  - **emails** from therapist website (**cleaned**, de-duplicated, params removed, dummy/sentry excluded)
  - insurance, qualifications
  - top specialties, expertise, client focus, treatment approach
  - **locations** (from `.address-line`, joined by commas)
- Clean, comma-separated list fields (no section headers)

> **Note**: Playwright is used **only** on the `/profile/{id}/website` page to click the interstitial **“Still here? This way”** link and load the therapist’s actual website.

***

### Example Input

```json
{
  "category": "psychiatrists",
  "states": ["alabama", "new-jersey"],
  "scrapeMode": "LIST_AND_DETAILS",
  "maxItems": 500,
  "maxPagesPerState": 50,
  "minDelayMs": 1500,
  "maxDelayMs": 3000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### Example Output

```json
[{
    "name": "John Doe",
    "title": "Psychiatric Nurse Practitioner, PMHNP-C, FNP-BC",
    "address": "Online Only",
    "shortDescription": "Our interaction a relaxed, safe session where we carefully assess your circumstances, diagnosis, and the treatment options. My goal for you is to know how to proceed. You are not alone; there are quick steps you can take (and includes processing feelings) to start feeling better.",
    "image": "https://photos.psychologytoday.com/xxxx/3/320x400.jpeg",
    "detailsUrl": "https://www.psychologytoday.com/us/psychiatrists/xxxx/000000",
    "phone": "(315) 000-0000",
    "longDescription": "Our interaction a relaxed, safe session where we carefully assess your circumstances, diagnosis, and the treatment options. My goal for you is to know how to proceed. You are not alone; there are quick steps you can take (and includes processing feelings) to start feeling better. I run a small practice, and each client receives the time and care they deserve. I tailor my services to each person. And ensure your privacy with no other staff or office clients. Our first session will be in-depth. I'd like the opportunity to work with you. Adler wrote, \"When 'I' is replaced by 'We,' illness becomes wellness\". I'm here and ready to help.",
    "psychologytoday_website": "https://www.psychologytoday.com/us/profile/000000/website",
    "website": "https://care.headway.co/providers/john-doe",
    "emails": "email1@xxx.co,email2@hotmail.com",
    "insurances": "Aetna,Anthem,Blue Cross,Blue Shield,BlueCross and BlueShield,Cigna and Evernorth,Empire Blue Cross Blue Shield,Quest Behavioral Health",
    "qualifications": "Verified by Psychology Today License: New York / 401606 Lynn M Hale Education and Years In Practice Upstate Medical University, Syracuse NY, Graduated 2013",
    "topSpecialties": "Coping Skills,Anxiety,Women's Issues",
    "expertise": "Coping Skills,Anxiety,Women's Issues,Addiction,Alcohol Use,Bipolar Disorder,Cancer,Chronic Illness,Chronic Pain,Depression,Drug Abuse,Dual Diagnosis,Family Conflict,Geriatric and Seniors,Grief,Life Transitions,Medication Management,Men's Issues,Peer Relationships,Relationship Issues,Self Esteem,Sleep or Insomnia,Stress,Substance Use,Veterans",
    "clientFocus": "Age Children (6 to 10),Preteen,Teen,Adults,Elders (65+) Participants Individuals Age Children (6 to 10),Preteen,Teen,Adults,Elders (65+) Participants Individuals",
    "treatmentApproach": "Cognitive Behavioral (CBT),Mindfulness-Based (MBCT),Motivational Interviewing,Person-Centered,Strength-Based",
    "locations": "La Fayette, NY 13084"
  }]
```

# Actor input Schema

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

Choose which type of directory to scrape from PsychologyToday.

## `states` (type: `array`):

Pick states to scrape. Leave empty to scrape all 50 states.

## `popularFilters` (type: `array`):

Optional Psychology Today popular filters.

## `gender` (type: `array`):

Optional provider gender filters.

## `availability` (type: `array`):

Optional availability and session mode filters.

## `specialties` (type: `array`):

Optional specialty filters.

## `insurance` (type: `array`):

Optional insurance filters.

## `typesOfTherapy` (type: `array`):

Optional treatment approach filters.

## `faith` (type: `array`):

Faith

## `age` (type: `array`):

Age

## `genderAndSexuality` (type: `array`):

Gender and sexuality

## `ethnicity` (type: `array`):

Ethnicity

## `language` (type: `array`):

Language

## `providerType` (type: `array`):

Provider type

## `scrapeMode` (type: `string`):

Choose whether to scrape only list/search pages or also visit individual detail pages.

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

Maximum number of profiles to scrape across all states.

## `maxPagesPerState` (type: `integer`):

Maximum number of paginated list pages to process per state.

## `minDelayMs` (type: `integer`):

Minimum delay in milliseconds between requests, used for polite crawling.

## `maxDelayMs` (type: `integer`):

Maximum delay in milliseconds between requests, used for polite crawling.

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

Proxy configuration to use for the scraper. Recommended: Apify Proxy.

## Actor input object example

```json
{
  "category": "therapists",
  "states": [
    "new-york"
  ],
  "popularFilters": [],
  "gender": [],
  "availability": [],
  "specialties": [],
  "insurance": [],
  "typesOfTherapy": [],
  "faith": [],
  "age": [],
  "genderAndSexuality": [],
  "ethnicity": [],
  "language": [],
  "providerType": [],
  "scrapeMode": "LIST_ONLY",
  "maxItems": 10,
  "maxPagesPerState": 50,
  "minDelayMs": 150,
  "maxDelayMs": 300,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("voyn/psychologytoday-scraper-therapist-psychiatrist-leads").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 = { "proxyConfiguration": { "useApifyProxy": False } }

# Run the Actor and wait for it to finish
run = client.actor("voyn/psychologytoday-scraper-therapist-psychiatrist-leads").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 '{
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call voyn/psychologytoday-scraper-therapist-psychiatrist-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,voyn/psychologytoday-scraper-therapist-psychiatrist-leads"
        }
    }
}
```

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/7wZe19XJ4Ldoo0p2C/builds/HsctauiqGIFh3dPXJ/openapi.json
