{
  "openapi": "3.0.1",
  "info": {
    "title": "NPI Registry Scraper | 7M+ US Healthcare Providers (CMS)",
    "description": "Scrape the official US CMS NPPES NPI Registry (7M+ healthcare providers). Per-provider: NPI number, name + credential, taxonomy (specialty + license), addresses, phone, identifiers, organization data. Free public CMS API — pharma sales, healthcare staffing, insurance, credentialing.",
    "version": "0.0",
    "x-build-id": "dhCsdHhTCTur5haSU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~nppes-npi-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-nppes-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/haketa~nppes-npi-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-nppes-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/haketa~nppes-npi-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-nppes-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": {
          "npis": {
            "title": "NPI Numbers (direct lookup)",
            "type": "array",
            "description": "10-digit NPI numbers to look up directly. Fastest mode — bypasses search. Example: ['1982445060', '1932487765']. Combine with filters below for additional searches.",
            "items": {
              "type": "string"
            }
          },
          "firstName": {
            "title": "First Name",
            "type": "string",
            "description": "Provider first name (partial match, case-insensitive). Examples: 'John', 'Sarah'. Combine with last name + state for narrower results.",
            "default": ""
          },
          "lastName": {
            "title": "Last Name",
            "type": "string",
            "description": "Provider last name. Note: the CMS NPPES API matches names fuzzily (and across aliases) — pair last name with first name + state for precise individual lookups.",
            "default": ""
          },
          "organizationName": {
            "title": "Organization Name",
            "type": "string",
            "description": "Organization (NPI-2) name search. Examples: 'Mount Sinai', 'Kaiser Permanente'. Skip when searching individuals.",
            "default": ""
          },
          "taxonomyDescription": {
            "title": "Taxonomy / Specialty",
            "type": "string",
            "description": "Provider taxonomy text (CMS specialty descriptors). Examples: 'Family Medicine', 'Cardiology', 'Pharmacy', 'Dentist', 'Nurse Practitioner', 'Pediatrics'. Partial match works.",
            "default": ""
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Filter by city name. Examples: 'New York', 'Los Angeles', 'Houston'. Each runs as a separate query.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Filter by 2-letter state code. Examples: 'NY', 'CA', 'TX', 'FL'. Each runs as a separate query when combined with other filters. Note: the CMS NPPES API does not allow a state filter on its own — pair it with a name, organization, taxonomy, city, or postal code.",
            "items": {
              "type": "string"
            }
          },
          "postalCode": {
            "title": "Postal / ZIP Code",
            "type": "string",
            "description": "Filter by ZIP. Partial match (e.g. '100' matches all 100xx ZIPs).",
            "default": ""
          },
          "enumerationType": {
            "title": "Provider Type",
            "enum": [
              "any",
              "NPI-1",
              "NPI-2"
            ],
            "type": "string",
            "description": "NPI-1 = Individual provider (doctor, nurse, etc.). NPI-2 = Organization (hospital, clinic, group practice). 'any' = both.",
            "default": "any"
          },
          "addressPurpose": {
            "title": "Address Purpose Filter",
            "enum": [
              "any",
              "LOCATION",
              "MAILING",
              "PRIMARY",
              "SECONDARY"
            ],
            "type": "string",
            "description": "Match on address type. LOCATION = practice address; MAILING = correspondence address; PRIMARY/SECONDARY = practice locations. Leave 'any' for no filter.",
            "default": "any"
          },
          "maxRecords": {
            "title": "Max Records",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap across all queries. Set 0 for unlimited (each query paginates 200 records at a time).",
            "default": 100
          },
          "requestDelay": {
            "title": "Request Delay (ms)",
            "minimum": 100,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between API calls. CMS rate-limits soft; 500-2000ms is polite.",
            "default": 800
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional. CMS NPPES is a public unrestricted API — proxy NOT required."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}