{
  "openapi": "3.0.1",
  "info": {
    "title": "UCC Lien Filings: New UCC-1s, Lapsing & Lien Check (CO, CT, OR)",
    "description": "New UCC-1 feed, lapsing-soon list and bulk lien check from official CO, CT and OR data. Tested Oct 17, 2026: lien counts matched official records; expired liens and amendments not counted; you pay only for exact-name filings. Business debtors, lender names.",
    "version": "0.1",
    "x-build-id": "GuuANiL5S7XP8l3C4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cpt_engineering~ucc-lien-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cpt_engineering-ucc-lien-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/cpt_engineering~ucc-lien-filings/runs": {
      "post": {
        "operationId": "runs-sync-cpt_engineering-ucc-lien-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/cpt_engineering~ucc-lien-filings/run-sync": {
      "post": {
        "operationId": "run-sync-cpt_engineering-ucc-lien-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": [
              "newFilings",
              "lapsingSoon",
              "lienCheck"
            ],
            "type": "string",
            "description": "newFilings: UCC filings filed in a date window, newest first (schedule it daily or weekly with 'Only new since last run'). lapsingSoon: active original financing statements whose lapse date falls in the next 'Lapsing within N days' (CO and CT). lienCheck: search each company in 'Debtor company names' and return its UCC financing statements (one row per filing, plus a NO_FILINGS_FOUND row for companies without any).",
            "default": "newFilings"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter codes of the state UCC filing offices to query. Supported: CO, CT, OR. Empty = all three. Colorado and Connecticut update daily; Oregon publishes the previous month's new filings around the 1st of each month.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CT",
                "OR"
              ],
              "enumTitles": [
                "Colorado",
                "Connecticut",
                "Oregon"
              ]
            },
            "default": [
              "CO",
              "CT",
              "OR"
            ]
          },
          "lastNDays": {
            "title": "Filed in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "newFilings only. Window counted back from today, e.g. 1 = since yesterday (daily schedule), 7 = this week, 45 = includes Oregon's latest monthly list. Ignored when 'Filed on or after' is set.",
            "default": 7
          },
          "sinceDate": {
            "title": "Filed on or after (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "newFilings only. Exact start date, e.g. 2026-09-01. Overrides 'Filed in the last N days'."
          },
          "untilDate": {
            "title": "Filed on or before (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "newFilings only. Optional end date, e.g. 2026-09-30. Empty = today."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "newFilings only. true: remember which filings this Actor already returned to you (in a named key-value store on your account, 'ucc-lien-filings-state') and skip them, so a daily or weekly schedule returns each filing once, including filings the state publishes late. Use it for scheduled runs and tasks. false (default): always return the full window, so test runs are repeatable.",
            "default": false
          },
          "filingTypes": {
            "title": "Filing types",
            "type": "array",
            "description": "newFilings only. INITIAL = new UCC-1 financing statements (new lending relationships, the usual lead list). Add AMENDMENT, CONTINUATION, ASSIGNMENT or TERMINATION (UCC-3 records) to track changes, e.g. TERMINATION = a loan was paid off. Oregon reports only INITIAL and AMENDMENT. lapsingSoon and lienCheck always use original financing statements.",
            "items": {
              "type": "string",
              "enum": [
                "INITIAL",
                "AMENDMENT",
                "CONTINUATION",
                "ASSIGNMENT",
                "TERMINATION"
              ],
              "enumTitles": [
                "Initial financing statement (UCC-1)",
                "Amendment",
                "Continuation",
                "Assignment",
                "Termination / release"
              ]
            },
            "default": [
              "INITIAL"
            ]
          },
          "lapsingWithinDays": {
            "title": "Lapsing within N days",
            "minimum": 1,
            "maximum": 730,
            "type": "integer",
            "description": "lapsingSoon only. Return active financing statements whose lapse date is between today and today + N days, soonest first, e.g. 90 or 180.",
            "default": 90
          },
          "debtorNames": {
            "title": "Debtor company names",
            "type": "array",
            "description": "lienCheck: the companies to search, one per line, e.g. 'New Belgium Brewing'. Fuzzy match on the debtor organization name (legal-form words and punctuation ignored). newFilings / lapsingSoon: optional filter, keep only filings whose debtor name contains any of these words (case-insensitive).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "securedPartyNames": {
            "title": "Secured party (lender) contains",
            "type": "array",
            "description": "Optional, all modes. Keep only filings where a secured party name contains any of these words (case-insensitive), e.g. ['John Deere', 'Wells Fargo', 'Corporation Service Company']. Empty = all lenders.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minMatchScore": {
            "title": "Minimum name match score",
            "minimum": 50,
            "maximum": 100,
            "type": "integer",
            "description": "lienCheck only. 0-100 similarity between your company name and the debtor name. Filings scoring 95+ (same name after normalizing punctuation, legal form and word order) are EXACT and charged; filings between this minimum and 94 are returned free as SIMILAR_NAME for review. 85 (default) shows similar names; set 95 to return exact names only.",
            "default": 85
          },
          "maxFilingsPerCompany": {
            "title": "Max filings per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "lienCheck only. Maximum filing rows returned for one company.",
            "default": 50
          },
          "activeOnly": {
            "title": "Active filings only",
            "type": "boolean",
            "description": "true (default): skip financing statements that are terminated, released or past their lapse date. false: also return them (lienCheck history; Connecticut keeps lapsed filings for only one year).",
            "default": true
          },
          "includeCollateral": {
            "title": "Include collateral description",
            "type": "boolean",
            "description": "Colorado only: add the collateral text as filed (e.g. equipment list, 'all assets'), cut at 1,500 characters.",
            "default": true
          },
          "includeStreetAddress": {
            "title": "Include debtor street line",
            "type": "boolean",
            "description": "false (default): debtor city, state and ZIP only. true: also the street line as filed (organization debtors only).",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum rows returned (and charged) in total. Feeds split it evenly across the selected states, e.g. 300 with 3 states = up to 100 per state. Raise it for full daily or weekly lists (about 200 new filings per day across CO and CT).",
            "default": 100
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free app token from a state open-data portal. Only useful for very large pulls; not required."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}