{
  "openapi": "3.0.1",
  "info": {
    "title": "California DCA Professional License Scraper",
    "description": "California DCA license scraper & API: search Department of Consumer Affairs licenses across boards and export license number, type, status, name, address and expiry. Professional license verification and lead generation — fast, no login.",
    "version": "1.0",
    "x-build-id": "GHKjXIzjuYVUexqAK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~california-dca-license-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-california-dca-license-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~california-dca-license-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-california-dca-license-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~california-dca-license-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-california-dca-license-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": {
          "boards": {
            "title": "Boards",
            "type": "array",
            "description": "Pick one or more California boards / bureaus to download. Leave empty and the actor returns a fast mixed sample across popular boards.",
            "items": {
              "type": "string",
              "enum": [
                "Board of Pharmacy",
                "Board of Registered Nursing",
                "Board of Vocational Nursing and Psychiatric Technicians",
                "Medical Board of California",
                "Physician Assistant Board",
                "Osteopathic Medical Board",
                "Dental Board of California",
                "Dental Hygiene Board of California",
                "State Board of Optometry",
                "Board of Psychology",
                "Veterinary Medical Board",
                "Board of Chiropractic Examiners",
                "Acupuncture Board",
                "Naturopathic Medicine Committee",
                "Physical Therapy Board of California",
                "California Board of Occupational Therapy",
                "Respiratory Care Board of California",
                "Board of Behavioral Sciences",
                "Speech-Language Pathology and Audiology and Hearing Aid Dispensers Board",
                "Dietetics",
                "Contractors State License Board",
                "Board for Professional Engineers, Land Surveyors, and Geologists",
                "California Architects Board",
                "Landscape Architects Technical Committee",
                "California Board of Accountancy",
                "Cemetery and Funeral Bureau",
                "Board of Barbering and Cosmetology",
                "Court Reporters Board of California",
                "State Athletic Commission",
                "Guide Dogs for the Blind"
              ],
              "enumTitles": [
                "Board of Pharmacy (pharmacists, technicians, pharmacies)",
                "Board of Registered Nursing (RN, NP)",
                "Vocational Nursing & Psychiatric Technicians (LVN)",
                "Medical Board of California (physicians, surgeons)",
                "Physician Assistant Board",
                "Osteopathic Medical Board (DO)",
                "Dental Board of California (dentists, RDA)",
                "Dental Hygiene Board of California",
                "State Board of Optometry",
                "Board of Psychology",
                "Veterinary Medical Board",
                "Board of Chiropractic Examiners",
                "Acupuncture Board",
                "Naturopathic Medicine Committee",
                "Physical Therapy Board",
                "Occupational Therapy Board",
                "Respiratory Care Board",
                "Board of Behavioral Sciences (LMFT, LCSW, LPCC)",
                "Speech-Language Pathology, Audiology & Hearing Aid",
                "Dietetics & Nutrition",
                "Contractors State License Board (CSLB)",
                "Professional Engineers, Land Surveyors & Geologists",
                "California Architects Board",
                "Landscape Architects Technical Committee",
                "California Board of Accountancy (CPA)",
                "Cemetery & Funeral Bureau",
                "Board of Barbering & Cosmetology (BBC)",
                "Court Reporters Board",
                "State Athletic Commission",
                "Guide Dogs for the Blind"
              ]
            }
          },
          "licenseTypes": {
            "title": "License Type Keywords (optional)",
            "type": "array",
            "description": "Optional. Narrow results to specific license titles by keyword. Leave empty for all types on the selected boards. Case-insensitive partial match.",
            "items": {
              "type": "string"
            }
          },
          "licenseStatus": {
            "title": "License Status",
            "enum": [
              "all",
              "current",
              "active",
              "clear",
              "delinquent",
              "inactive",
              "cancelled",
              "expired",
              "suspended",
              "revoked"
            ],
            "type": "string",
            "description": "Filter by license status. Choose 'All Statuses' to include every record.",
            "default": "all"
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Pick one or more California counties to keep. Leave empty for all counties statewide.",
            "items": {
              "type": "string",
              "enum": [
                "Alameda",
                "Alpine",
                "Amador",
                "Butte",
                "Calaveras",
                "Colusa",
                "Contra Costa",
                "Del Norte",
                "El Dorado",
                "Fresno",
                "Glenn",
                "Humboldt",
                "Imperial",
                "Inyo",
                "Kern",
                "Kings",
                "Lake",
                "Lassen",
                "Los Angeles",
                "Madera",
                "Marin",
                "Mariposa",
                "Mendocino",
                "Merced",
                "Modoc",
                "Mono",
                "Monterey",
                "Napa",
                "Nevada",
                "Orange",
                "Placer",
                "Plumas",
                "Riverside",
                "Sacramento",
                "San Benito",
                "San Bernardino",
                "San Diego",
                "San Francisco",
                "San Joaquin",
                "San Luis Obispo",
                "San Mateo",
                "Santa Barbara",
                "Santa Clara",
                "Santa Cruz",
                "Shasta",
                "Sierra",
                "Siskiyou",
                "Solano",
                "Sonoma",
                "Stanislaus",
                "Sutter",
                "Tehama",
                "Trinity",
                "Tulare",
                "Tuolumne",
                "Ventura",
                "Yolo",
                "Yuba"
              ]
            }
          },
          "stateFilter": {
            "title": "State",
            "enum": [
              "",
              "CA",
              "AZ",
              "NV",
              "OR",
              "WA",
              "TX",
              "FL",
              "NY",
              "IL"
            ],
            "type": "string",
            "description": "Keep only licensees whose mailing address is in this state. Choose 'California only' for in-state, or 'All states' to include out-of-state (mail-order pharmacies, telehealth doctors, out-of-state contractors).",
            "default": ""
          },
          "maxRecords": {
            "title": "Max Records",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total records to output. Set 0 for unlimited. Some boards have 500K+ records, so keep a limit for quick runs.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for the download connection. The default works out of the box.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}