{
  "openapi": "3.0.1",
  "info": {
    "title": "NPI Registry Scraper - Healthcare Provider Leads with Phone",
    "description": "NPI Registry / NPPES scraper: US clinics, practices, pharmacies, home health agencies and doctors by specialty, city, state, ZIP or NPI, with phone, fax, address, licence, authorized official and new-NPI dates. No 1,200-row cap. $0.30 per 1,000, no start fee.",
    "version": "1.0",
    "x-build-id": "yT5hfRgkAvmVtGjiZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~npi-healthcare-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-npi-healthcare-leads-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/rel8ble~npi-healthcare-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-npi-healthcare-leads-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/rel8ble~npi-healthcare-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-npi-healthcare-leads-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": {
          "taxonomies": {
            "title": "Specialties / taxonomies",
            "type": "array",
            "description": "Provider taxonomy words as CMS names them, one per line: Dentist, Pharmacy, Home Health, Physical Therapist, Chiropractor, Clinic/Center, Hospice, Nursing Facility, Durable Medical Equipment, Optometrist, Psychologist, Ambulance ... (partial words match, * allowed at the end, e.g. pharm*). Each taxonomy is searched in every location you give. Leave empty to get every provider in the locations.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Practice-location cities as \"City, ST\" (Austin, TX / Boise, Idaho), one per line.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter codes or state names (TX, California ...), one per line; the whole state is read (big states are split by ZIP automatically, so there is no 1,200-row cap). With organization names, states only narrow the name search.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "ZIP codes / prefixes",
            "type": "array",
            "description": "Practice-location ZIP codes or prefixes, 2-5 digits: 78701 = one ZIP, 787 = the Austin area, 02 = most of New England.",
            "items": {
              "type": "string"
            }
          },
          "providerType": {
            "title": "Provider type",
            "enum": [
              "organizations",
              "individuals",
              "both"
            ],
            "type": "string",
            "description": "organizations = clinics, practices, pharmacies, agencies, hospitals, suppliers (NPI type 2, with the authorized official); individuals = practitioners (NPI type 1); both = run every search for each type.",
            "default": "organizations"
          },
          "organizationNames": {
            "title": "Organization names",
            "type": "array",
            "description": "Optional organization-name searches (prefix match, 2+ characters, * allowed at the end): \"smile*\", \"urgent care\", \"CVS\". Combined with taxonomies and states when given.",
            "items": {
              "type": "string"
            }
          },
          "npiNumbers": {
            "title": "NPI numbers (bulk lookup)",
            "type": "array",
            "description": "Optional list of 10-digit NPI numbers or NPPES provider-view links, one per line, to enrich in bulk (check digit validated; not found / deactivated numbers are listed in RUN_SUMMARY and never charged).",
            "items": {
              "type": "string"
            }
          },
          "enumeratedWithinDays": {
            "title": "New providers: NPI issued in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only providers whose NPI was issued in the last N days (new practices, new agencies, newly licensed practitioners). The NPI API cannot filter by date, so the whole search area is read and filtered here; narrow it with taxonomies or states for speed. 0 = any date."
          },
          "enumeratedAfter": {
            "title": "NPI issued on or after",
            "type": "string",
            "description": "YYYY-MM-DD or relative (\"6 months\"). Optional."
          },
          "enumeratedBefore": {
            "title": "NPI issued on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Optional."
          },
          "updatedAfter": {
            "title": "Record updated on or after",
            "type": "string",
            "description": "Only providers whose NPPES record was updated on or after this date (moved, changed phone, new taxonomy). YYYY-MM-DD or \"90 days\"."
          },
          "primaryTaxonomyOnly": {
            "title": "Taxonomy must be the primary one",
            "type": "boolean",
            "description": "On (default): keep only providers whose PRIMARY taxonomy matches your taxonomy word (cleaner lists; a hospital with one dentist on staff is not a dental practice). Off: any of the provider's taxonomies may match.",
            "default": true
          },
          "withPhoneOnly": {
            "title": "Only with practice phone",
            "type": "boolean",
            "description": "Keep only providers that list a practice-location phone number.",
            "default": false
          },
          "withDirectEmailOnly": {
            "title": "Only with Direct secure email",
            "type": "boolean",
            "description": "Keep only providers that publish a Direct Messaging (HIE secure email) address in NPPES. Few providers do (about 1-3%).",
            "default": false
          },
          "excludeSubparts": {
            "title": "Exclude organization subparts",
            "type": "boolean",
            "description": "Drop subpart NPIs (departments / locations registered under a parent organization) and keep head organizations and independents.",
            "default": false
          },
          "maxResults": {
            "title": "Max providers",
            "minimum": 0,
            "type": "integer",
            "description": "Total rows to save across all searches (0 = every match). Each saved provider is one billed result.",
            "default": 100
          },
          "maxResultsPerSearch": {
            "title": "Max providers per search",
            "minimum": 0,
            "type": "integer",
            "description": "Cap for each taxonomy x location search, so one big city does not use the whole budget (0 = no per-search cap).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}