{
  "openapi": "3.0.1",
  "info": {
    "title": "QBCC, NSW & VIC Licence Check — Builders, Plumbers & Trades",
    "description": "Verify Australian builder, plumber and trade licences in bulk: QBCC (QLD, live status), NSW and Victorian (BPC) registers by licence number, ABN or name. Status, expiry, classes, conditions, disciplinary history, change feeds and alerts when a licence lapses.",
    "version": "0.1",
    "x-build-id": "gX6FDNY8iR44TOfaa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/he_work~au-trade-licence-check/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-he_work-au-trade-licence-check",
        "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/he_work~au-trade-licence-check/runs": {
      "post": {
        "operationId": "runs-sync-he_work-au-trade-licence-check",
        "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/he_work~au-trade-licence-check/run-sync": {
      "post": {
        "operationId": "run-sync-he_work-au-trade-licence-check",
        "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": {
          "mode": {
            "title": "What to do",
            "enum": [
              "verify",
              "changes",
              "register"
            ],
            "type": "string",
            "description": "Check: look up the licence numbers, ABNs / ACNs and names below in QLD, NSW and VIC. Changes: QBCC suspensions and cancellations and BPC (VIC) prosecutions / disciplinary actions since a date. Register export: every QBCC (QLD) and BPC building (VIC) licence holder matching your trade / area filters.",
            "default": "verify"
          },
          "licenceNumbers": {
            "title": "Licence numbers",
            "type": "array",
            "description": "QBCC numbers (digits, e.g. 15072731), NSW numbers (e.g. 333017C, BUP0002948), VIC building registrations (e.g. CDB-U 73774, DB-U 1234), VIC plumber numbers (digits) and interstate ADR numbers (ADR-123456). Digits-only numbers are checked in every selected state unless you write QLD:12345, NSW:12345 or VIC:12345.",
            "items": {
              "type": "string"
            }
          },
          "abns": {
            "title": "ABNs / ACNs",
            "type": "array",
            "description": "Find every licence held under these ABNs (11 digits) or ACNs (9 digits): QLD, NSW and VIC building practitioners.",
            "items": {
              "type": "string"
            }
          },
          "names": {
            "title": "Names",
            "type": "array",
            "description": "Licensee or business names (partial names work). NSW returns at most 200 matches per name and register; VIC up to 100 per register.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Registers to search.",
            "items": {
              "type": "string",
              "enum": [
                "QLD",
                "NSW",
                "VIC"
              ],
              "enumTitles": [
                "Queensland (QBCC)",
                "New South Wales (Verify NSW)",
                "Victoria (BPC: builders and plumbers)"
              ]
            },
            "default": [
              "QLD",
              "NSW",
              "VIC"
            ]
          },
          "vicRegisters": {
            "title": "VIC registers",
            "type": "array",
            "description": "Which Victorian registers to search.",
            "items": {
              "type": "string",
              "enum": [
                "building",
                "plumbing"
              ],
              "enumTitles": [
                "Building practitioners (builders, surveyors, inspectors, designers, demolishers…)",
                "Plumbers (licences and registrations)"
              ]
            },
            "default": [
              "building",
              "plumbing"
            ]
          },
          "liveStatus": {
            "title": "Live QLD status",
            "type": "boolean",
            "description": "Confirm each QLD licence on QBCC's live register: the current status of every class (active, suspended, cancelled…) and whether conditions apply. Also finds QLD licences cancelled in earlier years. Recommended.",
            "default": true
          },
          "includeCompliance": {
            "title": "VIC compliance history",
            "type": "boolean",
            "description": "Match VIC practitioners against the BPC Compliance and Enforcement Register (prosecutions, disciplinary actions, immediate suspensions).",
            "default": true
          },
          "nswRegisters": {
            "title": "NSW registers",
            "type": "array",
            "description": "Which NSW registers to search. Trades = contractor licences, tradesperson certificates, qualified supervisors; DBP = design and building practitioners.",
            "items": {
              "type": "string",
              "enum": [
                "Trades",
                "DBP",
                "ADL",
                "Property",
                "Security",
                "Motor",
                "Conveyancer",
                "BOSSI"
              ],
              "enumTitles": [
                "Trades: Contractor licences, tradesperson certificates and qualified supervisors (builders, plumbers, electricians…)",
                "DBP: Design and building practitioners (Design & Building Practitioners Act)",
                "ADL: Asbestos removal, asbestos assessor and demolition licences",
                "Property: Property and real estate agents",
                "Security: Security industry licences",
                "Motor: Motor dealers, repairers and recyclers",
                "Conveyancer: Conveyancers",
                "BOSSI: Registered surveyors"
              ]
            },
            "default": [
              "Trades",
              "DBP"
            ]
          },
          "includeDetails": {
            "title": "NSW details",
            "type": "boolean",
            "description": "For each NSW licence, also read the full record: every licence class with dates, compliance history (disciplinary actions, penalty notices, prosecutions…) and directors / nominated supervisors.",
            "default": true
          },
          "changesInLastDays": {
            "title": "Changes in the last (days)",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Changes mode: suspensions / cancellations in this many days up to today.",
            "default": 7
          },
          "changesSince": {
            "title": "Changes since (date)",
            "type": "string",
            "description": "Changes mode: start date (overrides the number of days). QBCC publishes events for the current financial year (from 1 July)."
          },
          "changeTypes": {
            "title": "Change types",
            "type": "array",
            "description": "Which events to return. Each QLD event also shows the licence's status now (live register).",
            "items": {
              "type": "string",
              "enum": [
                "suspended",
                "cancelled",
                "compliance"
              ],
              "enumTitles": [
                "QLD suspensions",
                "QLD cancellations",
                "VIC prosecutions, disciplinary actions & immediate suspensions"
              ]
            },
            "default": [
              "suspended",
              "cancelled",
              "compliance"
            ]
          },
          "licenceClasses": {
            "title": "Licence classes",
            "type": "array",
            "description": "Keep licences with a class containing any of these, e.g. 'Plumbing', 'Builder - Low Rise', 'Domestic Builder'.",
            "items": {
              "type": "string"
            }
          },
          "licenceGrades": {
            "title": "Licence grades",
            "type": "array",
            "description": "e.g. 'Builder Licence', 'Trade Contractor Licence', 'Nominee Supervisor'.",
            "items": {
              "type": "string"
            }
          },
          "postcodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Business address postcodes, e.g. 4000, 4217.",
            "items": {
              "type": "string"
            }
          },
          "suburbs": {
            "title": "Suburbs",
            "type": "array",
            "description": "Business address suburbs, e.g. Robina, Toowoomba.",
            "items": {
              "type": "string"
            }
          },
          "licenseeType": {
            "title": "Licensee type",
            "enum": [
              "any",
              "company",
              "individual"
            ],
            "type": "string",
            "description": "Companies only, individuals only, or both.",
            "default": "any"
          },
          "currentOnly": {
            "title": "Current registrations only (VIC export)",
            "type": "boolean",
            "description": "VIC register export: leave out expired, cancelled and suspended registrations.",
            "default": true
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows (0 = no limit).",
            "default": 0
          },
          "useProxy": {
            "title": "Retry through Apify Proxy",
            "type": "boolean",
            "description": "When a register refuses a request three times, retry it through Apify Proxy.",
            "default": true
          },
          "watchListName": {
            "title": "Watch list name",
            "type": "string",
            "description": "Any name, e.g. 'my-subbies'. Runs with the same name compare against each other: licences get change_status new / changed (status, expiry, classes or compliance changed) / unchanged. Schedule a daily check of your subcontractors and get alerted when a licence lapses."
          },
          "onlyNewItems": {
            "title": "Only new / changed items",
            "type": "boolean",
            "description": "With a watch list name: skip (and don't charge for) items that were already seen and haven't changed.",
            "default": false
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL. Gets a digest of new / changed items after each run."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "From @BotFather. Use together with the chat ID."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Chat, group or channel ID that receives the digest (e.g. -1001234567890)."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Discord channel webhook URL. Gets the digest."
          },
          "googleSheetsWebAppUrl": {
            "title": "Google Sheets web app URL",
            "type": "string",
            "description": "Deploy the 10-line Apps Script from the README in your sheet and paste its web app URL: every new / changed item is appended as a row."
          },
          "notifyEmail": {
            "title": "Email digest to",
            "type": "string",
            "description": "Email address for the digest (sent with Apify's send-mail Actor)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}