{
  "openapi": "3.0.1",
  "info": {
    "title": "Connecticut State Licenses & Credentials",
    "description": "All 2.67M Connecticut state credentials (public open data): every professional licence, business registration and brand registration the State issues. Holder name, credential type and number, issuing board, status, dates and address. Search by name, type, status, city or ZIP.",
    "version": "0.0",
    "x-build-id": "qTGpFe7FM7NcU9AgL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~ct-licenses/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-ct-licenses",
        "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/j0401~ct-licenses/runs": {
      "post": {
        "operationId": "runs-sync-j0401-ct-licenses",
        "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/j0401~ct-licenses/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-ct-licenses",
        "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": [
              "rows",
              "aggregate"
            ],
            "type": "string",
            "description": "rows = credentials matching your filters (default). aggregate = one count row per group (see groupBy).",
            "default": "rows"
          },
          "credentialId": {
            "title": "Credential ID",
            "type": "string",
            "description": "Exact State credential id. Blank = any.",
            "default": ""
          },
          "credentialNumber": {
            "title": "Credential number",
            "type": "string",
            "description": "Exact licence / credential number, e.g. 'RCG.0001234'. Blank = any.",
            "default": ""
          },
          "fullCredentialCode": {
            "title": "Full credential code",
            "type": "string",
            "description": "Exact full credential code. Blank = any.",
            "default": ""
          },
          "name": {
            "title": "Holder name",
            "type": "string",
            "description": "Credential holder name substring, e.g. 'SMITH'. Blank = any.",
            "default": ""
          },
          "businessName": {
            "title": "Business name",
            "type": "string",
            "description": "Business name substring. Populated on 27.8% of rows - most of this register is individuals. Blank = any.",
            "default": ""
          },
          "dba": {
            "title": "DBA",
            "type": "string",
            "description": "Trade name substring. Populated on only 7.5% of rows. Blank = any.",
            "default": ""
          },
          "type": {
            "title": "Credential category",
            "type": "string",
            "description": "The broad category of holder. INDIVIDUAL alone is 1,877,222 rows; the register also holds BUSINESS, LIMITED LIABILITY COMPANY, CORPORATION, LBD BRAND, EMPLOYEE ONLY, SOLE PROPRIETOR, PARTNERSHIP, NON-PROFIT CORPORATION and more. Matched case-insensitively. Without a type filter you are reading the whole state. Blank = any.",
            "default": ""
          },
          "credentialType": {
            "title": "Credential type",
            "type": "string",
            "description": "Exact credential type code, e.g. 'RCG', 'PEN', 'HIC', 'RES'. 518 distinct values in all - see the credentialSubcategory and fullCredentialCode fields for more detail. Blank = any.",
            "default": ""
          },
          "subcategory": {
            "title": "Credential subcategory",
            "type": "string",
            "description": "Subcategory substring. Populated on only 9.9% of rows. Blank = any.",
            "default": ""
          },
          "status": {
            "title": "Status",
            "type": "string",
            "description": "Exact State status. 19 values including ACTIVE, INACTIVE, ACTIVE IN RENEWAL, PENDING, QUALIFIED, LAPSED, EXPIRED APPLICATION, APPROVED, CLOSED, DENIED, RETIRED, ACTIVE UNDER REVIEW. Matched exactly - a substring match would return INACTIVE for ACTIVE. Blank = any.",
            "default": ""
          },
          "activeOnly": {
            "title": "Active only",
            "enum": [
              "",
              "true",
              "false"
            ],
            "type": "string",
            "description": "true = only credentials the State flags as active (866,941 rows). Blank = any.",
            "default": ""
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City substring. Blank = any.",
            "default": ""
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Two-letter address state, e.g. 'CT'. 190 distinct values plus a blank bucket - the register covers holders well beyond Connecticut. Blank = any.",
            "default": ""
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "Address ZIP, matched as a prefix (e.g. '06' for all 06xxx ZIPs). Blank = any.",
            "default": ""
          },
          "issuedFrom": {
            "title": "Issued on or after",
            "type": "string",
            "description": "Earliest issue date (YYYY-MM-DD). Blank = any.",
            "default": ""
          },
          "issuedTo": {
            "title": "Issued on or before",
            "type": "string",
            "description": "Latest issue date (YYYY-MM-DD), inclusive. Blank = any.",
            "default": ""
          },
          "expiringBefore": {
            "title": "Expiring before",
            "type": "string",
            "description": "Expiration cutoff, inclusive (YYYY-MM-DD), e.g. '2026-12-31'. Use with expiringFrom for a window. Blank = any.",
            "default": ""
          },
          "maxResults": {
            "title": "Max results",
            "type": "integer",
            "description": "Maximum rows to return in rows mode (1-10000). Default 50.",
            "default": 50
          },
          "expiringFrom": {
            "title": "Expiring on or after",
            "type": "string",
            "description": "Earliest expiration date (YYYY-MM-DD) for a renewal window, e.g. '2026-09-27'. Pair with expiringBefore - expiringBefore alone also returns everything already lapsed. Blank = any.",
            "default": ""
          },
          "groupBy": {
            "title": "Group by",
            "enum": [
              "status",
              "type",
              "state"
            ],
            "type": "string",
            "description": "aggregate mode only: the dimension to count by.",
            "default": "status"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}