{
  "openapi": "3.0.1",
  "info": {
    "title": "CO Business Entities - Registry & Filing History",
    "description": "Colorado business-entity register (public open data, 3.1M entities + 21.6M filings): a company's status, type, addresses and registered agent, plus its complete Secretary-of-State filing history on one exact entity id - name changes, redomestications, dissolutions.",
    "version": "0.0",
    "x-build-id": "ddCepoZXZT093MFhS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~co-business-entities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-co-business-entities",
        "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~co-business-entities/runs": {
      "post": {
        "operationId": "runs-sync-j0401-co-business-entities",
        "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~co-business-entities/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-co-business-entities",
        "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 entity's register row plus its entire filing history — requires entityId.",
            "default": "rows"
          },
          "corpus": {
            "title": "Corpus",
            "enum": [
              "entities",
              "history"
            ],
            "type": "string",
            "description": "entities = the register (3.1M entities, default). history = the filing history (21.6M filings) — find who filed what, when. Filters below apply to the corpus you pick.",
            "default": "entities"
          },
          "entityId": {
            "title": "Entity ID",
            "type": "string",
            "description": "Exact Colorado entity id (numeric), e.g. '19871342214'. The one key that ties an entity to its whole filing history.",
            "default": ""
          },
          "name": {
            "title": "Entity name",
            "type": "string",
            "description": "Entity name substring, e.g. 'CONTRACTING', 'DENVER'. Matches the register name — which for a delinquent or dissolved entity carries a status suffix; the matched name is cleaned on output. (entities corpus)",
            "default": ""
          },
          "status": {
            "title": "Entity status",
            "enum": [
              "",
              "Good Standing",
              "Delinquent",
              "Voluntarily Dissolved",
              "Administratively Dissolved",
              "Withdrawn",
              "Noncompliant",
              "Revoked",
              "Judicially Dissolved",
              "Exists",
              "Merged",
              "Converted",
              "Registered Agent Resigned",
              "Effectiveness Prevented",
              "Dissolved (Term Expired)",
              "Consolidated"
            ],
            "type": "string",
            "description": "Exact entity status (15 values). Good Standing ~1.03M, Delinquent ~1.14M, Voluntarily Dissolved ~597k. Blank = any. (entities corpus)",
            "default": ""
          },
          "entityType": {
            "title": "Entity type",
            "enum": [
              "",
              "DLLC",
              "DPC",
              "DNC",
              "FLLC",
              "FPC",
              "DLP",
              "DLLP",
              "FNC",
              "DLLLP",
              "FLP",
              "FO",
              "GP",
              "DPC-PBC",
              "FLLP",
              "IC",
              "DC56",
              "DLPA",
              "UNA",
              "FLLLP",
              "DLCA",
              "CS",
              "DT",
              "WC",
              "DC55",
              "FCOOP",
              "DLCA-PBC",
              "DC56-PBC",
              "CU",
              "DC55-PBC",
              "SL",
              "FLPA",
              "FLCA",
              "SP"
            ],
            "type": "string",
            "description": "Exact Colorado entity-type code (33 values): D* = domestic, F* = foreign; LLC / PC (profit corp) / NC (nonprofit corp) / LP. DLLC ~2.10M, DPC ~550k. Blank = any. (entities corpus)",
            "default": ""
          },
          "city": {
            "title": "Principal city",
            "type": "string",
            "description": "Principal-office city substring, e.g. 'Denver'. Blank = any. (entities corpus)",
            "default": ""
          },
          "state": {
            "title": "Principal state",
            "type": "string",
            "description": "Two-letter principal-office state, e.g. 'CO' (~2.66M), 'CA', 'TX'. Blank = any. (entities corpus)",
            "default": ""
          },
          "zip": {
            "title": "Principal ZIP",
            "type": "string",
            "description": "Exact principal ZIP code, e.g. '80202'. Blank = any. (entities corpus)",
            "default": ""
          },
          "country": {
            "title": "Principal country",
            "type": "string",
            "description": "Principal country, e.g. 'US'. Blank = any. (entities corpus)",
            "default": ""
          },
          "jurisdiction": {
            "title": "Jurisdiction of formation",
            "type": "string",
            "description": "Jurisdiction the entity was formed in, e.g. 'DE' (~84k), 'CO', 'Delaware'. Substring match. Blank = any. (entities corpus)",
            "default": ""
          },
          "agentName": {
            "title": "Registered agent name",
            "type": "string",
            "description": "Registered-agent name substring — matches the agent's organization name or a natural person's first / last name. Blank = any. (entities corpus)",
            "default": ""
          },
          "formedFrom": {
            "title": "Formed on or after",
            "type": "string",
            "description": "Entities formed on or after this date (YYYY-MM-DD). Rows with no formation date are kept, not dropped. Blank = any. (entities corpus)",
            "default": ""
          },
          "formedTo": {
            "title": "Formed on or before",
            "type": "string",
            "description": "Entities formed on or before this date (YYYY-MM-DD). Blank = any. (entities corpus)",
            "default": ""
          },
          "historyType": {
            "title": "Filing type",
            "type": "string",
            "description": "Filing type substring, e.g. 'Dissolve', 'Amendment', 'Statement of Change', 'Form a Limited Liability Company'. 253 distinct filing types. Blank = any. (history corpus)",
            "default": ""
          },
          "comment": {
            "title": "Filing comment",
            "type": "string",
            "description": "The Secretary of State's own comment on the filing, substring match — carries name changes, address changes, agent changes, redomestications. Blank = any. (history corpus)",
            "default": ""
          },
          "historyName": {
            "title": "Name on filing",
            "type": "string",
            "description": "The entity name as recorded on the filing, substring match — for a name-change filing this is the new name. Blank = any. (history corpus)",
            "default": ""
          },
          "transactionId": {
            "title": "Transaction ID",
            "type": "string",
            "description": "Exact filing transaction id (numeric), e.g. '20268141433'. Blank = any. (history corpus)",
            "default": ""
          },
          "receivedFrom": {
            "title": "Received on or after",
            "type": "string",
            "description": "Filings received on or after this date (YYYY-MM-DD) — the daily change stream. Blank = any. (history corpus)",
            "default": ""
          },
          "receivedTo": {
            "title": "Received on or before",
            "type": "string",
            "description": "Filings received on or before this date (YYYY-MM-DD). Blank = any. (history corpus)",
            "default": ""
          },
          "effectiveFrom": {
            "title": "Effective on or after",
            "type": "string",
            "description": "Filings taking effect on or after this date (YYYY-MM-DD). Blank = any. (history corpus)",
            "default": ""
          },
          "effectiveTo": {
            "title": "Effective on or before",
            "type": "string",
            "description": "Filings taking effect on or before this date (YYYY-MM-DD). Blank = any. (history corpus)",
            "default": ""
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "entityStatus",
              "entityType",
              "principalState",
              "jurisdiction",
              "principalCountry",
              "historyType"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over (mode=aggregate). The first five belong to the entities corpus, historyType to the history corpus — pick one that matches your corpus.",
            "default": "entityStatus"
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}