{
  "openapi": "3.0.1",
  "info": {
    "title": "Contractor License Search & Leads – 9 US States",
    "description": "Search 715,000+ official contractor licenses from 9 states: California CSLB, Texas TDLR, Washington L&I, NY, VA, MN, CT, CO, OR. Filter by trade, city, ZIP, status, new and expiring licenses. Phone, address, owner, bond and insurance.",
    "version": "0.1",
    "x-build-id": "H2LaB4r7lqj2n0Xiz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neobuster~us-contractor-license-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neobuster-us-contractor-license-search",
        "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/neobuster~us-contractor-license-search/runs": {
      "post": {
        "operationId": "runs-sync-neobuster-us-contractor-license-search",
        "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/neobuster~us-contractor-license-search/run-sync": {
      "post": {
        "operationId": "run-sync-neobuster-us-contractor-license-search",
        "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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "License states to search. Leave empty for all: California (~245k licenses), Washington (~160k registrations incl. expired), Oregon (~46k active licenses), New York (~50k: NYC home improvement contractors, NYC Buildings contractors, public work registry, mold and elevator contractors), Connecticut (~48k active contractor credentials), Texas (~38k electrical, A/C, sign, appliance, elevator and water well contractors), Colorado (~18k electrical and plumbing contractors), Virginia (~54k Class A, B and C contractors), Minnesota (~56k residential, electrical, plumbing, mechanical and other contractor businesses and contractor registrations).",
            "items": {
              "type": "string",
              "enum": [
                "CA",
                "WA",
                "OR",
                "NY",
                "TX",
                "CT",
                "CO",
                "VA",
                "MN"
              ],
              "enumTitles": [
                "California (CSLB)",
                "Washington (L&I)",
                "Oregon (CCB)",
                "New York (NYS DOL, NYC DCWP and Buildings)",
                "Texas (TDLR)",
                "Connecticut (DCP)",
                "Colorado (DORA)",
                "Virginia (DPOR)",
                "Minnesota (DLI)"
              ]
            }
          },
          "trades": {
            "title": "Trades",
            "type": "array",
            "description": "Keep contractors licensed for any of these trades. Trades are mapped from each state's own classes (CA classifications like C-10 Electrical, WA specialties, OR endorsements). Oregon trades come from its Building Codes Division licenses (electrical, plumbing, boiler/HVAC, elevator, sign, pump, solar electrical); other Oregon contractors (roofing, painting…) only match General contractor. New York's statewide public work registry has no trades (NYC and NYS mold/elevator licenses do); use Keyword for the rest of NY. Leave empty for all trades.",
            "items": {
              "type": "string",
              "enum": [
                "general-contractor",
                "handyman",
                "electrical",
                "plumbing",
                "hvac",
                "roofing",
                "solar",
                "painting",
                "drywall-plaster",
                "insulation",
                "carpentry",
                "flooring-tile",
                "concrete-masonry",
                "landscaping",
                "tree-service",
                "excavation-paving",
                "demolition",
                "fencing",
                "pool-spa",
                "windows-glass",
                "doors-locks-security",
                "siding-gutters-decks",
                "metal-welding",
                "fire-protection",
                "asbestos-hazmat",
                "elevator",
                "signs",
                "well-septic-water",
                "manufactured-housing",
                "home-inspection"
              ],
              "enumTitles": [
                "General contractor / builder",
                "Handyman / home services",
                "Electrical",
                "Plumbing",
                "HVAC / refrigeration",
                "Roofing",
                "Solar",
                "Painting / wallcovering",
                "Drywall / plaster / ceilings",
                "Insulation / weatherization",
                "Carpentry / framing / cabinets",
                "Flooring / tile / countertops",
                "Concrete / masonry",
                "Landscaping / irrigation",
                "Tree service",
                "Excavation / earthwork / paving",
                "Demolition / building moving",
                "Fencing",
                "Pools / spas",
                "Windows / glass / glazing",
                "Doors / gates / locks / security",
                "Siding / gutters / decks / awnings",
                "Steel / metal / welding",
                "Fire protection",
                "Asbestos / lead / mold / hazardous materials",
                "Elevators",
                "Signs",
                "Wells / septic / water treatment",
                "Manufactured / mobile homes",
                "Home inspection"
              ]
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City of the business address, e.g. \"Seattle\", \"Los Angeles\". Case-insensitive exact match.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "5-digit ZIP codes, or a 3-4 digit prefix for an area (e.g. 981 = Seattle area).",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "County name, e.g. \"Los Angeles\", \"Multnomah\", \"Harris\", \"Kings\". California, Oregon, Texas and NYC home improvement contractors only (Washington, Connecticut, Colorado, Virginia, Minnesota and other New York data have no county).",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Text that must appear in the business name, owner/principal name, license class or status details, e.g. \"solar\", \"smith\", or for New York \"electric\", \"MWBE\". Case-insensitive."
          },
          "statuses": {
            "title": "License status",
            "type": "array",
            "description": "Default: active only. Suspended = license suspended (e.g. bond or workers' comp lapsed). Expired and inactive records exist for Washington, Colorado, Minnesota and NYC home improvement contractors (and recently expired licenses for Texas and NY mold/elevator licenses); Connecticut, Virginia and the NY public work registry list current ones only.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "suspended",
                "expired",
                "inactive"
              ],
              "enumTitles": [
                "Active",
                "Suspended",
                "Expired",
                "Inactive / out of business"
              ]
            },
            "default": [
              "active"
            ]
          },
          "issuedWithinDays": {
            "title": "New licenses: issued in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only licenses first issued in the last N days, e.g. 30 = new contractors this month (fresh leads). Texas and NYC Buildings publish no issue dates, so they are left out. 0 = no limit."
          },
          "issuedAfter": {
            "title": "Issued on or after (date)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only licenses first issued on or after this date, format YYYY-MM-DD."
          },
          "expiringWithinDays": {
            "title": "Expiring in the next N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only licenses whose expiration date falls within the next N days (renewal, bond and insurance leads). 0 = no limit."
          },
          "requirePhone": {
            "title": "Only with phone number",
            "type": "boolean",
            "description": "Skip licenses without a valid US phone number. Connecticut, Colorado and Virginia publish no phone numbers.",
            "default": false
          },
          "inStateAddressOnly": {
            "title": "Only businesses located in the license state",
            "type": "boolean",
            "description": "Skip out-of-state firms (e.g. an Oregon company holding a Washington registration).",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many licenses. Use 0 for no limit. You pay only for licenses delivered.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}