{
  "data": {
    "id": "AfXbJnolU6LkOkZuT",
    "actId": "a1Te6P7vTjwmVJL5h",
    "userId": "zq8lKbpLzTjGDayPC",
    "startedAt": "2026-11-17T16:46:29.075Z",
    "finishedAt": "2026-11-17T16:46:33.690Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 4536,
      "runTimeSecs": 4.536,
      "computeUnits": 0.00504,
      "imageSizeBytes": 361413120
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "GK9YjZRyQZVzOdoH5",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"RateMDs Doctor & Practice Scraper Input\",\n  \"description\": \"Search RateMDs doctors and practices, or fetch known profiles, with optional patient reviews.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to fetch from RateMDs.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"bySpecialty\",\n        \"doctorProfile\",\n        \"byUrl\",\n        \"practiceSearch\",\n        \"practiceProfile\"\n      ],\n      \"enumTitles\": [\n        \"Search doctors by name, keyword or condition\",\n        \"Browse doctors by specialty\",\n        \"Fetch one doctor profile\",\n        \"Fetch a list of doctor profile URLs\",\n        \"Search practices (clinics) by city\",\n        \"Fetch one or more practice profile URLs\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query\",\n      \"type\": \"string\",\n      \"description\": \"Doctor name, specialty keyword or medical condition (mode=search). Example: 'cardiologist' or 'Dr. Jane Doe'.\",\n      \"editor\": \"textfield\",\n      \"default\": \"cardiologist\",\n      \"prefill\": \"cardiologist\"\n    },\n    \"location\": {\n      \"title\": \"Location\",\n      \"type\": \"string\",\n      \"description\": \"Legacy free-text location, e.g. 'New York' or 'Toronto, ON'. Used with search and bySpecialty. Structured City/State below take precedence.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"specialty\": {\n      \"title\": \"Specialty\",\n      \"type\": \"string\",\n      \"description\": \"Medical specialty to browse (mode=bySpecialty) or to narrow a keyword search.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"acupuncturist\",\n        \"addiction-medicine\",\n        \"allergist-immunologist\",\n        \"anesthesiologist\",\n        \"audiologist\",\n        \"bariatric-weight-loss\",\n        \"cardiologist\",\n        \"cardiothoracic-surgeon\",\n        \"chiropodist\",\n        \"chiropractor\",\n        \"colorectal-proctologist\",\n        \"cosmetic-plastic-surgeon\",\n        \"dentist\",\n        \"dermatologist\",\n        \"dietitian\",\n        \"ear-nose-and-throat-ent\",\n        \"emergency-critical\",\n        \"endocrinologist\",\n        \"endodontist-root-canal\",\n        \"family-gp\",\n        \"gastroenterologist\",\n        \"geneticist\",\n        \"gynecologist-obgyn\",\n        \"homeopath\",\n        \"infectious-disease\",\n        \"internist-geriatrician\",\n        \"midwife\",\n        \"naturopath\",\n        \"nephrologist-kidney\",\n        \"neurologist\",\n        \"neurosurgeon\",\n        \"nurse-practitioner\",\n        \"occupational-therapist\",\n        \"oncologist-hematologist\",\n        \"ophthalmologist\",\n        \"optometrist\",\n        \"oral-surgeon\",\n        \"orthodontist\",\n        \"orthopedics-sports\",\n        \"osteopath\",\n        \"pain-medicine-specialist\",\n        \"pain-mgmt-physical-rehab\",\n        \"pathologist\",\n        \"pediatrician\",\n        \"perinatologist-maternal-fetal-medicine\",\n        \"periodontist-gums\",\n        \"physiatrist-physical-medicine-rehabilitation\",\n        \"physical-therapist-physiotherapist\",\n        \"physician-assistant\",\n        \"podiatrist\",\n        \"psychiatrist\",\n        \"psychologist\",\n        \"pulmonologist-lungs\",\n        \"radiation-oncologist\",\n        \"radiologist\",\n        \"registered-massage-therapist\",\n        \"reproductive-endocrinologist\",\n        \"rheumatologist\",\n        \"sleep-disorders\",\n        \"sports-medicine-physicians\",\n        \"surgeon-general\",\n        \"therapist\",\n        \"urogynecologist\",\n        \"urologist\",\n        \"vascular-phlebologist\"\n      ],\n      \"enumTitles\": [\n        \"Any specialty\",\n        \"Acupuncturist\",\n        \"Addiction Medicine Specialist\",\n        \"Allergist / Immunologist\",\n        \"Anesthesiologist\",\n        \"Audiologist\",\n        \"Bariatric / Weight Loss Specialist\",\n        \"Cardiologist\",\n        \"Cardiothoracic Surgeon\",\n        \"Chiropodist\",\n        \"Chiropractor\",\n        \"Colorectal Surgeon / Proctologist\",\n        \"Plastic / Cosmetic Surgeon, Physician\",\n        \"Dentist\",\n        \"Dermatologist\",\n        \"Dietitian\",\n        \"Ear, Nose, and Throat Doctor / Otolaryngologist (ENT)\",\n        \"Emergency Room Doctor\",\n        \"Endocrinologist\",\n        \"Endodontist\",\n        \"Family Doctor / General Practitioner\",\n        \"Gastroenterologist\",\n        \"Geneticist\",\n        \"Gynecologists and Obstetricians (OBGYN)\",\n        \"Homeopath\",\n        \"Infectious Disease Specialist\",\n        \"Internist / Geriatrician\",\n        \"Midwife\",\n        \"Naturopath\",\n        \"Nephrologist\",\n        \"Neurologist\",\n        \"Neurosurgeon\",\n        \"Nurse Practitioner\",\n        \"Occupational Therapist\",\n        \"Oncologist / Hematologist\",\n        \"Ophthalmologist\",\n        \"Optometrist\",\n        \"Oral Surgeon\",\n        \"Orthodontist\",\n        \"Orthopedic Surgeon\",\n        \"Osteopath\",\n        \"Pain Medicine Specialist\",\n        \"Pain Management Specialist / Physical Therapist\",\n        \"Pathologist\",\n        \"Pediatrician\",\n        \"Perinatologist / Maternal-Fetal Medicine Specialist\",\n        \"Periodontist\",\n        \"Physiatrist / Physical Medicine & Rehabilitation\",\n        \"Physical Therapist / Physiotherapist\",\n        \"Physician Assistant\",\n        \"Podiatrist\",\n        \"Psychiatrist\",\n        \"Psychologist\",\n        \"Pulmonologist\",\n        \"Radiation Oncologist\",\n        \"Radiologist\",\n        \"Massage Therapist\",\n        \"Reproductive Endocrinologist\",\n        \"Rheumatologist\",\n        \"Sleep Doctor\",\n        \"Sports Medicine Physician\",\n        \"General Surgeon\",\n        \"Therapist\",\n        \"Urogynecologist\",\n        \"Urologist\",\n        \"Vascular Surgeon / Phlebologist\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"state\": {\n      \"title\": \"State / province\",\n      \"type\": \"string\",\n      \"description\": \"Two-letter state/province code (e.g. 'ny', 'ca', 'on') used with search, bySpecialty and practiceSearch.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"city\": {\n      \"title\": \"City\",\n      \"type\": \"string\",\n      \"description\": \"City name or slug (e.g. 'New York' or 'new-york') used with search, bySpecialty and practiceSearch.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"country\": {\n      \"title\": \"Country\",\n      \"type\": \"string\",\n      \"description\": \"Country filter for doctor or practice searches.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"us\",\n        \"ca\",\n        \"au\",\n        \"in\",\n        \"za\",\n        \"uk\"\n      ],\n      \"enumTitles\": [\n        \"Any country\",\n        \"United States\",\n        \"Canada\",\n        \"Australia / New Zealand\",\n        \"India\",\n        \"South Africa\",\n        \"United Kingdom\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"gender\": {\n      \"title\": \"Doctor gender\",\n      \"type\": \"string\",\n      \"description\": \"Filter doctors by gender when RateMDs publishes it.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"F\",\n        \"M\"\n      ],\n      \"enumTitles\": [\n        \"Any\",\n        \"Female\",\n        \"Male\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\"\n    },\n    \"verified\": {\n      \"title\": \"Verified profiles only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return doctors marked as verified by RateMDs.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"acceptingNewPatients\": {\n      \"title\": \"Accepting new patients\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return doctors currently accepting new patients.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"acceptingVirtualVisits\": {\n      \"title\": \"Accepting virtual visits\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return doctors offering virtual/telehealth appointments.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"onlineScheduling\": {\n      \"title\": \"Online scheduling\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return doctors with online appointment booking enabled.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"openNow\": {\n      \"title\": \"Open now\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return practices that are open at the time of the run.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"doctorSlug\": {\n      \"title\": \"Doctor slug or URL\",\n      \"type\": \"string\",\n      \"description\": \"A doctor's RateMDs slug or full profile URL (mode=doctorProfile). Current and legacy URL formats are accepted.\",\n      \"editor\": \"textfield\"\n    },\n    \"profileUrls\": {\n      \"title\": \"Doctor profile URLs (mode=byUrl)\",\n      \"type\": \"array\",\n      \"description\": \"List of RateMDs doctor profile URLs or slugs to fetch.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"practiceUrls\": {\n      \"title\": \"Practice profile URLs (mode=practiceProfile)\",\n      \"type\": \"array\",\n      \"description\": \"List of RateMDs clinic URLs or slugs to fetch, e.g. 'https://www.ratemds.com/clinic/us-sc-north-charleston-total-family-wellness/'.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"includeReviews\": {\n      \"title\": \"Include recent reviews\",\n      \"type\": \"boolean\",\n      \"description\": \"Fetch patient reviews. For doctor search this adds one profile request per doctor; for profile modes it fetches more review pages; for practice modes it includes embedded practice reviews.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includePartnerReviews\": {\n      \"title\": \"Include partner reviews\",\n      \"type\": \"boolean\",\n      \"description\": \"Also fetch RateMDs 'Our Partners' reviews for doctor profiles (one extra request per review page).\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includePracticeDetails\": {\n      \"title\": \"Enrich practices with details\",\n      \"type\": \"boolean\",\n      \"description\": \"For practiceSearch, fetch each clinic page for address, phone, website, rating and doctors. Adds one request per practice.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxReviewPages\": {\n      \"title\": \"Max review pages per doctor\",\n      \"type\": \"integer\",\n      \"description\": \"Number of review pages to fetch per doctor when reviews are enabled (10 reviews per page).\",\n      \"minimum\": 1,\n      \"maximum\": 20,\n      \"default\": 1,\n      \"prefill\": 1\n    },\n    \"maxPages\": {\n      \"title\": \"Max listing pages\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum number of search result pages to walk per run.\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 1000,\n      \"prefill\": 1000\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum number of records to emit.\",\n      \"minimum\": 1,\n      \"maximum\": 5000,\n      \"default\": 20,\n      \"prefill\": 3\n    }\n  }\n}",
    "readme": "# RateMDs Doctor, Practice & Patient Review Finder\n\nRateMDs publishes patient ratings, reviews and practice details for doctors and clinics across the US and Canada. This actor searches that directory by name, keyword, specialty, city or state, browses practices, or fetches profiles you already know — without cookies, logins or API keys.\n\n## Modes\n\n| Mode | What it returns |\n| --- | --- |\n| `search` | Doctors matching a name/keyword, optionally narrowed by specialty, city, state, country and profile filters. |\n| `bySpecialty` | Every doctor listed under a medical specialty, optionally narrowed by location. |\n| `doctorProfile` | One full doctor profile from a slug or URL, including reviews. |\n| `byUrl` | A batch of doctor profile URLs in one run. |\n| `practiceSearch` | Practices (clinics) in a city/state, with optional per-practice details. |\n| `practiceProfile` | One or more practice profiles from clinic URLs, including doctors and reviews. |\n\n## Output per doctor\n\n| Field | Description |\n| --- | --- |\n| `recordType` | `doctor` or `practice`. |\n| `doctorId` | RateMDs internal doctor ID. |\n| `name` / `slug` / `url` | Doctor name, URL slug and absolute profile URL. |\n| `specialty` / `specialtySlug` | Human-readable and slug form of the specialty. |\n| `gender` | `M` or `F` when RateMDs publishes it. |\n| `verified` | Whether RateMDs marks the profile verified. |\n| `rating` / `reviewCount` | Average star rating (1.0–5.0) and total review count. |\n| `ratingBreakdown` | `staff`, `punctuality`, `helpfulness`, `knowledge` sub-ratings when available. |\n| `photoUrl` | Absolute profile photo URL. |\n| `address` / `suite` / `city` / `state` / `country` / `postalCode` | Primary practice location. |\n| `latitude` / `longitude` | Practice coordinates when published. |\n| `phone` / `website` | Practice contact details. |\n| `clinicName` / `clinicId` / `clinicUrl` | Primary practice name, ID and RateMDs page. |\n| `acceptsNewPatients` / `acceptsVirtualVisits` / `onlineScheduling` | Availability flags. |\n| `sampleReview` | A sample review shown on the listing card. |\n| `bio` / `languages` / `expertises` / `education` | Profile-only details when published. |\n| `recentReviews` | Recent RateMDs patient reviews (`id`, `date`, `rating`, `text`, `authorLabel`, `appointmentType`, sub-ratings, `helpfulVotes`). |\n| `partnerReviews` | Recent \"Our Partners\" reviews (same shape, `source: \"partner\"`). |\n| `ratemdsReviewCount` / `partnerReviewCount` | Per-source review totals. |\n| `scrapedAt` | ISO timestamp of capture. |\n\n## Output per practice\n\n`recordType`, `practiceId`, `practiceName`, `slug`, `practiceUrl`, `rank`, `locationLabel`, `address`, `suite`, `city`, `state`, `country`, `postalCode`, `phone`, `website`, `latitude`, `longitude`, `rating`, `reviewCount`, `ratingBreakdown` (`cleanliness`, `facilities`, `services`, `value`), `doctors` (id, name, URL, specialty, rating), `doctorCount`, `recentReviews`, `scrapedAt`.\n\nFields a profile does not publish are omitted — never filled with `null`, `0` or a placeholder.\n\n## Input\n\n| Field | Type | Default | Description |\n| --- | --- | --- | --- |\n| `mode` | Select | `search` | See the mode table. |\n| `searchQuery` | Text | `cardiologist` | Doctor name, keyword or condition. |\n| `specialty` | Select (66 options) | Any | Specialty browse/filter. |\n| `location` | Text | – | Legacy free-text location (`New York`, `Toronto, ON`). |\n| `state` / `city` | Text | – | Structured location (e.g. `ny`, `new-york`). |\n| `country` | Select | Any | `us`, `ca`, `au`, `in`, `za`, `uk`. |\n| `gender` | Select | `any` | `F`, `M`. |\n| `verified` | Boolean | `false` | Verified profiles only. |\n| `acceptingNewPatients` | Boolean | `false` | Accepting new patients only. |\n| `acceptingVirtualVisits` | Boolean | `false` | Virtual visits only. |\n| `onlineScheduling` | Boolean | `false` | Online booking only. |\n| `openNow` | Boolean | `false` | Practices open now. |\n| `doctorSlug` | Text | – | Doctor slug or URL (`doctorProfile`). |\n| `profileUrls` | String list | `[]` | Doctor URLs (`byUrl`). |\n| `practiceUrls` | String list | `[]` | Clinic URLs (`practiceProfile`). |\n| `includeReviews` | Boolean | `false` | Fetch reviews (adds requests). |\n| `includePartnerReviews` | Boolean | `false` | Fetch \"Our Partners\" review pages. |\n| `includePracticeDetails` | Boolean | `false` | Fetch each practice page in `practiceSearch`. |\n| `maxReviewPages` | Integer | `1` | Review pages per profile (10 reviews/page). |\n| `maxPages` | Integer | `1000` | Listing pages per run. |\n| `maxItems` | Integer | `20` | Records to emit. |\n\n### Examples\n\n```json\n{\"mode\": \"search\", \"searchQuery\": \"Dr. Jane Doe\", \"state\": \"ny\", \"includeReviews\": true, \"maxItems\": 5}\n```\n\n```json\n{\"mode\": \"bySpecialty\", \"specialty\": \"dermatologist\", \"state\": \"ca\", \"city\": \"los-angeles\", \"maxItems\": 50}\n```\n\n```json\n{\"mode\": \"practiceSearch\", \"state\": \"sc\", \"city\": \"north-charleston\", \"includePracticeDetails\": true, \"maxItems\": 10}\n```\n\n```json\n{\"mode\": \"doctorProfile\", \"doctorSlug\": \"45808/Dr-Paul-Natterson-Santa+Monica-CA.html\", \"includeReviews\": true, \"maxReviewPages\": 3}\n```\n\n## Pagination and limits\n\nDoctor listings normally hold 10 results per page and RateMDs caps a single query at 1,000 pages (about 10,000 doctors). When a query is larger than that, split it by state, city, specialty or one of the profile filters. Practice listings hold 10 practices per page; `locations_count` on the page gives the true total. The actor stops at `maxItems`, when the source runs out, or when `maxPages` is reached — it never stops on a wall-clock timer.\n\n## How it works\n\nRateMDs serves server-rendered pages with structured `window.DATA` payloads. The actor reads those payloads directly instead of brittle CSS selectors. When RateMDs returns its JavaScript proof-of-work challenge (HTTP 202), the actor solves it locally, stores the bypass cookie and retries. Requests are paced and use Apify Proxy sessions when the site rate-limits or blocks the direct connection; no proxy or cookie setup is required from you.\n\n## FAQ\n\n**Do I need a RateMDs account?** No. The actor reads the public pages shown to any visitor.\n\n**Why are some fields missing?** RateMDs does not publish a website, phone, photo or sub-rating for every profile; those fields are omitted for that record.\n\n**How many reviews can I get?** The profile page embeds the most recent page; `includeReviews` plus `maxReviewPages` walks the public review endpoint for more. `includePartnerReviews` adds partner reviews where present.\n\n**Can I paste a full profile URL?** Yes. Both doctor and clinic URLs are accepted in the profile modes.\n\n**Why do I see fewer rows than the site count?** A single query is capped by RateMDs at 1,000 pages. Partition by location/specialty/filter to reach the rest.\n\n**Is this affiliated with RateMDs?** No. This is an independent tool and is not affiliated with, endorsed by, or sponsored by RateMDs.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "ratemds-patient-review-and-practice-finder",
      "title": "RateMDs Doctor, Practice & Patient Review Finder",
      "description": "Search RateMDs doctors by name, specialty or location, browse practices, or fetch known profiles, with ratings, contact details and patient reviews.",
      "version": "2.0",
      "buildTag": "latest",
      "dockerfile": "./Dockerfile",
      "readme": "# RateMDs Doctor, Practice & Patient Review Finder\n\nRateMDs publishes patient ratings, reviews and practice details for doctors and clinics across the US and Canada. This actor searches that directory by name, keyword, specialty, city or state, browses practices, or fetches profiles you already know — without cookies, logins or API keys.\n\n## Modes\n\n| Mode | What it returns |\n| --- | --- |\n| `search` | Doctors matching a name/keyword, optionally narrowed by specialty, city, state, country and profile filters. |\n| `bySpecialty` | Every doctor listed under a medical specialty, optionally narrowed by location. |\n| `doctorProfile` | One full doctor profile from a slug or URL, including reviews. |\n| `byUrl` | A batch of doctor profile URLs in one run. |\n| `practiceSearch` | Practices (clinics) in a city/state, with optional per-practice details. |\n| `practiceProfile` | One or more practice profiles from clinic URLs, including doctors and reviews. |\n\n## Output per doctor\n\n| Field | Description |\n| --- | --- |\n| `recordType` | `doctor` or `practice`. |\n| `doctorId` | RateMDs internal doctor ID. |\n| `name` / `slug` / `url` | Doctor name, URL slug and absolute profile URL. |\n| `specialty` / `specialtySlug` | Human-readable and slug form of the specialty. |\n| `gender` | `M` or `F` when RateMDs publishes it. |\n| `verified` | Whether RateMDs marks the profile verified. |\n| `rating` / `reviewCount` | Average star rating (1.0–5.0) and total review count. |\n| `ratingBreakdown` | `staff`, `punctuality`, `helpfulness`, `knowledge` sub-ratings when available. |\n| `photoUrl` | Absolute profile photo URL. |\n| `address` / `suite` / `city` / `state` / `country` / `postalCode` | Primary practice location. |\n| `latitude` / `longitude` | Practice coordinates when published. |\n| `phone` / `website` | Practice contact details. |\n| `clinicName` / `clinicId` / `clinicUrl` | Primary practice name, ID and RateMDs page. |\n| `acceptsNewPatients` / `acceptsVirtualVisits` / `onlineScheduling` | Availability flags. |\n| `sampleReview` | A sample review shown on the listing card. |\n| `bio` / `languages` / `expertises` / `education` | Profile-only details when published. |\n| `recentReviews` | Recent RateMDs patient reviews (`id`, `date`, `rating`, `text`, `authorLabel`, `appointmentType`, sub-ratings, `helpfulVotes`). |\n| `partnerReviews` | Recent \"Our Partners\" reviews (same shape, `source: \"partner\"`). |\n| `ratemdsReviewCount` / `partnerReviewCount` | Per-source review totals. |\n| `scrapedAt` | ISO timestamp of capture. |\n\n## Output per practice\n\n`recordType`, `practiceId`, `practiceName`, `slug`, `practiceUrl`, `rank`, `locationLabel`, `address`, `suite`, `city`, `state`, `country`, `postalCode`, `phone`, `website`, `latitude`, `longitude`, `rating`, `reviewCount`, `ratingBreakdown` (`cleanliness`, `facilities`, `services`, `value`), `doctors` (id, name, URL, specialty, rating), `doctorCount`, `recentReviews`, `scrapedAt`.\n\nFields a profile does not publish are omitted — never filled with `null`, `0` or a placeholder.\n\n## Input\n\n| Field | Type | Default | Description |\n| --- | --- | --- | --- |\n| `mode` | Select | `search` | See the mode table. |\n| `searchQuery` | Text | `cardiologist` | Doctor name, keyword or condition. |\n| `specialty` | Select (66 options) | Any | Specialty browse/filter. |\n| `location` | Text | – | Legacy free-text location (`New York`, `Toronto, ON`). |\n| `state` / `city` | Text | – | Structured location (e.g. `ny`, `new-york`). |\n| `country` | Select | Any | `us`, `ca`, `au`, `in`, `za`, `uk`. |\n| `gender` | Select | `any` | `F`, `M`. |\n| `verified` | Boolean | `false` | Verified profiles only. |\n| `acceptingNewPatients` | Boolean | `false` | Accepting new patients only. |\n| `acceptingVirtualVisits` | Boolean | `false` | Virtual visits only. |\n| `onlineScheduling` | Boolean | `false` | Online booking only. |\n| `openNow` | Boolean | `false` | Practices open now. |\n| `doctorSlug` | Text | – | Doctor slug or URL (`doctorProfile`). |\n| `profileUrls` | String list | `[]` | Doctor URLs (`byUrl`). |\n| `practiceUrls` | String list | `[]` | Clinic URLs (`practiceProfile`). |\n| `includeReviews` | Boolean | `false` | Fetch reviews (adds requests). |\n| `includePartnerReviews` | Boolean | `false` | Fetch \"Our Partners\" review pages. |\n| `includePracticeDetails` | Boolean | `false` | Fetch each practice page in `practiceSearch`. |\n| `maxReviewPages` | Integer | `1` | Review pages per profile (10 reviews/page). |\n| `maxPages` | Integer | `1000` | Listing pages per run. |\n| `maxItems` | Integer | `20` | Records to emit. |\n\n### Examples\n\n```json\n{\"mode\": \"search\", \"searchQuery\": \"Dr. Jane Doe\", \"state\": \"ny\", \"includeReviews\": true, \"maxItems\": 5}\n```\n\n```json\n{\"mode\": \"bySpecialty\", \"specialty\": \"dermatologist\", \"state\": \"ca\", \"city\": \"los-angeles\", \"maxItems\": 50}\n```\n\n```json\n{\"mode\": \"practiceSearch\", \"state\": \"sc\", \"city\": \"north-charleston\", \"includePracticeDetails\": true, \"maxItems\": 10}\n```\n\n```json\n{\"mode\": \"doctorProfile\", \"doctorSlug\": \"45808/Dr-Paul-Natterson-Santa+Monica-CA.html\", \"includeReviews\": true, \"maxReviewPages\": 3}\n```\n\n## Pagination and limits\n\nDoctor listings normally hold 10 results per page and RateMDs caps a single query at 1,000 pages (about 10,000 doctors). When a query is larger than that, split it by state, city, specialty or one of the profile filters. Practice listings hold 10 practices per page; `locations_count` on the page gives the true total. The actor stops at `maxItems`, when the source runs out, or when `maxPages` is reached — it never stops on a wall-clock timer.\n\n## How it works\n\nRateMDs serves server-rendered pages with structured `window.DATA` payloads. The actor reads those payloads directly instead of brittle CSS selectors. When RateMDs returns its JavaScript proof-of-work challenge (HTTP 202), the actor solves it locally, stores the bypass cookie and retries. Requests are paced and use Apify Proxy sessions when the site rate-limits or blocks the direct connection; no proxy or cookie setup is required from you.\n\n## FAQ\n\n**Do I need a RateMDs account?** No. The actor reads the public pages shown to any visitor.\n\n**Why are some fields missing?** RateMDs does not publish a website, phone, photo or sub-rating for every profile; those fields are omitted for that record.\n\n**How many reviews can I get?** The profile page embeds the most recent page; `includeReviews` plus `maxReviewPages` walks the public review endpoint for more. `includePartnerReviews` adds partner reviews where present.\n\n**Can I paste a full profile URL?** Yes. Both doctor and clinic URLs are accepted in the profile modes.\n\n**Why do I see fewer rows than the site count?** A single query is capped by RateMDs at 1,000 pages. Partition by location/specialty/filter to reach the rest.\n\n**Is this affiliated with RateMDs?** No. This is an independent tool and is not affiliated with, endorsed by, or sponsored by RateMDs.\n",
      "input": {
        "title": "RateMDs Doctor & Practice Scraper Input",
        "description": "Search RateMDs doctors and practices, or fetch known profiles, with optional patient reviews.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to fetch from RateMDs.",
            "editor": "select",
            "enum": [
              "search",
              "bySpecialty",
              "doctorProfile",
              "byUrl",
              "practiceSearch",
              "practiceProfile"
            ],
            "enumTitles": [
              "Search doctors by name, keyword or condition",
              "Browse doctors by specialty",
              "Fetch one doctor profile",
              "Fetch a list of doctor profile URLs",
              "Search practices (clinics) by city",
              "Fetch one or more practice profile URLs"
            ],
            "default": "search",
            "prefill": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Doctor name, specialty keyword or medical condition (mode=search). Example: 'cardiologist' or 'Dr. Jane Doe'.",
            "editor": "textfield",
            "default": "cardiologist",
            "prefill": "cardiologist"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Legacy free-text location, e.g. 'New York' or 'Toronto, ON'. Used with search and bySpecialty. Structured City/State below take precedence.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "specialty": {
            "title": "Specialty",
            "type": "string",
            "description": "Medical specialty to browse (mode=bySpecialty) or to narrow a keyword search.",
            "editor": "select",
            "enum": [
              "",
              "acupuncturist",
              "addiction-medicine",
              "allergist-immunologist",
              "anesthesiologist",
              "audiologist",
              "bariatric-weight-loss",
              "cardiologist",
              "cardiothoracic-surgeon",
              "chiropodist",
              "chiropractor",
              "colorectal-proctologist",
              "cosmetic-plastic-surgeon",
              "dentist",
              "dermatologist",
              "dietitian",
              "ear-nose-and-throat-ent",
              "emergency-critical",
              "endocrinologist",
              "endodontist-root-canal",
              "family-gp",
              "gastroenterologist",
              "geneticist",
              "gynecologist-obgyn",
              "homeopath",
              "infectious-disease",
              "internist-geriatrician",
              "midwife",
              "naturopath",
              "nephrologist-kidney",
              "neurologist",
              "neurosurgeon",
              "nurse-practitioner",
              "occupational-therapist",
              "oncologist-hematologist",
              "ophthalmologist",
              "optometrist",
              "oral-surgeon",
              "orthodontist",
              "orthopedics-sports",
              "osteopath",
              "pain-medicine-specialist",
              "pain-mgmt-physical-rehab",
              "pathologist",
              "pediatrician",
              "perinatologist-maternal-fetal-medicine",
              "periodontist-gums",
              "physiatrist-physical-medicine-rehabilitation",
              "physical-therapist-physiotherapist",
              "physician-assistant",
              "podiatrist",
              "psychiatrist",
              "psychologist",
              "pulmonologist-lungs",
              "radiation-oncologist",
              "radiologist",
              "registered-massage-therapist",
              "reproductive-endocrinologist",
              "rheumatologist",
              "sleep-disorders",
              "sports-medicine-physicians",
              "surgeon-general",
              "therapist",
              "urogynecologist",
              "urologist",
              "vascular-phlebologist"
            ],
            "enumTitles": [
              "Any specialty",
              "Acupuncturist",
              "Addiction Medicine Specialist",
              "Allergist / Immunologist",
              "Anesthesiologist",
              "Audiologist",
              "Bariatric / Weight Loss Specialist",
              "Cardiologist",
              "Cardiothoracic Surgeon",
              "Chiropodist",
              "Chiropractor",
              "Colorectal Surgeon / Proctologist",
              "Plastic / Cosmetic Surgeon, Physician",
              "Dentist",
              "Dermatologist",
              "Dietitian",
              "Ear, Nose, and Throat Doctor / Otolaryngologist (ENT)",
              "Emergency Room Doctor",
              "Endocrinologist",
              "Endodontist",
              "Family Doctor / General Practitioner",
              "Gastroenterologist",
              "Geneticist",
              "Gynecologists and Obstetricians (OBGYN)",
              "Homeopath",
              "Infectious Disease Specialist",
              "Internist / Geriatrician",
              "Midwife",
              "Naturopath",
              "Nephrologist",
              "Neurologist",
              "Neurosurgeon",
              "Nurse Practitioner",
              "Occupational Therapist",
              "Oncologist / Hematologist",
              "Ophthalmologist",
              "Optometrist",
              "Oral Surgeon",
              "Orthodontist",
              "Orthopedic Surgeon",
              "Osteopath",
              "Pain Medicine Specialist",
              "Pain Management Specialist / Physical Therapist",
              "Pathologist",
              "Pediatrician",
              "Perinatologist / Maternal-Fetal Medicine Specialist",
              "Periodontist",
              "Physiatrist / Physical Medicine & Rehabilitation",
              "Physical Therapist / Physiotherapist",
              "Physician Assistant",
              "Podiatrist",
              "Psychiatrist",
              "Psychologist",
              "Pulmonologist",
              "Radiation Oncologist",
              "Radiologist",
              "Massage Therapist",
              "Reproductive Endocrinologist",
              "Rheumatologist",
              "Sleep Doctor",
              "Sports Medicine Physician",
              "General Surgeon",
              "Therapist",
              "Urogynecologist",
              "Urologist",
              "Vascular Surgeon / Phlebologist"
            ],
            "default": "",
            "prefill": ""
          },
          "state": {
            "title": "State / province",
            "type": "string",
            "description": "Two-letter state/province code (e.g. 'ny', 'ca', 'on') used with search, bySpecialty and practiceSearch.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name or slug (e.g. 'New York' or 'new-york') used with search, bySpecialty and practiceSearch.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country filter for doctor or practice searches.",
            "editor": "select",
            "enum": [
              "",
              "us",
              "ca",
              "au",
              "in",
              "za",
              "uk"
            ],
            "enumTitles": [
              "Any country",
              "United States",
              "Canada",
              "Australia / New Zealand",
              "India",
              "South Africa",
              "United Kingdom"
            ],
            "default": "",
            "prefill": ""
          },
          "gender": {
            "title": "Doctor gender",
            "type": "string",
            "description": "Filter doctors by gender when RateMDs publishes it.",
            "editor": "select",
            "enum": [
              "any",
              "F",
              "M"
            ],
            "enumTitles": [
              "Any",
              "Female",
              "Male"
            ],
            "default": "any",
            "prefill": "any"
          },
          "verified": {
            "title": "Verified profiles only",
            "type": "boolean",
            "description": "Only return doctors marked as verified by RateMDs.",
            "default": false,
            "prefill": false
          },
          "acceptingNewPatients": {
            "title": "Accepting new patients",
            "type": "boolean",
            "description": "Only return doctors currently accepting new patients.",
            "default": false,
            "prefill": false
          },
          "acceptingVirtualVisits": {
            "title": "Accepting virtual visits",
            "type": "boolean",
            "description": "Only return doctors offering virtual/telehealth appointments.",
            "default": false,
            "prefill": false
          },
          "onlineScheduling": {
            "title": "Online scheduling",
            "type": "boolean",
            "description": "Only return doctors with online appointment booking enabled.",
            "default": false,
            "prefill": false
          },
          "openNow": {
            "title": "Open now",
            "type": "boolean",
            "description": "Only return practices that are open at the time of the run.",
            "default": false,
            "prefill": false
          },
          "doctorSlug": {
            "title": "Doctor slug or URL",
            "type": "string",
            "description": "A doctor's RateMDs slug or full profile URL (mode=doctorProfile). Current and legacy URL formats are accepted.",
            "editor": "textfield"
          },
          "profileUrls": {
            "title": "Doctor profile URLs (mode=byUrl)",
            "type": "array",
            "description": "List of RateMDs doctor profile URLs or slugs to fetch.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "practiceUrls": {
            "title": "Practice profile URLs (mode=practiceProfile)",
            "type": "array",
            "description": "List of RateMDs clinic URLs or slugs to fetch, e.g. 'https://www.ratemds.com/clinic/us-sc-north-charleston-total-family-wellness/'.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "includeReviews": {
            "title": "Include recent reviews",
            "type": "boolean",
            "description": "Fetch patient reviews. For doctor search this adds one profile request per doctor; for profile modes it fetches more review pages; for practice modes it includes embedded practice reviews.",
            "default": false,
            "prefill": false
          },
          "includePartnerReviews": {
            "title": "Include partner reviews",
            "type": "boolean",
            "description": "Also fetch RateMDs 'Our Partners' reviews for doctor profiles (one extra request per review page).",
            "default": false,
            "prefill": false
          },
          "includePracticeDetails": {
            "title": "Enrich practices with details",
            "type": "boolean",
            "description": "For practiceSearch, fetch each clinic page for address, phone, website, rating and doctors. Adds one request per practice.",
            "default": false,
            "prefill": false
          },
          "maxReviewPages": {
            "title": "Max review pages per doctor",
            "type": "integer",
            "description": "Number of review pages to fetch per doctor when reviews are enabled (10 reviews per page).",
            "minimum": 1,
            "maximum": 20,
            "default": 1,
            "prefill": 1
          },
          "maxPages": {
            "title": "Max listing pages",
            "type": "integer",
            "description": "Maximum number of search result pages to walk per run.",
            "minimum": 1,
            "maximum": 1000,
            "default": 1000,
            "prefill": 1000
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Maximum number of records to emit.",
            "minimum": 1,
            "maximum": 5000,
            "default": 20,
            "prefill": 3
          }
        }
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "RateMDs Doctor, Practice & Patient Review Finder Output",
        "description": "Doctor and practice records from RateMDs with ratings, contact details and patient reviews.",
        "properties": {
          "doctors": {
            "type": "string",
            "title": "RateMDs doctors and practices",
            "description": "Dataset containing doctor and practice records from RateMDs.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Doctors & practices",
              "transformation": {
                "fields": [
                  "recordType",
                  "name",
                  "practiceName",
                  "specialty",
                  "city",
                  "state",
                  "rating",
                  "reviewCount",
                  "url",
                  "practiceUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "2.0.1",
    "imageDigest": "7f109680740e65a169800afd980d7a40ba9bdd074756844c36c6b21f17d75bae",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "2.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.00504
    }
  }
}