{
  "openapi": "3.0.1",
  "info": {
    "title": "Licensed Professional Finder — State License Lookup & Contacts",
    "description": "Find licensed professionals by profession, state and city from official license boards: all US healthcare providers (NPI registry), CA/FL/TX attorneys, Texas real-estate and trade licenses, Florida insurance agents. License status, address, phone, website, e-mails. No login, dataset-only, MCP-ready.",
    "version": "0.1",
    "x-build-id": "n2iWMCs64jIdKpYee"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/inovaflow~licensed-professional-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-inovaflow-licensed-professional-finder",
        "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/inovaflow~licensed-professional-finder/runs": {
      "post": {
        "operationId": "runs-sync-inovaflow-licensed-professional-finder",
        "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/inovaflow~licensed-professional-finder/run-sync": {
      "post": {
        "operationId": "run-sync-inovaflow-licensed-professional-finder",
        "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",
        "required": [
          "profession",
          "states"
        ],
        "properties": {
          "profession": {
            "title": "Profession",
            "enum": [
              "physician",
              "dentist",
              "nurse",
              "nurse-practitioner",
              "physician-assistant",
              "pharmacist",
              "pharmacy",
              "chiropractor",
              "physical-therapist",
              "occupational-therapist",
              "optometrist",
              "podiatrist",
              "psychologist",
              "counselor",
              "social-worker",
              "dietitian",
              "speech-language-pathologist",
              "acupuncturist",
              "veterinarian",
              "home-health-agency",
              "healthcare-other",
              "lawyer",
              "realtor",
              "real-estate-broker",
              "home-inspector",
              "appraiser",
              "contractor",
              "hvac-contractor",
              "electrical-contractor",
              "electrician",
              "barber",
              "esthetician",
              "tow-operator",
              "property-tax-consultant",
              "water-well-driller",
              "auctioneer",
              "insurance-agent"
            ],
            "type": "string",
            "description": "Which licensed profession to list. Healthcare professions are served for every US state (NPI registry); lawyer = CA, FL, TX; realtor / real-estate broker / home inspector / appraiser / contractor / electrician / barber / esthetician / tow operator / property-tax consultant / water-well driller / auctioneer = TX; insurance agent = FL.",
            "default": "dentist"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "US states to search (two-letter codes or names). Each state is queried on every board that covers the profession there; states without a board for that profession are reported in the run summary, never guessed.",
            "default": [
              "TX"
            ],
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Narrow to one city. Required for the bar directories and FL DFS (they are not listable state-wide); optional for the NPI registry (practice-location city). TDLR publishes county only, so a city is resolved to its county there; TREC does not index the city at all (only the few records that carry one match — drop \"city\" for a state-wide Texas list or use \"names\")."
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "Narrow to a ZIP code (5 digits) or a ZIP prefix (3–4 digits, NPI registry only). Takes precedence over the city for the NPI registry."
          },
          "counties": {
            "title": "Counties (Texas trade licenses)",
            "type": "array",
            "description": "County names for TDLR trade licenses (e.g. [\"Travis\", \"Williamson\"]). TDLR's public files carry no street address or city, only the county.",
            "items": {
              "type": "string"
            }
          },
          "specialty": {
            "title": "Specialty / license class",
            "type": "string",
            "description": "Optional refinement. NPI: an NPPES taxonomy description (e.g. \"Orthodontics\", \"Family Medicine\", \"Midwife\") — replaces the profession's default taxonomies. TREC: a license sub-type (Salesperson, Broker Individual, Broker Company, Professional, Certified General …). FL DFS: a word of the license class to keep (e.g. \"HEALTH\", \"LIFE\", \"PROPERTY\")."
          },
          "licenseStatus": {
            "title": "License status",
            "enum": [
              "active",
              "any"
            ],
            "type": "string",
            "description": "\"active\" keeps only licensees the board shows as active / eligible / not expired; \"any\" returns every status.",
            "default": "active"
          },
          "names": {
            "title": "Names to verify",
            "type": "array",
            "description": "Verify a list instead of listing an area: one person per line (\"John Smith\" or \"Smith, John\"). Each name is looked up on every board for the profession and states given; a city narrows the match.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many licensees (all sources combined).",
            "default": 100
          },
          "enrichContacts": {
            "title": "Find website, e-mails & socials",
            "type": "boolean",
            "description": "For every licensee: find the practice/firm website (from the board or a name-matched web search), crawl it for e-mails and social profiles, and mine search results for attributed e-mails. Adds 5–30 s per licensee; the `contact` event is charged only when an e-mail or website was found.",
            "default": true
          },
          "onlyWithEmail": {
            "title": "Only rows with an e-mail",
            "type": "boolean",
            "description": "Deliver (and charge) only licensees with at least one e-mail address.",
            "default": false
          },
          "fetchDetails": {
            "title": "Fetch board detail pages",
            "type": "boolean",
            "description": "Read each licensee's detail page where the board's list lacks address, phone or dates (CA/FL/TX bars, FL DFS, TREC). Off = list fields only, faster.",
            "default": true
          },
          "includeOrganizations": {
            "title": "Include organisations",
            "type": "boolean",
            "description": "Keep organisation records (NPI-2 group practices, broker companies, LLCs) alongside individuals.",
            "default": true
          },
          "maxSearchQueries": {
            "title": "Web searches per licensee",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Search-engine queries used for website discovery and e-mail mining per licensee (0 = website crawl only).",
            "default": 2
          },
          "maxPagesPerSite": {
            "title": "Pages crawled per website",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Pages crawled per licensee website when enrichment is on (home + contact-like pages).",
            "default": 3
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel detail fetches and website crawls.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for the license boards and search engines. Every board answered Apify datacenter proxies during development; switch to residential if a board starts challenging.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}