{
  "openapi": "3.0.1",
  "info": {
    "title": "NC Contractor License Lookup & Verify — North Carolina",
    "description": "Verify North Carolina general contractor licenses in the NCLBGC portal by number, name, qualifier, city or ZIP: status, limitation, qualifiers. USD 3 per 1,000.",
    "version": "1.1",
    "x-build-id": "wnzk1teiQyOmjq4BL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muhammadafzal~nc-licensing-board-general-contractors-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muhammadafzal-nc-licensing-board-general-contractors-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/muhammadafzal~nc-licensing-board-general-contractors-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muhammadafzal-nc-licensing-board-general-contractors-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/muhammadafzal~nc-licensing-board-general-contractors-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muhammadafzal-nc-licensing-board-general-contractors-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": {
          "licenseNumber": {
            "title": "License number",
            "maxLength": 40,
            "type": "string",
            "description": "Use this for an exact NCLBGC license lookup. Enter digits such as 3194 or the displayed format L.03194; the Actor normalizes the prefix. Omit it when searching by company, person, qualifier, or location."
          },
          "qualifierNumber": {
            "title": "Qualifier number",
            "maxLength": 40,
            "type": "string",
            "description": "Use this for an exact qualifier lookup. Enter digits such as 286 or the displayed format Q.00286; the Actor normalizes the prefix. The output includes public license accounts associated with that qualifier."
          },
          "companyName": {
            "title": "Company or licensee name",
            "maxLength": 200,
            "type": "string",
            "description": "Use this to find a licensed business by the name shown in the NCLBGC portal. Enter a company such as Barnhill Contracting Company; matching is controlled by the Board. This is not a county or web-wide business search."
          },
          "licenseName": {
            "title": "License name (legacy alias)",
            "maxLength": 200,
            "type": "string",
            "description": "Use this for existing integrations that still send licenseName. Enter a company or licensee name, such as Barnhill Contracting Company. New integrations should use companyName; this does not search county records."
          },
          "firstName": {
            "title": "Qualifier first name",
            "maxLength": 100,
            "type": "string",
            "description": "Use this to search a qualifier or person by first name. Enter a name such as Michael; combine with lastName for a narrower lookup. This is not an email or contact-enrichment search."
          },
          "lastName": {
            "title": "Qualifier last name",
            "maxLength": 100,
            "type": "string",
            "description": "Use this to search a qualifier or person by last name. Enter a name such as Taylor; combine with firstName to narrow results. This is not an email or contact-enrichment search."
          },
          "phoneNumber": {
            "title": "Phone number",
            "maxLength": 40,
            "type": "string",
            "description": "Use this to find public NCLBGC accounts by the phone value shown in the portal. Enter the supplied digits or punctuation; this is not a reverse-phone or carrier lookup."
          },
          "includeSoundex": {
            "title": "Include like-sounding names",
            "type": "boolean",
            "description": "Enable the official portal's like-sounding-name option when searching by firstName or lastName. Default is false; it does not widen license-number or location searches.",
            "default": false
          },
          "classificationType": {
            "title": "License classification",
            "enum": [
              "Unclassified",
              "Building",
              "Residential",
              "Highway",
              "Public Utilities",
              "H (Grading & Excavating)",
              "PU (Communications)",
              "PU(Electrical-Ahead of P.O.D.)",
              "PU (Fuel Distribution)",
              "PU (Sewage Disposal)",
              "PU (Sewer Lines)",
              "PU (Water Lines)",
              "PU(Water Lines & Sewer Lines)",
              "PU(Water Pur. & Sewage Disp.)",
              "PU(Water Purification)",
              "S (Boring & Tunneling)",
              "S (Concrete Construction)",
              "S (Insulation)",
              "S (Interior Construction)",
              "S (Marine Construction)",
              "S (Masonry Construction)",
              "S (Metal Erection)",
              "S (Railroad Construction)",
              "S (Roofing)",
              "S (Sidewalk Curb & Gutter)",
              "S (Swimming Pools)",
              "S (Wind Turbine)",
              "S (Asbestos)",
              "Accredited Builder",
              "Accredited Master Builder",
              "S (Sign/Billboard)"
            ],
            "type": "string",
            "description": "Combine an NCLBGC classification such as Residential, Building, or Highway with another search field, such as city, ZIP, license number, or company name. The official form rejects classification by itself."
          },
          "streetAddress": {
            "title": "Street address",
            "maxLength": 200,
            "type": "string",
            "description": "Use this to search the official portal's streetAddress field. Enter an address such as 5400 Creedmoor Road; this is a text search, not a radius or map search."
          },
          "address": {
            "title": "Address (legacy alias)",
            "maxLength": 200,
            "type": "string",
            "description": "Use this for existing integrations that still send address. Enter street text such as 5400 Creedmoor Road. New integrations should use streetAddress; city and ZIP have their own fields."
          },
          "postalCode": {
            "title": "ZIP code",
            "pattern": "^[0-9]{5}$",
            "maxLength": 5,
            "type": "string",
            "description": "Use this to search the portal by a five-digit ZIP code, such as 27612. ZIP+4 is not accepted by this form; use city or streetAddress for broader location lookup."
          },
          "city": {
            "title": "City",
            "maxLength": 100,
            "type": "string",
            "description": "Use this to search the official portal by city name, such as Raleigh or Rocky Mount. This is a text filter, not a radius search or county filter."
          },
          "stateCode": {
            "title": "State abbreviation",
            "pattern": "^[A-Za-z]{2}$",
            "maxLength": 2,
            "type": "string",
            "description": "Use this for the public portal's two-letter state filter, such as NC. Pair it with another search field; the official form rejects a state-only search as too broad."
          },
          "county": {
            "title": "County (legacy, not searched)",
            "maxLength": 100,
            "type": "string",
            "description": "Accepted only for compatibility with older inputs. The NCLBGC public form has no county filter, so this value is ignored and a warning is added. Use city or postalCode instead; county alone is rejected."
          },
          "maxResults": {
            "title": "Maximum result records",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Use this to cap license or qualifier records and event charges. Default is 25; maximum is 250.",
            "default": 25
          },
          "maxPages": {
            "title": "Maximum result-table pages",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Use this to limit how many 10-row pages from the official search table are inspected. Default is 5 and maximum is 25. The portal returns one HTML table; this does not issue separate page requests.",
            "default": 5
          },
          "requestDelayMs": {
            "title": "Delay between portal requests (ms)",
            "minimum": 250,
            "maximum": 5000,
            "type": "integer",
            "description": "Use this to control the gap between official NCLBGC requests. Default is 1200 ms; accepted range is 250–5000 ms. Values below 1000 ms are raised to 1000 ms by the Actor.",
            "default": 1200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}