{
  "openapi": "3.0.1",
  "info": {
    "title": "US UCC Filings Scraper - Secured-Loan & Lender Leads",
    "description": "Scrape UCC-1 financing statements from official state portals (CT, CO, OR): debtor business, secured party/lender, collateral, filing & lapse dates, lien type & lead score. Fresh secured-loan B2B leads for equipment finance, MCA, factoring & lending. Filters + monitoring, no browser.",
    "version": "0.1",
    "x-build-id": "zHha9CJC4a33EwLhh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-ucc-filings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-ucc-filings-scraper",
        "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/scrapesage~us-ucc-filings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-ucc-filings-scraper",
        "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/scrapesage~us-ucc-filings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-ucc-filings-scraper",
        "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 state UCC datasets to query. Each is an official state Secretary-of-State open-data portal: <b>CT</b> (842K lien filings, updated daily, debtor + secured party in one record), <b>CO</b> (2.5M filings joined to debtor + secured party + collateral, updated daily), <b>OR</b> (rolling 'filings entered last month' feed — the freshest leads). Leave empty for all three.",
            "items": {
              "type": "string",
              "enum": [
                "CT",
                "CO",
                "OR"
              ],
              "enumTitles": [
                "Connecticut (SOTS)",
                "Colorado (SOS)",
                "Oregon (SOS)"
              ]
            },
            "default": [
              "CT",
              "CO",
              "OR"
            ]
          },
          "filingCategory": {
            "title": "Filing category",
            "enum": [
              "originals",
              "ucc",
              "all"
            ],
            "type": "string",
            "description": "<b>Original financing statements</b> = brand-new secured loans (UCC-1 originals + farm EFS) — the highest-intent financing leads. <b>UCC only</b> = all UCC + farm filings incl. amendments/continuations/terminations. <b>All filings</b> = also include IRS tax liens, hospital liens, judgment/vessel/aircraft liens where the state publishes them.",
            "default": "originals"
          },
          "debtorType": {
            "title": "Debtor type",
            "enum": [
              "business",
              "individual",
              "all"
            ],
            "type": "string",
            "description": "Who the borrower is. <b>Businesses only</b> (organization debtors) = B2B leads (recommended). <b>Individuals only</b> = consumer / sole-proprietor debtors. <b>All</b> = both.",
            "default": "business"
          },
          "statusActiveOnly": {
            "title": "Active filings only",
            "type": "boolean",
            "description": "Only return filings that are currently active (not terminated/released, and not yet lapsed). Turn off to include lapsed, released and terminated filings.",
            "default": true
          },
          "filingDateFrom": {
            "title": "Filed on/after (optional)",
            "type": "string",
            "description": "Only filings accepted on or after this date, <code>YYYY-MM-DD</code> — great for fresh financing-intent leads (businesses that just took a secured loan)."
          },
          "filingDateTo": {
            "title": "Filed on/before (optional)",
            "type": "string",
            "description": "Only filings accepted on or before this date, <code>YYYY-MM-DD</code>."
          },
          "lapsingWithinDays": {
            "title": "Lapsing within N days (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Only active filings whose lapse (expiration) date is within the next N days — perfect for <b>refinancing / renewal timing</b> outreach (a UCC lapses ~5 years after filing). e.g. <code>180</code> for filings lapsing in the next 6 months."
          },
          "debtorStates": {
            "title": "Debtor states (optional)",
            "type": "array",
            "description": "Filter by the debtor's mailing-address state (2-letter, e.g. <code>CT</code>, <code>NY</code>, <code>MA</code>). Most debtors are in the filing state, but lenders also file against out-of-state businesses.",
            "items": {
              "type": "string"
            }
          },
          "debtorNameContains": {
            "title": "Debtor name contains (optional)",
            "type": "string",
            "description": "Only debtors whose name (business or individual) contains this text (case-insensitive)."
          },
          "securedPartyContains": {
            "title": "Secured party / lender contains (optional)",
            "type": "string",
            "description": "Only filings whose secured party (lender) name contains this text — e.g. find every business financed by a specific competitor (<code>Stearns Bank</code>, <code>Wells Fargo</code>, <code>CNH</code>) for competitive prospecting."
          },
          "collateralKeywords": {
            "title": "Collateral keywords (Colorado)",
            "type": "array",
            "description": "Filter Colorado filings by collateral description (case-insensitive, any match), e.g. <code>equipment</code>, <code>vehicle</code>, <code>inventory</code>, <code>livestock</code>, <code>accounts</code>. Applies to CO only (the only source that publishes collateral detail); does not restrict CT/OR.",
            "items": {
              "type": "string"
            }
          },
          "includeSecuredParties": {
            "title": "Include secured parties (lenders)",
            "type": "boolean",
            "description": "Include the secured party / lender array on each record (lender name + address). Recommended — this is the competitive-intel layer.",
            "default": true
          },
          "includeCollateral": {
            "title": "Include collateral detail (Colorado)",
            "type": "boolean",
            "description": "Include the collateral array on Colorado records (what was financed). Turn off for slightly faster, leaner CO runs.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of UCC filing records to return in this run (across all selected states).",
            "default": 1000
          },
          "maxResultsPerState": {
            "title": "Max results per state (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Cap how many records are pulled from each state before the global limit and sorting are applied. Leave blank to use the same value as Max results."
          },
          "sortNewestFirst": {
            "title": "Newest filings first",
            "type": "boolean",
            "description": "Return the most recently filed records first (best for fresh leads).",
            "default": true
          },
          "deduplicateResults": {
            "title": "Deduplicate within a run",
            "type": "boolean",
            "description": "Skip duplicate filing/debtor records within this run (recommended).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new filings",
            "type": "boolean",
            "description": "Remember which filings were already returned (in a named key-value store) and emit ONLY filings that are new since the last run — each tagged <code>monitorEvent: \"new\"</code>. State portals refresh daily/monthly; run on a Schedule to capture newly-filed secured loans as fresh leads the moment they appear. Works alongside Apify Schedules (the schedule starts the run; monitoring decides what's new).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved watch (e.g. per state / filter set) so different monitors don't share state.",
            "default": "default"
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional Socrata app token for higher rate limits on very large runs. Not required — leave blank for normal use. Get one free at any state open-data portal."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. State open data is fetched directly and needs no proxy — leave this off for the fastest runs. Enable Apify Proxy only if your network requires it.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}