# Psychology Today Therapist (`moving_beacon-owner1/psychology-today-therapist`) Actor

Psychology Today Therapist Scraper is an Apify Actor that extracts therapist listings from the Psychology Today directory for any U.S. city and state. It can return individual profiles with contact details or aggregate counts by ZIP code, providing structured data for research and analysis.

- **URL**: https://apify.com/moving\_beacon-owner1/psychology-today-therapist.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:** Developer tools, Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## Psychology Today Therapist Scraper

An [Apify actor](https://docs.apify.com/platform/actors) that scrapes the
[Psychology Today](https://www.psychologytoday.com/us/therapists) therapist
directory for a given US city and state.

### Modes

- **`profiles`** — one record per therapist card: name, phone, profile URL, ZIP,
  and the full location line.
- **`count`** — aggregates the results into a count of therapists per ZIP code.

### Output fields

**profiles mode**

| Field | Description |
| --- | --- |
| `name` | Therapist / practice name |
| `phone` | Phone number (if shown) |
| `profileUrl` | Link to the therapist's Psychology Today profile |
| `zipCode` | ZIP parsed from the location line |
| `location` | Full location text |
| `city`, `state` | Echo of the search inputs |

**count mode**

| Field | Description |
| --- | --- |
| `zipCode` | ZIP code |
| `therapistCount` | Number of therapists found in that ZIP |
| `city`, `state` | Echo of the search inputs |

### Input

| Field | Type | Default | Notes |
| --- | --- | --- | --- |
| `city` | string | — | **Required.** e.g. `Austin` |
| `state` | string | — | **Required.** 2-letter, e.g. `TX` |
| `mode` | string | `profiles` | `profiles` or `count` |
| `maxPages` | integer | `3` | Result pages to walk |
| `maxRecords` | integer | `200` | Cap for `profiles` mode (ignored in `count`) |
| `engine` | string | `curl_cffi` | `auto` / `curl_cffi` / `requests` |
| `requestDelaySeconds` | integer | `2` | Politeness delay between requests |
| `proxyConfiguration` | object | Apify Proxy | **Use RESIDENTIAL** — site is Cloudflare-protected |

#### Example input

```json
{
    "city": "Austin",
    "state": "TX",
    "mode": "profiles",
    "maxPages": 3,
    "maxRecords": 150,
    "engine": "curl_cffi",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}
```

#### Example output (profiles)

```json
{
    "name": "Jane Doe, LCSW",
    "phone": "(512) 555-0100",
    "profileUrl": "https://www.psychologytoday.com/us/therapists/jane-doe-austin-tx/123456",
    "zipCode": "78701",
    "location": "Austin, TX 78701",
    "city": "Austin",
    "state": "TX"
}
```

# Actor input Schema

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

City to search, e.g. 'Austin'. Spaces are fine (e.g. 'San Antonio').

## `state` (type: `string`):

US state abbreviation, e.g. 'TX', 'CA', 'NY'.

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

'profiles' lists individual therapists; 'count' returns the number of therapists per ZIP code.

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

How many result pages to walk (each has multiple therapist cards).

## `maxRecords` (type: `integer`):

Stop after this many therapists in 'profiles' mode. Ignored in 'count' mode.

## `engine` (type: `string`):

'curl\_cffi' uses browser-TLS impersonation and clears most Cloudflare challenges — recommended for this site. 'auto' uses it when available.

## `requestDelaySeconds` (type: `integer`):

Minimum seconds between requests (politeness / anti-blocking). A small random jitter is added.

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

Apify Proxy settings. RESIDENTIAL groups are strongly recommended — Psychology Today uses Cloudflare and blocks datacenter IPs.

## Actor input object example

```json
{
  "city": "Austin",
  "state": "TX",
  "mode": "profiles",
  "maxPages": 3,
  "maxRecords": 200,
  "engine": "curl_cffi",
  "requestDelaySeconds": 2,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "city": "Austin",
    "state": "TX",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/psychology-today-therapist").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 = {
    "city": "Austin",
    "state": "TX",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/psychology-today-therapist").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "city": "Austin",
  "state": "TX",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call moving_beacon-owner1/psychology-today-therapist --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=moving_beacon-owner1/psychology-today-therapist",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/Z4hRs6jKA61MZl3jf/builds/hNQLV2lcBo9fEgGwb/openapi.json
