Doctors Database API
Query the US doctors and healthcare providers database via API: about 9.5 million doctors, dentists, nurses, therapists, clinics, hospitals and pharmacies from the national provider registry (NPI), refreshed every week, with practice address, phone, specialty and, where we have it, the practice website and email. Each provider carries npi and provider_type (individual or organization). Included with the $149/mo plan and up; the 100,000 new records a day are shared with the Local Business Database API. On a trial or the $49 plan, each new provider is paid from your credits ($0.0099 a record) and providers you already have are free. Send GET with query parameters or POST with the same parameters as a JSON body. Every provider carries email_check_status and email_checked_on for its first email (valid, valid_catch_all, invalid, unknown, or not_checked), from our own email checker, free: send only to valid emails checked in the last 30 days, and put the rest through the Email Validator first.
GET /api/v1/database/doctorsDatabase APIs are included with the $149/mo plan.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | number | Optional | Page number (default: 1)Default: 1Example: 1 |
limit | number | Optional | Results per page (max: 100)Default: 50Example: 100 |
keyword | string[] | Optional | A specialty or what the provider does, in plain words (multiple allowed; a provider matching any keyword is returned). Matched against specialties and provider names, so "pediatrician", "physical therapy" and "dentist" all work. A place inside a keyword ("dentists in Austin TX") is used as the location when no location is sent. searched_as in the response shows how each keyword was read.Example: pediatrician |
category | string[] | Optional | Filter by specialty, as the registry names it (multiple allowed)Example: Family Medicine |
notCategory | string[] | Optional | Leave out these specialties (multiple allowed)Example: Registered Nurse |
location | string[] | Optional | US states, cities or ZIP codes, as typed (multiple allowed, up to 2,000; any of them). "Houston TX", "Austin, Texas", "78701" and "Ohio" all work. searched_as in the response shows where each was found and lists any place that was not found.Example: Houston TX |
state | string | Optional | Filter by state (partial match)Example: Texas |
city | string | Optional | Filter by city (partial match)Example: Austin |
postalCode | string | Optional | Filter by ZIP codeExample: 78701 |
providerType | string | Optional | individual (a person, such as a doctor, dentist or nurse) or organization (a clinic, hospital, pharmacy or group practice). Any other value returns 400.Example: individual |
npi | string[] | Optional | Look up providers by their 10-digit NPI number (multiple allowed, or comma separated). A value that is not 10 digits returns 400.Example: 1234567893 |
title | string | Optional | Filter by provider or practice name (partial match). Comma separated for several names.Example: Austin Family Clinic |
query | string | Optional | Full-text search across provider name and detailsExample: pediatric |
hasPhone | boolean | Optional | Only return providers with a phone numberDefault: falseExample: true |
hasEmail | boolean | Optional | Only return providers with an email addressDefault: falseExample: true |
hasWebsite | boolean | Optional | Only return providers with a websiteDefault: falseExample: true |
excludeDelivered | boolean | Optional | Skip providers you already have: anything this account got from this API before or unlocked in the dashboard. Use it for daily pulls so each run returns only new providers. With this on, request page=1 every time (or use after).Default: falseExample: true |
after | string | Optional | Cursor paging for large pulls: returns providers after this id, in id order. Send after=0 on the first call, then send the next_after value from each response until it comes back null. pagination.total is still the whole search.Example: 0 |
Examples
Family medicine doctors in Austin with a phone number
curl "https://app.scrapercity.com/api/v1/database/doctors?providerType=individual&category=Family%20Medicine&city=Austin&state=Texas&hasPhone=true&limit=100" \ -H "Authorization: Bearer YOUR_API_KEY"
Specialties and places as you would type them
curl -X POST "https://app.scrapercity.com/api/v1/database/doctors" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": ["pediatric dentist", "orthodontist"], "location": ["Houston TX", "Dallas TX"], "hasPhone": true, "limit": 100}'Clinics and group practices in a state, only new ones each day
curl "https://app.scrapercity.com/api/v1/database/doctors?providerType=organization&keyword=physical%20therapy&state=Ohio&excludeDelivered=true&limit=100" \ -H "Authorization: Bearer YOUR_API_KEY"
Look up providers by NPI number
curl "https://app.scrapercity.com/api/v1/database/doctors?npi=1234567893,1679576722" \ -H "Authorization: Bearer YOUR_API_KEY"
Page through a large search with a cursor
# First call: after=0. Then pass pagination.next_after from each response as after, until it is null. curl "https://app.scrapercity.com/api/v1/database/doctors?category=Dentist&state=California&after=0&limit=100" \ -H "Authorization: Bearer YOUR_API_KEY"
Use Cases
- •Build outreach lists of doctors, dentists and clinics for healthcare sales
- •Find practices by specialty and location for medical device, software and staffing offers
- •Check and complete provider records by NPI number
- •Pull new providers every day into your CRM
Best Practices
- •Use a specialty (category or keyword) with a state, city or ZIP for targeted results
- •providerType=individual gets the people (doctors, dentists, nurses); organization gets the clinics, hospitals and pharmacies
- •Each provider includes title (the provider or practice name), category_name (specialty), address, city, state, postal_code, phone, website and emails when we have them, npi, provider_type and description (credential, taxonomy codes, license and other practice locations)
- •Rate limit: 100 providers per request, 100,000 new records per day shared with the Local Business Database API. Records you already have do not count again
- •Every provider the API returns is saved to your account, so excludeDelivered=true can skip it next time. It also shows in your unlocked doctors in the dashboard
- •For big pulls use after + next_after (cursor paging) instead of high page numbers
- •The same search also works on /api/v1/database/local-businesses with dataset=doctors
- •A search that takes too long to run returns 503. Narrow it (add a specialty, a city, a state or a ZIP code) and try again
- •Included with the $149/mo plan and up. On a trial or the $49 plan each new record is paid from credits: the answer carries billing (charged, credits left); when the credits run out part way it adds billing.not_returned and has_more, and next_after resumes at the first record not returned once there are credits. A 402 means none could be paid for
- •Daily limit resets at midnight UTC
Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.
Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.