{
  "openapi": "3.0.1",
  "info": {
    "title": "Psychology Today Scraper - Therapist & Mental Health Leads",
    "description": "Scrape Psychology Today therapists, psychiatrists & treatment centers by city, state, ZIP or profile URL. Get names, credentials, license, phone, addresses, specialties, modalities, fees, insurance accepted & lead score.",
    "version": "0.1",
    "x-build-id": "1rpDMEnC9ojEqnYOG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~psychology-today-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-psychology-today-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~psychology-today-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-psychology-today-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~psychology-today-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-psychology-today-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Where to search. Use <code>City, ST</code> (<code>Austin, TX</code>, <code>New York, NY</code>), a 5-digit <code>ZIP</code> (<code>78701</code>), or a whole state (<code>Texas</code>, <code>CA</code> — discovers its biggest metros). Each location is combined with every specialty below.",
            "items": {
              "type": "string"
            }
          },
          "providerType": {
            "title": "Provider type",
            "enum": [
              "therapist",
              "psychiatrist",
              "treatment-center",
              "support-group"
            ],
            "type": "string",
            "description": "Which Psychology Today directory to scrape.",
            "default": "therapist"
          },
          "specialties": {
            "title": "Specialties / issues (optional)",
            "type": "array",
            "description": "Optional issue categories to filter listings by, combined with every location: <code>anxiety</code>, <code>depression</code>, <code>trauma-and-ptsd</code>, <code>couples-counseling</code>, <code>emdr</code>, <code>cognitive-behavioral-cbt</code>, <code>lgbtq</code>, <code>adhd</code>, <code>addiction</code>, <code>grief</code>, <code>eating-disorders</code>, <code>marriage-counseling</code>. Leave empty for all providers in each location.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Direct Psychology Today URLs: provider profiles (<code>/us/therapists/jane-doe-austin-tx/123456</code>), city listings (<code>/us/therapists/tx/austin</code>), or state pages (<code>/us/psychiatrists/ca</code>). Used in addition to the locations above; the directory in the URL overrides the provider type.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max providers",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of provider records to scrape across all locations and specialties.",
            "default": 100
          },
          "maxResultsPerCity": {
            "title": "Max providers per location",
            "minimum": 1,
            "type": "integer",
            "description": "Cap per city/zip listing (each listing page holds 20 providers).",
            "default": 60
          },
          "maxCitiesPerState": {
            "title": "Max cities per state",
            "minimum": 1,
            "type": "integer",
            "description": "When a whole state is given, how many of its metros to scrape (largest first).",
            "default": 4
          },
          "includeProfileDetails": {
            "title": "Include full profile details",
            "type": "boolean",
            "description": "Open each provider's profile for the full bio, license number + issuing state + expiry, years in practice, top specialties + expertise, types of therapy / modalities, client focus (age groups, participants, communities), languages, session fees, payment methods, insurance plans accepted and every work location with geo. Highly recommended — one extra page per provider.",
            "default": true
          },
          "acceptingNewClientsOnly": {
            "title": "Only providers accepting new clients",
            "type": "boolean",
            "description": "Keep only providers flagged as accepting new clients.",
            "default": false
          },
          "acceptsInsuranceOnly": {
            "title": "Only providers who accept insurance",
            "type": "boolean",
            "description": "Keep only providers who list at least one in-network insurance plan (requires profile details).",
            "default": false
          },
          "offersTelehealthOnly": {
            "title": "Only providers offering telehealth",
            "type": "boolean",
            "description": "Keep only providers who offer online / video sessions.",
            "default": false
          },
          "minYearsInPractice": {
            "title": "Minimum years in practice",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only providers with at least this many years in practice (requires profile details).",
            "default": 0
          },
          "withPhoneOnly": {
            "title": "Only providers with a phone number",
            "type": "boolean",
            "description": "Keep only providers that expose a phone number (the vast majority do).",
            "default": false
          },
          "deduplicateProviders": {
            "title": "Deduplicate providers",
            "type": "boolean",
            "description": "Emit each provider at most once per run (a provider can appear under several specialties/cities).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new providers)",
            "type": "boolean",
            "description": "Remember providers from previous runs in a named key-value store and emit only NEW ones on each run. Pair with Apify Schedules for a daily fresh-lead feed. Works alongside the scheduler — it does not conflict with it.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store used to remember already-seen providers across runs. Use distinct names for independent monitors (lowercase letters, digits and hyphens only).",
            "default": "psychology-today-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many profile/listing pages to fetch in parallel.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Psychology Today requires a RESIDENTIAL US proxy — it is reliably clean to residential IPs but blocks datacenter ones. Keep the default unless you have your own residential proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}