{
  "openapi": "3.0.1",
  "info": {
    "title": "NPI Registry Scraper: NPPES Provider Search & NPI Lookup",
    "description": "NPI Registry scraper and NPI lookup API: search the NPPES registry of US healthcare providers by specialty, state, city or ZIP past the 1,200-row limit, bulk NPI number lookup with deactivated status, and new providers each week. Phone, address, taxonomy. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "cLfARxApnSR2Qknr8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~npi-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-npi-registry-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/steadyscrape~npi-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-npi-registry-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/steadyscrape~npi-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-npi-registry-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "search",
              "newProviders"
            ],
            "type": "string",
            "description": "<b>Search</b>: providers by specialty, state, city, ZIP code or name, past the registry's 1,200-row limit. <b>New providers this week</b>: the providers CMS enumerated in the week of its newest weekly NPPES file (new practices and newly licensed clinicians), narrowed by the same fields. NPI numbers below are looked up instead of either.",
            "default": "search"
          },
          "specialties": {
            "title": "Specialties (taxonomy)",
            "type": "array",
            "description": "Words of the specialty as the registry describes it: <code>Dentist</code>, <code>Family Medicine</code>, <code>Nurse Practitioner</code>, <code>Physical Therapist</code>, <code>Counselor</code>. A word matches every taxonomy that contains it (<code>Pediatric</code> finds Pediatrics and Nurse Practitioner, Pediatrics). Each specialty is searched in each place.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Each state is its own search, read whole: the Actor splits it by ZIP code past the registry's 1,200 rows. A state alone (no specialty or name) lists every provider there.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "AS",
                "FM",
                "GU",
                "MH",
                "MP",
                "PW",
                "PR",
                "VI",
                "AA",
                "AE",
                "AP"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Arizona",
                "Arkansas",
                "California",
                "Colorado",
                "Connecticut",
                "Delaware",
                "District of Columbia",
                "Florida",
                "Georgia",
                "Hawaii",
                "Idaho",
                "Illinois",
                "Indiana",
                "Iowa",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Maine",
                "Maryland",
                "Massachusetts",
                "Michigan",
                "Minnesota",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Hampshire",
                "New Jersey",
                "New Mexico",
                "New York",
                "North Carolina",
                "North Dakota",
                "Ohio",
                "Oklahoma",
                "Oregon",
                "Pennsylvania",
                "Rhode Island",
                "South Carolina",
                "South Dakota",
                "Tennessee",
                "Texas",
                "Utah",
                "Vermont",
                "Virginia",
                "Washington",
                "West Virginia",
                "Wisconsin",
                "Wyoming",
                "American Samoa",
                "Micronesia",
                "Guam",
                "Marshall Islands",
                "Northern Mariana Islands",
                "Palau",
                "Puerto Rico",
                "U.S. Virgin Islands",
                "Armed Forces Americas",
                "Armed Forces Europe",
                "Armed Forces Pacific"
              ]
            },
            "default": []
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Each city is its own search. Write <code>Austin, TX</code> for one state, or <code>Springfield</code> for every city of that name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "A ZIP (<code>78701</code>, matching its ZIP+4s too), a ZIP+4 (<code>78701-1234</code>) or the first 2 to 4 digits for an area (<code>787</code>). Each is its own search.",
            "items": {
              "type": "string",
              "pattern": "^[\\s*-]*((\\d[\\s*-]*){2,9})?$"
            },
            "default": []
          },
          "npiNumbers": {
            "title": "NPI numbers",
            "type": "array",
            "description": "10-digit NPIs or registry links (<code>https://npiregistry.cms.hhs.gov/provider-view/1043458821</code>), for bulk lookup and credentialing. A run with NPIs reads only them: an NPI the registry no longer lists comes back as a free row saying whether CMS deactivated it and when; a mistyped NPI (wrong check digit) is a free row too.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "firstName": {
            "title": "First name",
            "pattern": "^([^*]*|\\s*[^*\\s][^*]+\\*\\s*)$",
            "type": "string",
            "description": "An individual's first name; end with <code>*</code> for names that start with it (at least 2 letters before it).",
            "default": ""
          },
          "lastName": {
            "title": "Last name",
            "pattern": "^([^*]*|\\s*[^*\\s][^*]+\\*\\s*)$",
            "type": "string",
            "description": "An individual's last name, or its start with <code>*</code> (<code>Smi*</code>). The registry also matches former and other names.",
            "default": ""
          },
          "organizationName": {
            "title": "Organization name",
            "pattern": "^([^*]*|\\s*[^*\\s][^*]+\\*\\s*)$",
            "type": "string",
            "description": "An organization's legal or other name, or its start with <code>*</code> (<code>Smile*</code>).",
            "default": ""
          },
          "providerType": {
            "title": "Provider type",
            "enum": [
              "any",
              "individual",
              "organization"
            ],
            "type": "string",
            "description": "Individuals (NPI-1: physicians, dentists, nurses, therapists) or organizations (NPI-2: practices, clinics, hospitals, pharmacies, labs).",
            "default": "any"
          },
          "addressPurpose": {
            "title": "Which address the place must match",
            "enum": [
              "any",
              "location",
              "mailing",
              "primary",
              "secondary"
            ],
            "type": "string",
            "description": "The registry's own choice: by default a state, city or ZIP matches the practice location or the mailing address.",
            "default": "any"
          },
          "primarySpecialtyOnly": {
            "title": "Primary specialty only",
            "type": "boolean",
            "description": "Keep only providers whose primary taxonomy matches the specialty, not a secondary one. Left-out records are not charged.",
            "default": false
          },
          "skipAlreadyDelivered": {
            "title": "Skip providers delivered before",
            "type": "boolean",
            "description": "For a schedule: skip providers an earlier run of this same input already delivered, so each run delivers (and charges) only new ones.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum providers",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most providers one run delivers, across all searches.",
            "default": 100
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}