{
  "openapi": "3.0.1",
  "info": {
    "title": "CO UCC Filings - Secured Lien & Debtor Search",
    "description": "Colorado UCC financing-statement register (public open data, 2.0M debtor records): the public record of secured claims on a business or person - debtor name and address, organization type and jurisdiction, the filing action (add / change / delete) and the record status.",
    "version": "0.0",
    "x-build-id": "WI6jwLlzeRN7d3sPT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~co-ucc-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-co-ucc-filings",
        "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-ucc-filings/runs": {
      "post": {
        "operationId": "runs-sync-j0401-co-ucc-filings",
        "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-ucc-filings/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-co-ucc-filings",
        "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 = debtor records matching your filters (default). aggregate = one count row per group (see groupBy).",
            "default": "rows"
          },
          "debtor": {
            "title": "Debtor name",
            "type": "string",
            "description": "Debtor name substring - matches the organization name or a natural person's first / last name, e.g. 'CHEVROLET', 'SMITH'. Blank = any.",
            "default": ""
          },
          "fileId": {
            "title": "File ID",
            "type": "string",
            "description": "Exact financing-statement file id (numeric). One statement can name several debtors, so a file id can return more than one row.",
            "default": ""
          },
          "debtorId": {
            "title": "Debtor ID",
            "type": "string",
            "description": "Exact debtor record id (numeric).",
            "default": ""
          },
          "efsUniqueId": {
            "title": "EFS unique ID",
            "type": "string",
            "description": "Exact EFS unique id (numeric).",
            "default": ""
          },
          "debtorType": {
            "title": "Debtor type",
            "enum": [
              "",
              "organization",
              "individual"
            ],
            "type": "string",
            "description": "organization = a business / entity debtor; individual = a natural-person debtor. Blank = both.",
            "default": ""
          },
          "actionType": {
            "title": "Filing action",
            "enum": [
              "",
              "add",
              "change only",
              "delete only",
              "change and delete"
            ],
            "type": "string",
            "description": "add (~1.98M), change only (~26.5k), delete only (~6.9k), change and delete. Blank = any.",
            "default": ""
          },
          "recordStatus": {
            "title": "Record status",
            "enum": [
              "",
              "active",
              "inactive"
            ],
            "type": "string",
            "description": "active (~1.98M) / inactive (~37.9k). Blank = both.",
            "default": ""
          },
          "city": {
            "title": "Debtor city",
            "type": "string",
            "description": "Debtor city substring. Blank = any.",
            "default": ""
          },
          "state": {
            "title": "Debtor state",
            "type": "string",
            "description": "Two-letter debtor state, e.g. 'CO' (~1.89M), 'CA', 'TX'. Blank = any.",
            "default": ""
          },
          "country": {
            "title": "Debtor country",
            "type": "string",
            "description": "Debtor country, e.g. 'US'. Blank = any.",
            "default": ""
          },
          "organizationJurisdiction": {
            "title": "Organization jurisdiction",
            "type": "string",
            "description": "Organization jurisdiction substring (state / country of organization). Blank = any.",
            "default": ""
          },
          "organizationType": {
            "title": "Organization type",
            "type": "string",
            "description": "Organization type substring (e.g. corporation, LLC). Blank = any.",
            "default": ""
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "state",
              "country",
              "actionType",
              "recordStatus",
              "organizationType",
              "organizationJurisdiction"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over.",
            "default": "state"
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records pushed in rows 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}