{
  "openapi": "3.0.1",
  "info": {
    "title": "North Carolina Electrical License Search",
    "description": "Search official NCBEEC records and export North Carolina electrical license status, classification, holder, expiration, and public contact fields.",
    "version": "0.1",
    "x-build-id": "DuqRfP5gqNxKzWoiY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~north-carolina-electrical-license-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-north-carolina-electrical-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/automation-lab~north-carolina-electrical-license-search/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-north-carolina-electrical-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/automation-lab~north-carolina-electrical-license-search/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-north-carolina-electrical-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": {
          "licenseNumber": {
            "title": "License number",
            "type": "string",
            "description": "One NCBEEC license number, such as 34585, I.34585 or U.00196-01. The board searches the base number; an entered classification prefix (I., L., U., SP.FA/LV.) or suffix (-01) then narrows the result to that exact license, while the bare number returns every classification and suffix. Combined with any other filters you enter. To verify several licenses in one run, use License numbers (bulk verification)."
          },
          "licenseNumbers": {
            "title": "License numbers (bulk verification)",
            "maxItems": 50,
            "type": "array",
            "description": "Verify up to 50 NCBEEC license numbers in one run, one per line, with the same matching as License number (for example 34585, I.34585 or U.00196-01). License number above is added to this list, and any other filters you enter (classification, city, etc.) apply to every lookup. Entries that are not license numbers are rejected. Duplicate numbers and duplicate records are removed. Numbers with no match, or not reached because Maximum licenses applies to the whole run, are listed in the run's RUN_SUMMARY record and are not charged.",
            "items": {
              "type": "string"
            }
          },
          "companyName": {
            "title": "Company or holder name",
            "type": "string",
            "description": "Business or account-holder name. Partial names are supported."
          },
          "firstName": {
            "title": "First name",
            "type": "string",
            "description": "License holder's first name."
          },
          "lastName": {
            "title": "Last name",
            "type": "string",
            "description": "License holder's last name."
          },
          "phoneNumber": {
            "title": "Phone number",
            "type": "string",
            "description": "Public phone-number search filter."
          },
          "streetAddress": {
            "title": "Street address",
            "type": "string",
            "description": "Public street-address search filter."
          },
          "postalCode": {
            "title": "ZIP code",
            "pattern": "^[0-9]{5}$",
            "type": "string",
            "description": "Five-digit ZIP code."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City in the public license address."
          },
          "stateCode": {
            "title": "State code",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter state code."
          },
          "classification": {
            "title": "Electrical classification",
            "enum": [
              "intermediate",
              "limited",
              "residential",
              "electric_sign",
              "elevator",
              "fire_alarm_low_voltage",
              "groundwater_pump",
              "plumbing_hvac",
              "swimming_pool",
              "unlimited"
            ],
            "type": "string",
            "description": "Limit results to one NCBEEC electrical license classification."
          },
          "useSoundex": {
            "title": "Use name-similarity search",
            "type": "boolean",
            "description": "Use the regulator's Soundex matching for person names.",
            "default": false
          },
          "activeOnly": {
            "title": "Active licenses only",
            "type": "boolean",
            "description": "Keep only records whose detailed NCBEEC status is exactly Active. Terminated, Inactive, Suspended, Expired, “License Not Valid” and any unrecognized status are excluded. More matches may be inspected to reach Maximum licenses; only saved records are charged.",
            "default": false
          },
          "includeQualifiers": {
            "title": "Include qualifiers",
            "type": "boolean",
            "description": "Also load the official qualifier table linked to each license and return it as a qualifiers array (qualifier name, qualifier number and status). Adds one regulator request per license; no extra charge. When off, qualifiers is null; when on and the board lists none, it is an empty array.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum licenses",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of license records saved and charged in this run, shared across all license numbers and filters (1–1,000). With Active licenses only, more matches may be inspected to fill this limit.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}