{
  "openapi": "3.0.1",
  "info": {
    "title": "Connecticut Business Registry Scraper: Email, NAICS & Owners",
    "description": "Connecticut business registry leads from the official Secretary of the State dataset: new registrations, published business emails, NAICS, principals, statutory agents and annual-report due dates. Find active businesses with upcoming report renewals. Filter by industry, county, town or ownership.",
    "version": "1.0",
    "x-build-id": "q171gTgxadQfutR7l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jserle~ct-business-registry-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jserle-ct-business-registry-leads",
        "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/jserle~ct-business-registry-leads/runs": {
      "post": {
        "operationId": "runs-sync-jserle-ct-business-registry-leads",
        "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/jserle~ct-business-registry-leads/run-sync": {
      "post": {
        "operationId": "run-sync-jserle-ct-business-registry-leads",
        "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": {
          "registeredFrom": {
            "title": "Registered on or after",
            "type": "string",
            "description": "ISO date, for example 2026-08-01. For domestic entities this is the formation date; for foreign entities, the date they registered in Connecticut. Defaults to 7 days ago when no window is set."
          },
          "registeredTo": {
            "title": "Registered on or before",
            "type": "string",
            "description": "ISO date, for example 2026-08-31. Setting only this field removes the 7-day default and returns everything registered up to that date."
          },
          "annualReportDueFrom": {
            "title": "Annual report due on or after",
            "type": "string",
            "description": "Inclusive start of the Connecticut annual-report due-date window. Searches established and newly registered businesses unless a registration-date range is also explicitly provided. Records without a published due date do not match."
          },
          "annualReportDueTo": {
            "title": "Annual report due on or before",
            "type": "string",
            "description": "Inclusive end of the Connecticut annual-report due-date window. Set alone to find every active business with an annual report due by that date. Records without a published due date do not match."
          },
          "status": {
            "title": "Status",
            "enum": [
              "Active",
              "any",
              "Forfeited",
              "Dissolved",
              "Withdrawn",
              "Revoked",
              "Cancelled",
              "Merged",
              "Expired",
              "Reserved",
              "Expired Reservation"
            ],
            "type": "string",
            "description": "Business status as published by the registry. Active is the default; \"any\" delivers every status including dissolved and forfeited entities.",
            "default": "Active"
          },
          "businessType": {
            "title": "Entity type",
            "enum": [
              "any",
              "LLC",
              "Stock",
              "Non-Stock",
              "Limited Partnership",
              "LLP",
              "Religious",
              "Statutory Trust",
              "Special Chartered",
              "General Partnerships",
              "B Corp"
            ],
            "type": "string",
            "description": "LLCs are about 89% of recent registrations; Stock corporations about 8%.",
            "default": "any"
          },
          "naicsPrefix": {
            "title": "NAICS code starts with",
            "pattern": "^[0-9]{2,6}$",
            "type": "string",
            "description": "2 to 6 digits. 23 = construction, 54 = professional services, 541511 = custom computer programming, 72 = accommodation and food services. About 98% of recent Active registrations carry a NAICS code."
          },
          "county": {
            "title": "County",
            "enum": [
              "any",
              "Fairfield",
              "Hartford",
              "Litchfield",
              "Middlesex",
              "New Haven",
              "New London",
              "Tolland",
              "Windham"
            ],
            "type": "string",
            "description": "Keeps businesses whose business address is in a Connecticut town in this county (the registry has no county column; the town to county mapping is the Office of Policy and Management crosswalk). Requires the business state to be CT.",
            "default": "any"
          },
          "town": {
            "title": "Town or city",
            "type": "string",
            "description": "Case-insensitive exact match on the business address city, restricted to Connecticut addresses. Examples: Stamford, New Haven, Glastonbury."
          },
          "nameContains": {
            "title": "Business name contains",
            "type": "string",
            "description": "Case-insensitive substring matched against the business name. Example: pizza"
          },
          "womanOwned": {
            "title": "Woman-owned only",
            "type": "boolean",
            "description": "Keep only businesses that answered yes to woman-owned on the registry survey.",
            "default": false
          },
          "veteranOwned": {
            "title": "Veteran-owned only",
            "type": "boolean",
            "description": "Keep only businesses that answered yes to veteran-owned on the registry survey.",
            "default": false
          },
          "minorityOwned": {
            "title": "Minority-owned only",
            "type": "boolean",
            "description": "Keep only businesses that answered yes to minority-owned on the registry survey.",
            "default": false
          },
          "disabilityOwned": {
            "title": "Owned by a person with a disability only",
            "type": "boolean",
            "description": "Keep only businesses that answered yes to owned by a person with a disability on the registry survey.",
            "default": false
          },
          "lgbtqiOwned": {
            "title": "LGBTQI-owned only",
            "type": "boolean",
            "description": "Keep only businesses that answered yes to LGBTQI-owned on the registry survey.",
            "default": false
          },
          "includePrincipals": {
            "title": "Include principals",
            "type": "boolean",
            "description": "Attach a `principals` array (officers, directors, members, managers, partners) from the registry's Principals dataset, joined on the entity id. Queried in batches of 100 entities, paged as needed.",
            "default": false
          },
          "includeAgent": {
            "title": "Include statutory agent",
            "type": "boolean",
            "description": "Attach an `agents` array (registered agent for service of process, with phone and email where the registry publishes them) from the registry's Agents dataset, joined on the entity id. Queried in batches of 100 entities, paged as needed.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many business records to deliver. You are charged per delivered record, so this is also your cost cap.",
            "default": 100
          },
          "includeRaw": {
            "title": "Include the raw source rows",
            "type": "boolean",
            "description": "Attach a `raw` object with the Socrata rows this record was built from (entity, and principals/agents when requested), under their data.ct.gov column names. Roughly doubles item size.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}