{
  "openapi": "3.0.1",
  "info": {
    "title": "Connecticut Business Registry Entity & Diversity-Flag Lookup",
    "description": "Search Connecticut's official business registry by entity name, Business ID, city or NAICS code for entity type, status, formation date, addresses and diversity-ownership flags.",
    "version": "1.1",
    "x-build-id": "MBJCIjbT29BUymZyb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~connecticut-business-registry-entity-and-diversity/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-connecticut-business-registry-entity-and-diversity",
        "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/dataspryva~connecticut-business-registry-entity-and-diversity/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-connecticut-business-registry-entity-and-diversity",
        "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/dataspryva~connecticut-business-registry-entity-and-diversity/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-connecticut-business-registry-entity-and-diversity",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Search mode",
            "enum": [
              "byEntityName",
              "byAccountNumber",
              "byCity",
              "byNaicsCode"
            ],
            "type": "string",
            "description": "Which search axis to use.",
            "default": "byEntityName"
          },
          "entityName": {
            "title": "Entity name (mode=byEntityName)",
            "type": "string",
            "description": "Business entity name to search for (substring match), e.g. `WALMART`.",
            "default": "WALMART"
          },
          "entityId": {
            "title": "Business ID / account number (mode=byAccountNumber)",
            "type": "string",
            "description": "Exact Connecticut Business ID (account number), e.g. `0818011`."
          },
          "businessCity": {
            "title": "Business city (mode=byCity)",
            "type": "string",
            "description": "Exact business (mailing) address city to browse entities in, e.g. `Hartford`."
          },
          "naicsCode": {
            "title": "NAICS code (mode=byNaicsCode)",
            "type": "string",
            "description": "North American Industry Classification System code to search for, e.g. `541810`."
          },
          "entityStatus": {
            "title": "Entity status filter",
            "enum": [
              "",
              "Active",
              "Active - Pending Domestication",
              "Cancelled",
              "Consolidation",
              "Converted",
              "Converted Out",
              "Dissolved",
              "Domesticated",
              "Expired",
              "Expired Reservation",
              "Forfeited",
              "Merged",
              "Pending Conversion",
              "Pending Filing",
              "Pending Merger",
              "Pending Withdrawal",
              "Recorded",
              "Redomesticated",
              "Registered",
              "Rejected",
              "Removed",
              "Renunciated",
              "Reserved",
              "Reserved Cancel",
              "Revoked",
              "Withdrawn"
            ],
            "type": "string",
            "description": "Optionally restrict results to a single entity status.",
            "default": ""
          },
          "entityType": {
            "title": "Entity type filter",
            "enum": [
              "",
              "LLC",
              "Stock",
              "Non-Stock",
              "Limited Partnership",
              "LLP",
              "Statutory Trust",
              "General Partnerships",
              "B Corp",
              "Bank Stock",
              "Bank Non-Stock",
              "Credit Union Stock",
              "Credit Union Non-Stock",
              "Insurance Stock",
              "Insurance Non-Stock",
              "Cooperative Association",
              "Cemetery",
              "Religious",
              "Special Chartered",
              "Stock Specially Chartered",
              "Non-Stock Specially Chartered",
              "Unauthorized",
              "Unknown"
            ],
            "type": "string",
            "description": "Optionally restrict results to a single entity (business) type.",
            "default": ""
          },
          "citizenship": {
            "title": "Domestic / foreign filter",
            "enum": [
              "",
              "Domestic",
              "Foreign"
            ],
            "type": "string",
            "description": "Optionally restrict results to entities formed in Connecticut (Domestic) or elsewhere (Foreign).",
            "default": ""
          },
          "formationDateFrom": {
            "title": "Formation date from",
            "type": "string",
            "description": "Only entities whose registration/formation date is on or after this date (YYYY-MM-DD). Leave empty for no lower bound; useful for new-business lead lists."
          },
          "formationDateTo": {
            "title": "Formation date to",
            "type": "string",
            "description": "Only entities whose registration/formation date is on or before this date (YYYY-MM-DD). Leave empty for no upper bound."
          },
          "diversityOwnedOnly": {
            "title": "Diversity-owned only",
            "type": "boolean",
            "description": "Return only entities the state records as woman-, veteran-, minority-, disability- or LGBTQI-owned.",
            "default": false
          },
          "includePrincipals": {
            "title": "Include principals (officers/directors)",
            "type": "boolean",
            "description": "Attach the principal/officer/director records the state publishes for each entity.",
            "default": true
          },
          "includeAgents": {
            "title": "Include registered agents",
            "type": "boolean",
            "description": "Attach the registered-agent records (name, type, phone, email, addresses) the state publishes for each entity.",
            "default": true
          },
          "includeFilings": {
            "title": "Include filing history",
            "type": "boolean",
            "description": "Attach the full filing-history records for each entity. Adds one extra request per 40 entities.",
            "default": false
          },
          "includeNameHistory": {
            "title": "Include name-change history",
            "type": "boolean",
            "description": "Attach the name-change history (old name, new name, change date) for each entity where the state publishes it.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Uses Apify's free datacenter (AUTO) proxy group to get a fresh IP if a request is temporarily blocked. Residential proxy is never used by this actor.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}