{
  "openapi": "3.0.1",
  "info": {
    "title": "US NPI / NPPES Healthcare Clinics, Doctors & Official Leads",
    "description": "Extract US CMS NPPES NPI Registry clinics, medical groups, dental practices, hospitals & physicians with named Authorized Officials (CEO/Owner/Director), direct practice phones, faxes, state licenses & NUCC specialties.",
    "version": "1.0",
    "x-build-id": "n79Ord10aaq7cdMhE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~us-npi-nppes-healthcare-provider-clinic-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-us-npi-nppes-healthcare-provider-clinic-leads",
        "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/regpulse-data~us-npi-nppes-healthcare-provider-clinic-leads/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-us-npi-nppes-healthcare-provider-clinic-leads",
        "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/regpulse-data~us-npi-nppes-healthcare-provider-clinic-leads/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-us-npi-nppes-healthcare-provider-clinic-leads",
        "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": "Operation Mode",
            "enum": [
              "organization_leads",
              "individual_providers",
              "npi_lookup",
              "watchlist_diff"
            ],
            "type": "string",
            "description": "Select 'organization_leads' for NPI-2 clinics, medical practices, hospitals, dental groups, pharmacies & home health agencies (includes Authorized Officials), 'individual_providers' for NPI-1 physicians, dentists & specialists, 'npi_lookup' for exact 10-digit NPI batch verification, or 'watchlist_diff' for stateful registry change monitoring.",
            "default": "organization_leads"
          },
          "organizationName": {
            "title": "Organization Name (NPI-2)",
            "type": "string",
            "description": "Filter NPI-2 organizations by legal or DBA name. Supports CMS trailing wildcard '*' when at least 2 characters are entered (e.g., 'Mayo*', 'Dental*', 'Urgent Care')."
          },
          "firstName": {
            "title": "Provider First Name (NPI-1)",
            "type": "string",
            "description": "Filter NPI-1 individual providers by first name (supports trailing wildcard '*', e.g., 'John*'). Used in 'individual_providers' mode."
          },
          "lastName": {
            "title": "Provider Last Name (NPI-1)",
            "type": "string",
            "description": "Filter NPI-1 individual providers by last name (supports trailing wildcard '*', e.g., 'Smith*'). Used in 'individual_providers' mode."
          },
          "npiNumbers": {
            "title": "Exact 10-Digit NPI Numbers (for npi_lookup / watchlist_diff)",
            "type": "array",
            "description": "List of exact 10-digit NPI numbers to verify or monitor (e.g., ['1902215148', '1932369485']).",
            "items": {
              "type": "string"
            }
          },
          "taxonomyDescription": {
            "title": "Specialty / Taxonomy Description",
            "type": "string",
            "description": "CMS NUCC taxonomy description (e.g., 'Clinic/Center', 'Urgent Care', 'Dentist', 'Pharmacy', 'Home Health', 'General Acute Care Hospital', 'Internal Medicine', 'Physical Therapist'). If no other substantive filter is supplied, defaults automatically to 'Clinic/Center' (NPI-2) or 'Dentist' (NPI-1) so zero-config runs always return live leads."
          },
          "taxonomyDescriptions": {
            "title": "Multiple Specialties / Taxonomies (Fanout)",
            "type": "array",
            "description": "Optional list of multiple CMS taxonomy descriptions to query with automatic deduplication by NPI number (e.g., ['Clinic/Center', 'Urgent Care', 'Ambulatory Surgical']).",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "US States (2-Letter Codes)",
            "type": "array",
            "description": "Filter and fan out across multiple 2-letter US state/territory codes (e.g., ['CA', 'TX', 'NY', 'FL']). Fanning out across states/cities/ZIPs allows extracting beyond CMS's 1,200-record per-query cap.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "US Cities (Multi-City Fanout)",
            "type": "array",
            "description": "Filter and fan out across multiple US cities (e.g., ['New York', 'Austin', 'Miami', 'Chicago']) with automatic deduplication by NPI.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "US ZIP / Postal Codes (Multi-ZIP Fanout)",
            "type": "array",
            "description": "Filter and fan out across 5-digit ZIP codes or CMS wildcard prefixes (e.g., ['10001', '90210', '787*']) with automatic deduplication by NPI.",
            "items": {
              "type": "string"
            }
          },
          "hasPhoneOnly": {
            "title": "Require Phone Number Only",
            "type": "boolean",
            "description": "Only deliver records that include at least one telephone number (practice phone, authorized official phone, or mailing phone).",
            "default": false
          },
          "hasAuthorizedOfficialOnly": {
            "title": "Require Authorized Official Only (NPI-2 B2B Outreach)",
            "type": "boolean",
            "description": "Only deliver organization records that include a named Authorized Official (CEO, Owner, Managing Partner, Medical Director, Compliance Officer).",
            "default": false
          },
          "updatedSince": {
            "title": "Updated Since (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO date filter (YYYY-MM-DD) returning only providers whose CMS NPI lastUpdatedDate or enumerationDate is on or after this date."
          },
          "maxResults": {
            "title": "Maximum Records to Return",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of unique, deduplicated NPI records to deliver and charge (1 to 5,000). CMS caps any single query filter at 1,200 results; combine multiple states, cities, postalCodes, or taxonomyDescriptions to collect up to 5,000 records.",
            "default": 100
          },
          "stateStoreName": {
            "title": "Watchlist State Store Name (for watchlist_diff Mode)",
            "type": "string",
            "description": "Named persistent Apify Key-Value Store used to persist provider snapshots across runs in 'watchlist_diff' mode.",
            "default": "us-npi-nppes-watchlist-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}