{
  "openapi": "3.0.1",
  "info": {
    "title": "South Carolina Contractor License Lookup & Verify (SC LLR)",
    "description": "Search and verify South Carolina contractors by name, license number, city, or classification — license #, status, type, and city — from the official SC LLR registry.",
    "version": "0.0",
    "x-build-id": "uqZbvOsgKE3NQQ8td"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~south-carolina-contractor-license-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-south-carolina-contractor-license-lookup",
        "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/scrapebench~south-carolina-contractor-license-lookup/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-south-carolina-contractor-license-lookup",
        "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/scrapebench~south-carolina-contractor-license-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-south-carolina-contractor-license-lookup",
        "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": "Mode",
            "enum": [
              "auto",
              "lookup",
              "export"
            ],
            "type": "string",
            "description": "auto (default): a name, licence number, city or classification below runs the LIVE search; the export keys further down (cities, ZIPs, classifications, licence types, statewide) run the statewide export. lookup: live search only. export: the statewide export, live-search keys read as its filters.",
            "default": "auto"
          },
          "queries": {
            "title": "Names or licence numbers (batch)",
            "type": "array",
            "description": "Each value is its own live search (one CAPTCHA solve and one search fee each): a licence number, else a business or last name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Name or licence number",
            "type": "string",
            "description": "One value; same as the batch list."
          },
          "lastName": {
            "title": "Company / last name",
            "type": "string",
            "description": "Search by business name or an individual licensee's last name (partial matches allowed, e.g. 'Smith'). Combine with other fields to narrow results."
          },
          "firstName": {
            "title": "First name",
            "type": "string",
            "description": "Individual licensee's first name. Only useful together with a last name."
          },
          "licenseNumber": {
            "title": "License number",
            "type": "string",
            "description": "Exact SC contractor license number (numeric, e.g. '116578'). When set, returns that specific license."
          },
          "licenseNumbers": {
            "title": "License number (batch)",
            "type": "array",
            "description": "Look up many in ONE run instead of starting a run per lookup. Takes the same values as 'License number'. Combined with 'License number' if you fill both, and duplicates are removed. Billing is unchanged: you are charged per record returned, not per entry submitted.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Filter results to a licensee city (e.g. 'Columbia')."
          },
          "classification": {
            "title": "Classification",
            "enum": [
              "All",
              "AC",
              "AP",
              "BL",
              "BT",
              "BR",
              "BD",
              "CT",
              "CP",
              "CCM",
              "EL",
              "GG",
              "GD",
              "HT",
              "HY",
              "HI",
              "LP",
              "MR",
              "MS",
              "MM",
              "NR",
              "PK",
              "PL",
              "PB",
              "MB",
              "1P",
              "1U",
              "RR",
              "RG",
              "RF",
              "SF",
              "SP",
              "CLT",
              "WL",
              "WP",
              "WF"
            ],
            "type": "string",
            "description": "Filter to a contractor classification. 'All' returns every classification (must be combined with another field). Tip: a name or classification search returns many licenses from one lookup.",
            "default": "All"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on the number of records returned PER ENTRY, not per run — so a batch cannot silently return only the first 50 rows overall and read as 'the rest don't exist'. Defaults to 50. Unset: 50 per live search; every match per export search."
          },
          "cities": {
            "title": "Cities (batch)",
            "type": "array",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Several cities in ONE run, each searched separately. Combined with 'City' if you fill both.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zip": {
            "title": "ZIP code (exact)",
            "type": "string",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): A 5-digit ZIP code, matched against the licence's address ZIP, e.g. '29209'."
          },
          "zips": {
            "title": "ZIP codes (batch)",
            "type": "array",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Several ZIP codes in ONE run, each searched separately.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "classifications": {
            "title": "Classifications (batch)",
            "type": "array",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Several classifications in ONE run. A contractor holding two of them is returned (and billed) once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "licenseType": {
            "title": "Licence type",
            "type": "string",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Filter by licence type, e.g. 'General Contractor', 'Mechanical Contractor', 'Construction Manager'. A word from the type is enough."
          },
          "licenseTypes": {
            "title": "Licence types (batch)",
            "type": "array",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Several licence types; a licence matching any of them is kept.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Statuses",
            "type": "array",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Licence statuses to include, e.g. Active, Lapsed, Suspended, Closed. Default: Active only. Empty list = every status (the roster keeps every licence ever issued, and only about 45% are Active). Unset: Active on the export; every status on a live search (a live search filters its rows by these words when set).",
            "items": {
              "type": "string"
            }
          },
          "statewide": {
            "title": "Statewide export",
            "type": "boolean",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Return every licence that passes the status, licence-type and state filters, with no city, ZIP or classification. Without it, a run with no city, ZIP, classification or licence type returns the free Discovery lists instead.",
            "default": false
          },
          "inSouthCarolinaOnly": {
            "title": "South Carolina addresses only",
            "type": "boolean",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): Keep only licences with a South Carolina address. Many commercial licences are held by out-of-state firms (most often North Carolina and Georgia); turn this off to include them. Unset = on."
          },
          "listOptionsOnly": {
            "title": "Discovery Mode: list cities and classifications only",
            "type": "boolean",
            "description": "Statewide export (a monthly snapshot of SC LLR's Commercial Contractors board, no CAPTCHA, no search fee): If true, return every city and every classification (with its code) on the roster, each with its count of licences. Free, not charged.",
            "default": false
          },
          "status": {
            "title": "Status",
            "type": "string",
            "description": "One status; same as Statuses."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, for the live search only (the export never contacts LLR). LLR is reachable directly; set a proxy only if a run is blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}