{
  "openapi": "3.0.1",
  "info": {
    "title": "CT Business Registry - Companies, Filings & Officers",
    "description": "Connecticut's business register (1.3M companies) with its filing history, officers, registered agents and name changes: status, business type, NAICS, formation place, ownership flags and the dissolution reason, plus every filed document and the people behind the business - on one exact id.",
    "version": "0.0",
    "x-build-id": "Pqs8Vg3dE1bBgke7E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~ct-business-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-ct-business-registry",
        "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-business-registry/runs": {
      "post": {
        "operationId": "runs-sync-j0401-ct-business-registry",
        "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-business-registry/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-ct-business-registry",
        "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",
              "profile"
            ],
            "type": "string",
            "description": "rows = records matching your filters (default). aggregate = one count row per group (see groupBy). profile = one business's registry row plus its filings, officers, agents and name changes - requires businessId.",
            "default": "rows"
          },
          "corpus": {
            "title": "Corpus",
            "enum": [
              "entities",
              "filings",
              "principals",
              "agents",
              "nameChanges"
            ],
            "type": "string",
            "description": "entities = the register (1,297,469 businesses, default). filings = filed documents (10,065,884). principals = officers and directors (1,788,417). agents = registered agents (1,312,992). nameChanges = recorded name changes (96,505). Filters below apply to the corpus you pick.",
            "default": "entities"
          },
          "businessId": {
            "title": "Business ID",
            "type": "string",
            "description": "Exact Connecticut business id, e.g. '001t000000yGOECAA4'. The one key that ties a business to its filings, officers, agents and name changes.",
            "default": ""
          },
          "name": {
            "title": "Business name",
            "type": "string",
            "description": "Business name substring, e.g. 'TRANSPORT', 'HOLDINGS'. Blank = any. (entities corpus)",
            "default": ""
          },
          "status": {
            "title": "Status",
            "enum": [
              "",
              "Active",
              "Forfeited",
              "Dissolved",
              "Withdrawn",
              "Revoked",
              "Cancelled",
              "Merged",
              "Expired Reservation",
              "Rejected",
              "Expired",
              "Renunciated",
              "Reserved",
              "Domesticated",
              "Redomesticated",
              "Recorded",
              "Consolidation",
              "Converted Out",
              "Removed",
              "Converted",
              "Reserved Cancel",
              "Pending Withdrawal",
              "Registered",
              "Pending Filing",
              "Pending Merger",
              "Active - Pending Domestication",
              "Pending Conversion"
            ],
            "type": "string",
            "description": "Exact registration status (26 values). Active 460,739, Forfeited 357,172, Dissolved 319,109, Withdrawn 53,797, Revoked 46,479. Blank = any. (entities corpus)",
            "default": ""
          },
          "businessType": {
            "title": "Business type",
            "enum": [
              "",
              "LLC",
              "Stock",
              "Non-Stock",
              "Limited Partnership",
              "Religious",
              "LLP",
              "Statutory Trust",
              "Special Chartered",
              "Unknown",
              "General Partnerships",
              "Cemetery",
              "B Corp",
              "Insurance Stock",
              "Non-Stock Specially Chartered",
              "Bank Stock",
              "Credit Union Non-Stock",
              "Unauthorized",
              "Stock Specially Chartered",
              "Bank Non-Stock",
              "Insurance Non-Stock",
              "Cooperative Association",
              "Credit Union Stock"
            ],
            "type": "string",
            "description": "Exact business type (22 named values, plus a blank on 15,071 rows the source leaves unclassified). LLC 837,641, Stock 344,334, Non-Stock 65,346, Limited Partnership 19,039. Blank = any. (entities corpus)",
            "default": ""
          },
          "city": {
            "title": "Business city",
            "type": "string",
            "description": "Business-address city substring, e.g. 'Hartford', 'Stamford'. Blank = any. (entities corpus)",
            "default": ""
          },
          "state": {
            "title": "Business state",
            "type": "string",
            "description": "Two-letter business-address state, e.g. 'CT'. Blank = any. (entities corpus)",
            "default": ""
          },
          "zip": {
            "title": "Business ZIP",
            "type": "string",
            "description": "Business-address ZIP - matches the 5-digit prefix, so both '06033' and the ZIP+4 form '06033-4617' are returned (16% of rows store ZIP+4). Digits and dashes only. Blank = any. (entities corpus)",
            "default": ""
          },
          "naics": {
            "title": "NAICS code",
            "type": "string",
            "description": "Exact NAICS industry code (populated on 612,858 businesses). Blank = any. (entities corpus)",
            "default": ""
          },
          "formationPlace": {
            "title": "Formation place",
            "type": "string",
            "description": "Where the business was formed, substring match - the source mixes codes and names ('CT' 801,167 and 'Connecticut' 250,363 are the same place). Blank = any. (entities corpus)",
            "default": ""
          },
          "activeOnly": {
            "title": "Active businesses only",
            "type": "boolean",
            "description": "Restrict to status = Active (460,739 businesses). Off = any status. (entities corpus)",
            "default": false
          },
          "registeredFrom": {
            "title": "Registered on or after",
            "type": "string",
            "description": "Businesses registered on or after this date (YYYY-MM-DD). Rows with no registration date are kept, not dropped. Blank = any. (entities corpus)",
            "default": ""
          },
          "registeredTo": {
            "title": "Registered on or before",
            "type": "string",
            "description": "Businesses registered on or before this date (YYYY-MM-DD). Blank = any. (entities corpus)",
            "default": ""
          },
          "filingType": {
            "title": "Filing type",
            "type": "string",
            "description": "Filing type substring, e.g. 'Annual Report' (6,143,433), 'Certificate of Organization' (755,621), 'Certificate of Dissolution'. Blank = any. (filings corpus)",
            "default": ""
          },
          "reportYear": {
            "title": "Report year",
            "type": "string",
            "description": "Exact report year on the filing, e.g. '2020'. Blank = any. (filings corpus)",
            "default": ""
          },
          "filedFrom": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Filings dated on or after this (YYYY-MM-DD). Blank = any. (filings corpus)",
            "default": ""
          },
          "filedTo": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Filings dated on or before this (YYYY-MM-DD). Blank = any. (filings corpus)",
            "default": ""
          },
          "personName": {
            "title": "Person name",
            "type": "string",
            "description": "Officer / director / agent name substring, e.g. 'SMITH'. Blank = any. (principals and agents corpora)",
            "default": ""
          },
          "designation": {
            "title": "Designation",
            "type": "string",
            "description": "The office held, substring match - 'Officer' (168,393), 'Director' (70,845), 'Officer;Director' (51,190). Blank on 1,497,989 rows where the source records no office. Blank = any. (principals corpus)",
            "default": ""
          },
          "agentType": {
            "title": "Agent type",
            "enum": [
              "",
              "Individual",
              "Business",
              "Secretary of the State",
              "Unknown"
            ],
            "type": "string",
            "description": "Exact registered-agent type. Individual 997,238, Business 233,854, Secretary of the State 80,346. Blank = any. (agents corpus)",
            "default": ""
          },
          "phone": {
            "title": "Agent phone",
            "type": "string",
            "description": "Exact agent phone number, digits only, e.g. '2032466712'. Blank = any. (agents corpus)",
            "default": ""
          },
          "oldName": {
            "title": "Old name",
            "type": "string",
            "description": "The business name before the change, substring match. Blank = any. (nameChanges corpus)",
            "default": ""
          },
          "newName": {
            "title": "New name",
            "type": "string",
            "description": "The business name after the change, substring match. Blank = any. (nameChanges corpus)",
            "default": ""
          },
          "changedFrom": {
            "title": "Changed on or after",
            "type": "string",
            "description": "Name changes recorded on or after this date (YYYY-MM-DD). Blank = any. (nameChanges corpus)",
            "default": ""
          },
          "changedTo": {
            "title": "Changed on or before",
            "type": "string",
            "description": "Name changes recorded on or before this date (YYYY-MM-DD). Blank = any. (nameChanges corpus)",
            "default": ""
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "",
              "status",
              "businessType",
              "businessState",
              "formationPlace",
              "citizenship",
              "stateOfFormation",
              "filingType",
              "filingCategory",
              "reportYear",
              "designation",
              "principalType",
              "agentType"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over (mode=aggregate). The first six belong to entities, the next three to filings, designation/principalType to principals and agentType to agents. Blank = a sensible default for the selected table - do not leave it set when switching corpus.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records pushed in rows / profile mode (0 = up to ~10k per run; each record is metered individually, so there is no per-run charge cap). Aggregate mode returns every group.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}