# Doximity Scraper - Physician Profiles & Doctor Directory (`socialscrapers/doximity-physician-scraper`) Actor

Doximity scraper: US physician profiles and the doctor directory by specialty, with name, credentials, specialty, hospitals, practice phone and address, education, residency, licenses, board certifications and publications. Leads for medical sales and recruiting. No login. $1.00 per 1,000 profiles.

- **URL**: https://apify.com/socialscrapers/doximity-physician-scraper.md
- **Developed by:** [Social Scrapers](https://apify.com/socialscrapers) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 profiles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Doximity Physician Scraper

Scrape public physician data from Doximity's directory of US physicians. Pick a specialty to list every doctor in it, or paste profile URLs, and get clean, structured data: name, credential, specialty, phone and fax, practice address, hospital affiliations, board certifications, state licenses, training, publications and more. No Doximity account needed.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What it does

- **Specialty lists**: every MD and DO that Doximity lists under a specialty. All 56 physician specialties are supported, from Allergy & Immunology to Vascular Surgery.
- **Full profiles** (on by default): for each physician, the public profile:
  - name, credential (MD or DO), gender, and whether the physician has claimed the profile;
  - specialty, subspecialties and job title;
  - practice phone and fax, street address, city, state, ZIP code and map coordinates;
  - practice name and website;
  - hospital affiliations and a board-certified flag;
  - training (medical school, internship, residency, fellowship, with years);
  - state medical licenses with their years, board certifications and other certifications;
  - publications with journal, date and citation count, press mentions, awards and professional memberships;
  - languages, biography, external links, and every other section the profile shows (clinical trials, grant support, committees, industry relationships, insurance accepted and so on);
  - the "Similar Physicians" the profile lists.
- **Directory entries only** (profile details off): name, credential, specialty and profile URL for every physician in a specialty. Much faster and cheaper when you only need the names.
- **Profile URLs**: paste the profile links of the physicians you want.
- Each physician is saved once per run, even when several of your inputs lead to the same one.

### Use cases

- **Healthcare sales and marketing**: build lists of physicians by specialty and state, with practice phone numbers and addresses.
- **Medical recruiting**: find physicians by specialty, training, licensed states and location.
- **Market research**: count physicians by specialty, state, hospital or board certification.
- **Medical affairs and KOL mapping**: find physicians with publications, press mentions, clinical trials and society memberships.
- **Data enrichment**: complete the physician records you already have with training, licenses and hospital affiliations.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `specialties` | array | | Specialties to collect: the directory slug (`dermatology`), the specialty name (`Family Medicine`), the profession (`dermatologist`, `OB/GYN`, `ENT`) or the URL of its Doximity directory page. |
| `profileUrls` | array | | Physician profile URLs, such as `https://www.doximity.com/pub/jane-doe-md`. Always collected with full details. |
| `maxProfiles` | integer | `100` | Stop after saving this many physicians in total. Profile URLs come first, then the specialties in the order given. `0` means no limit. |
| `includeProfileDetails` | boolean | `true` | `true` saves each physician's full profile. `false` saves only the directory entry (name, credential, specialty, profile URL). |
| `proxyConfiguration` | object | Apify residential proxy, US | Proxy settings. Keep the default. |

Example:

```json
{
  "specialties": ["dermatology", "Family Medicine"],
  "profileUrls": ["https://www.doximity.com/pub/jane-doe-md"],
  "maxProfiles": 500,
  "includeProfileDetails": true,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US" }
}
```

#### Specialties

Use any of these slugs, or the specialty's name:

`allergy-immunology`, `anesthesiology`, `cardiology`, `child-neurology`, `colon-rectal-surgery`, `dermatology`, `emergency-medicine`, `endocrinology`, `family-medicine`, `gastroenterology`, `general-surgery`, `geriatrics`, `hematology`, `infectious-disease`, `internal-medicine`, `interventional-radiology`, `medical-genetics`, `medicine/pediatrics`, `neonat/perinatology`, `nephrology`, `neurology`, `neurosurgery`, `nuclear-medicine`, `obstetrics-gynecology`, `occupational-medicine`, `oncology`, `ophthalmology`, `oral-maxillofacial-surgery`, `orthopaedic-surgery`, `other-md/do`, `otolaryngology-ent`, `pathology`, `pediatric-surgery`, `pediatric-cardiology`, `pediatric-emergency-medicine`, `pediatric-endocrinology`, `pediatric-gastroenterology`, `pediatric-hematology-oncology`, `pediatric-infectious-disease`, `pediatric-nephrology`, `pediatric-pulmonology`, `pediatric-rheumatology`, `pediatrics`, `physical-medicine/rehab`, `plastic-surgery`, `preventive-medicine`, `psychiatry`, `pulmonology`, `radiation-oncology`, `radiology`, `research`, `resident-physician`, `rheumatology`, `thoracic-surgery`, `urology`, `vascular-surgery`.

### Output

One item per physician. Every item has a `dataType` of `profile` (full profile) or `listing` (directory entry only), the page it came from (`sourceUrl`) and when it was collected (`scrapedAt`). Every field is always present; a value the profile does not show is `null` (or an empty list). You can download the dataset as JSON, CSV, Excel, XML or HTML.

#### Listing

```json
{
  "dataType": "listing",
  "slug": "jane-doe-md",
  "profileUrl": "https://www.doximity.com/pub/jane-doe-md",
  "fullName": "Jane Doe",
  "credentials": "MD",
  "specialty": "Dermatology",
  "specialtySlug": "dermatology",
  "sourceUrl": "https://www.doximity.com/directory/md/specialty/dermatology",
  "scrapedAt": "2026-11-08T12:00:00.000Z"
}
```

#### Profile

```json
{
  "dataType": "profile",
  "slug": "jane-doe-md",
  "profileUrl": "https://www.doximity.com/pub/jane-doe-md",
  "profileId": "00000000-0000-0000-0000-000000000000",
  "fullName": "Jane A Doe",
  "firstName": "Jane",
  "middleName": "A",
  "lastName": "Doe",
  "credentials": "MD",
  "gender": "female",
  "isClaimed": true,
  "specialty": "Dermatology",
  "specialtySlug": "dermatology",
  "subspecialties": ["Dermatologic Surgery"],
  "jobTitle": "Clinical Associate Professor, Dermatology, Example University Medical Center",
  "headline": "Dr. Jane Doe, MD is a board certified dermatologist in Springfield, Illinois. She is affiliated with Example General Hospital.",
  "isBoardCertified": true,
  "hospitalAffiliations": ["Example General Hospital"],
  "hospitalAffiliationsText": "Example General Hospital",
  "phone": "+1 555-555-0100",
  "fax": "+1 555-555-0101",
  "streetAddress": "100 Main St Ste 200",
  "city": "Springfield",
  "state": "IL",
  "zipCode": "62701",
  "country": "United States",
  "addressLines": ["100 Main St", "Ste 200", "Springfield, IL 62701"],
  "latitude": 39.8,
  "longitude": -89.65,
  "practiceName": "Example Dermatology",
  "practiceUrl": "https://example.com",
  "practiceDescription": "Medical, surgical and cosmetic dermatology.",
  "bio": "Dr. Jane Doe is a dermatologist in Springfield...",
  "bioSource": "summary",
  "languages": ["Spanish"],
  "education": [
    { "institution": "Example University Hospital", "type": "Residency", "field": "Dermatology", "startYear": 2010, "endYear": 2013, "detail": "Residency, Dermatology, 2010 - 2013" },
    { "institution": "Example School of Medicine", "type": "Medical School", "field": null, "startYear": null, "endYear": 2009, "detail": "Class of 2009" }
  ],
  "licenses": [
    { "name": "IL State Medical License", "detail": "2013 - 2027", "startYear": 2013, "endYear": 2027, "state": "IL" }
  ],
  "boardCertifications": [
    { "name": "American Board of Dermatology", "detail": "Dermatology", "startYear": null, "endYear": null }
  ],
  "otherCertifications": [],
  "awards": [{ "title": "Top Doctors 2025", "detail": "Example Magazine, 2025" }],
  "publications": [
    { "category": "PubMed", "title": "An example study title.", "url": "https://doi.org/10.0000/example", "authors": "Jane A Doe, John Roe", "venue": "Example Journal of Dermatology", "date": "2026-05-01", "citations": 3 }
  ],
  "pressMentions": [{ "title": "An example news story", "date": "January 10th, 2025" }],
  "memberships": [{ "organization": "American Academy of Dermatology - AAD", "role": "Fellow", "url": "http://www.aad.org/" }],
  "externalLinks": [{ "title": "Example Dermatology", "url": "https://example.com" }],
  "otherSections": [{ "title": "Insurance Accepted", "items": ["Example Health Plan"] }],
  "similarPhysicians": [
    { "slug": "john-roe-md", "profileUrl": "https://www.doximity.com/pub/john-roe-md", "name": "John Roe, MD", "specialty": "Derm", "location": "Springfield, IL" }
  ],
  "photoUrl": "https://example.com/photo.jpg",
  "profileCreatedAt": "2018-07-24T13:57:52.000Z",
  "profileUpdatedAt": "2026-10-30T04:02:38.000Z",
  "sourceUrl": "https://www.doximity.com/directory/md/specialty/dermatology",
  "scrapedAt": "2026-11-08T12:00:00.000Z"
}
```

Field notes:

- `isClaimed`: the physician has claimed the profile on Doximity. Unclaimed profiles usually show less.
- `isBoardCertified`: the profile's description says the physician is board certified. The boards themselves are in `boardCertifications`.
- `hospitalAffiliations`: the hospitals named in the profile's description. `hospitalAffiliationsText` keeps the original wording, which is safer for hospital names that contain a comma.
- `licenses`: state medical licenses, with the two-letter state and the years shown.
- `otherSections`: every other section of the profile, by title (for example Clinical Trials, Grant Support, Committees, Industry Relationships, Insurance Accepted).
- `bioSource`: `summary` when the physician wrote the biography, `description` when it is the short description the site writes.
- `profileCreatedAt` and `profileUpdatedAt`: when the profile was created and last updated on Doximity.

At the end of each run, a `SUMMARY` record in the run's key-value store lists how many physicians were saved, why the run stopped, and any profiles that were not found or could not be read.

### How much does it cost to scrape Doximity?

**Pay per result: $1.00 per 1,000 profiles and $0.20 per 1,000 listings (directory entries only).** On Apify's Silver plan both cost 10% less ($0.90 and $0.18 per 1,000), and on Gold 20% less ($0.80 and $0.16). Each run also carries a start charge of $0.002 (one per GB of memory, at least one; the default 1 GB is one). For example, 5,000 full physician profiles cost $5.002 with the start charge, and 5,000 directory entries alone $1.002.

You pay only for physicians saved. Profiles that are missing or cannot be read are skipped and never charged. Set a **maximum charge per run** when you start the Actor and it stops cleanly before the first physician that would go over it; `maxProfiles` caps a run the same way.

### Limits

- **Public data only, no login.** The Actor sees what a logged-out visitor sees on Doximity.
- **MD and DO physicians only.** Nurse practitioners, physician assistants and other professions are not in these specialty lists.
- **No NPI numbers and no email addresses.** Doximity does not show them publicly. Phone and fax are the practice numbers on the profile, and not every profile has them.
- **Specialties are read in the order given.** `maxProfiles` is a total, so a low limit can be used up by the first specialty. Run each specialty separately to get a set number from each.
- **Duplicate profiles exist on Doximity** for a few physicians (same name and city, slightly different profile URL). To merge them, de-duplicate on name, city and specialty.
- **US physicians**, as listed by Doximity.
- **Datacenter proxy choices fall back to residential.** If you pick Apify Proxy without the RESIDENTIAL group, pages Doximity refuses on datacenter IPs are retried on RESIDENTIAL, in the same country; custom proxy URLs are used exactly as given.
- **A run with 0 results still succeeds.** When a profile was removed or renamed, or a specialty lists no physicians, the run ends as Succeeded with a status message naming each input and why, and no results are charged. Input with nothing usable in it ends as Succeeded too, before any page is read: the status message starts with "Nothing to scrape:", names each value that could not be used and how to fix it, and no results are charged. A run fails only when Doximity refuses every one of 3 or more inputs and a check on a public page as well.

### FAQ

**Do I need a Doximity account?**
No. The Actor works without logging in.

**How do I get every physician in a specialty?**
Set `maxProfiles` to `0`. For a quick list of names first, turn off `includeProfileDetails`, then collect full profiles for the physicians you need with `profileUrls`.

**Can I get physicians in one state or city only?**
Collect the specialty, then filter the dataset by `state` or `city`.

**Which proxy should I use?**
Keep the default: Apify residential proxy in the United States. Runs without it can fail.

**How do I keep costs under control?**
Use `maxProfiles`, turn off profile details when names are enough, and set a maximum charge per run when you start it. The run ends cleanly at whichever limit comes first.

**What happens to a profile that cannot be read?**
It is skipped and logged, not saved and not charged, and listed in the `SUMMARY` record. The run carries on with the rest.

**How fresh is the data?**
Every run reads Doximity live, so you get the profiles as they are on the day you run it.

This Actor collects only publicly available data; you are responsible for how you use it, including compliance with applicable laws and Doximity's terms.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |

# Actor input Schema

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

Specialties to collect, one per line. Use the specialty's directory slug (for example dermatology, family-medicine, obstetrics-gynecology), its name (Family Medicine) or the profession (dermatologist, OB/GYN), or the URL of its directory page (https://www.doximity.com/directory/md/specialty/dermatology). The Actor's README lists all 56 specialties.

## `profileUrls` (type: `array`):

Physician profile URLs, one per line, for example https://www.doximity.com/pub/jane-doe-md. Profile URLs always return the full profile.

## `maxProfiles` (type: `integer`):

Stop after saving this many physicians in total, across all specialties and profile URLs. Profile URLs come first, then the specialties in the order given. 0 means no limit.

## `includeProfileDetails` (type: `boolean`):

On: open each physician's profile and save the full details (phone, fax, address, hospitals, training, licenses, board certifications, publications and more). Off: save only the specialty directory entry (name, credential, specialty and profile URL), which is much faster and cheaper.

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

Keep the default: Apify residential proxies in the United States.

## Actor input object example

```json
{
  "specialties": [
    "dermatology"
  ],
  "maxProfiles": 100,
  "includeProfileDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "specialties": [
        "dermatology"
    ],
    "maxProfiles": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/doximity-physician-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 = {
    "specialties": ["dermatology"],
    "maxProfiles": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/doximity-physician-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 '{
  "specialties": [
    "dermatology"
  ],
  "maxProfiles": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call socialscrapers/doximity-physician-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialscrapers/doximity-physician-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/mX4aRboP5vLImFzgU/builds/WKMYdfdBShXsdBCGl/openapi.json
