{
  "openapi": "3.0.1",
  "info": {
    "title": "CT UCC Filings - Secured Lien & Debtor Search",
    "description": "Connecticut UCC financing-statement index (public open data, 846k debtor records): the public record of secured claims on a business or person - both debtor and secured party with names and addresses, the filing type, the lien class (OFS / MUNICIPAL / IRS / LABOR) and the acceptance and lapse dates.",
    "version": "0.0",
    "x-build-id": "B1IcWSEOWubFEHwJk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~ct-ucc-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-ct-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~ct-ucc-filings/runs": {
      "post": {
        "operationId": "runs-sync-j0401-ct-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~ct-ucc-filings/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-ct-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 any natural-person name part. Blank = any.",
            "default": ""
          },
          "securedParty": {
            "title": "Secured party name",
            "type": "string",
            "description": "The lender / lessor / tax authority holding the claim - matches the organization name or any natural-person name part. Blank = any.",
            "default": ""
          },
          "debtorName": {
            "title": "Debtor organization name",
            "type": "string",
            "description": "Organization name only (the business-name column), when you want to exclude natural-person debtors. Blank = any.",
            "default": ""
          },
          "filingNo": {
            "title": "Filing number",
            "type": "string",
            "description": "Exact original filing number (the source's 10-digit zero-padded form, e.g. '0005229652'). One filing can name several debtors, so a filing number can return more than one row.",
            "default": ""
          },
          "subsequentNo": {
            "title": "Subsequent filing number",
            "type": "string",
            "description": "Exact subsequent filing number - equals the original number on un-amended filings. Blank = any.",
            "default": ""
          },
          "filingType": {
            "title": "Filing type",
            "enum": [
              "",
              "ORIG FIN STMT",
              "AMENDMENT",
              "RELEASE ORIG",
              "VESSEL LIEN",
              "OFFICE CORRECT",
              "RELEASE",
              "PARTIAL RELEASE",
              "CONTINUATION",
              "ATTACHMENT",
              "CORRECTION",
              "ASSIGNMENT",
              "JUDGMENT LIEN",
              "REFILING NOTICE",
              "WITHDRAW NOTICE",
              "TERMINATION",
              "REVOKE RELEASE",
              "IRS DISCHARGE",
              "RELEASE RFIL",
              "AMEND.CORRECTED",
              "AIRCRAFT LIEN",
              "PARTIAL REVOKE",
              "DISCHARGE",
              "IRS PART WITHDR",
              "WITHDRW RELEASE",
              "SUBORDINATION",
              "REVOCATION",
              "PRTL ASSIGNMENT",
              "NA",
              "OVERRIDE"
            ],
            "type": "string",
            "description": "The filing's type. ORIG FIN STMT (519k) and AMENDMENT (307k) dominate. Blank = any.",
            "default": ""
          },
          "lienType": {
            "title": "Lien class",
            "enum": [
              "",
              "OFS",
              "MUNICIPAL",
              "IRS",
              "LABOR",
              "DEPT REV SERVS",
              "TRANS UTILITY",
              "PUBLIC-FINANCE",
              "VESSEL",
              "AIRCRAFT",
              "STATE",
              "JUDGMENT",
              "JUDGMENT - PERS",
              "NOTICE OF ATTAC",
              "OFS - LEASE",
              "RAILROAD"
            ],
            "type": "string",
            "description": "The lien class. OFS (503k, ordinary file statements) and MUNICIPAL (220k) dominate; IRS (81k) and LABOR (21k) are the targeted classes. Blank = any.",
            "default": ""
          },
          "lienStatus": {
            "title": "Lien status",
            "enum": [
              "",
              "Active",
              "Released",
              "Terminated"
            ],
            "type": "string",
            "description": "Active (844k) / Released (2,361) / Terminated (177). Blank = any.",
            "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. 'CT' (791k), 'NY' (14k), 'MA' (5.2k). Blank = any.",
            "default": ""
          },
          "acceptedFrom": {
            "title": "Accepted from",
            "type": "string",
            "description": "Earliest acceptance (filing) date, YYYY-MM-DD. Blank = any. The index reaches back to the 19th century.",
            "default": ""
          },
          "acceptedTo": {
            "title": "Accepted to",
            "type": "string",
            "description": "Latest acceptance date, YYYY-MM-DD. Blank = any.",
            "default": ""
          },
          "lapseFrom": {
            "title": "Lapse from",
            "type": "string",
            "description": "Earliest lapse date, YYYY-MM-DD - use this to surface filings expiring in a window. Blank = any.",
            "default": ""
          },
          "lapseTo": {
            "title": "Lapse to",
            "type": "string",
            "description": "Latest lapse date, YYYY-MM-DD. Blank = any.",
            "default": ""
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "lienType",
              "filingType",
              "lienStatus",
              "debtorState",
              "securedPartyState"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over.",
            "default": "lienType"
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}