{
  "openapi": "3.0.1",
  "info": {
    "title": "New UCC Filings: Colorado & Connecticut Business Liens",
    "description": "New UCC-1 financing statements against businesses in Colorado and Connecticut, from the states' official open data: debtor, address, lender (secured party), filing and lapse dates. Filter by lender or debtor location, track only new filings, or look up every lien on a business.",
    "version": "0.1",
    "x-build-id": "ddo2tT0QjBj09jAu5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yzy001~new-ucc-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yzy001-new-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/yzy001~new-ucc-filings/runs": {
      "post": {
        "operationId": "runs-sync-yzy001-new-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/yzy001~new-ucc-filings/run-sync": {
      "post": {
        "operationId": "run-sync-yzy001-new-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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Which states to read, each from its Secretary of State's open-data portal.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CT"
              ],
              "enumTitles": [
                "Colorado",
                "Connecticut"
              ]
            },
            "default": [
              "CO",
              "CT"
            ]
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "New filings dated within the last N days, today included (1-31). The portals trail by one to two days. Ignored when a from date is set.",
            "default": 7
          },
          "fromDate": {
            "title": "From date",
            "type": "string",
            "description": "Optional. First filing date to include (YYYY-MM-DD). The range can cover at most 31 days."
          },
          "toDate": {
            "title": "To date",
            "type": "string",
            "description": "Optional. Last filing date to include. Defaults to today."
          },
          "debtorNames": {
            "title": "Look up debtors by name",
            "type": "array",
            "description": "Optional. Every UCC-1 filing, of any date, against a business whose name contains this text (3 characters or more, up to 100 names). Turns off the date window.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeLapsed": {
            "title": "Include lapsed and ended filings",
            "type": "boolean",
            "description": "For name lookups: also return filings that lapsed, were terminated or were released.",
            "default": false
          },
          "securedPartyKeywords": {
            "title": "Lender keywords",
            "type": "array",
            "description": "Optional. Keep filings whose secured party name contains any of these, for example bank, capital, Caterpillar.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeSecuredPartyKeywords": {
            "title": "Exclude lender keywords",
            "type": "array",
            "description": "Optional. Leave out filings whose secured party name contains any of these, for example 'as representative' to drop filing-agent placeholders.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "debtorStates": {
            "title": "Debtor states",
            "type": "array",
            "description": "Optional. Keep filings with a debtor whose address is in these states (two-letter codes).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "debtorCities": {
            "title": "Debtor cities",
            "type": "array",
            "description": "Optional. Keep filings with a debtor in one of these cities (exact name, any case).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "debtorZipPrefixes": {
            "title": "Debtor ZIP prefixes",
            "type": "array",
            "description": "Optional. Keep filings with a debtor whose ZIP starts with one of these.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "trackChanges": {
            "title": "Track what you have already received",
            "type": "boolean",
            "description": "Remember the filings returned by earlier tracked runs (120 days, in a key-value store named new-ucc-filings-state in your account) and mark each row NEW or SEEN.",
            "default": false
          },
          "onlyNew": {
            "title": "Only filings not seen before",
            "type": "boolean",
            "description": "With tracking on, leave out filings an earlier tracked run already returned. Good for a daily schedule with a 7-day window, which also catches filings the state published late.",
            "default": false
          },
          "allowPartial": {
            "title": "Allow partial results",
            "type": "boolean",
            "description": "On by default: if one state's portal cannot be read, the other is still returned and the status message names it.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Upper bound on rows returned, newest first. A 7-day window across both states is roughly 350-450 filings.",
            "default": 5000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}