{
  "openapi": "3.0.1",
  "info": {
    "title": "OR UCC Secured Parties - Lien Holder Search",
    "description": "Oregon UCC financing-statement register by secured party (public open data, 220k records): who holds a secured claim on an Oregon debtor - lender, lessor, trustee or tax authority with its address, the lien type, filing and lapse dates and the filing image link.",
    "version": "0.0",
    "x-build-id": "WTxd8HM1544NCKDdI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~or-ucc-secured-parties/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-or-ucc-secured-parties",
        "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~or-ucc-secured-parties/runs": {
      "post": {
        "operationId": "runs-sync-j0401-or-ucc-secured-parties",
        "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~or-ucc-secured-parties/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-or-ucc-secured-parties",
        "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 = secured-party records matching your filters (default). aggregate = one count row per group (see groupBy).",
            "default": "rows"
          },
          "securedParty": {
            "title": "Secured party name",
            "type": "string",
            "description": "The lender / lessor / trustee / tax authority holding the claim - name substring, e.g. 'BANK OF EASTERN OREGON'. Blank = any.",
            "default": ""
          },
          "fileNumber": {
            "title": "Filing number",
            "type": "string",
            "description": "Exact filing number. Either the bare 8-digit form (e.g. '94585876') or the suffixed form for the Nth party on the same statement (e.g. '94490029-1'). One statement can name several parties, so a filing number can return more than one row.",
            "default": ""
          },
          "lienType": {
            "title": "Lien type",
            "enum": [
              "",
              "UCC",
              "EFS",
              "IRS",
              "CW",
              "RW",
              "TU",
              "PF",
              "IRS-X",
              "ASL",
              "APL"
            ],
            "type": "string",
            "description": "UCC (194,722), EFS = farm-products effective financing (7,604), IRS (7,323), CW = construction (5,076), RW (2,477), TU = transmitting utility (1,360), PF = public finance (850), IRS-X = released (603), ASL (97), APL (24). Blank = any.",
            "default": ""
          },
          "city": {
            "title": "Secured party city",
            "type": "string",
            "description": "Secured party city substring. Blank = any.",
            "default": ""
          },
          "state": {
            "title": "Secured party state",
            "type": "string",
            "description": "Two-letter secured-party state, e.g. 'OR' (48,482), 'TX' (28,784), 'CA' (24,504), 'IL' (21,130). Blank = any.",
            "default": ""
          },
          "country": {
            "title": "Secured party country",
            "type": "string",
            "description": "Secured party country, e.g. 'USA'. Blank = any.",
            "default": ""
          },
          "filedFrom": {
            "title": "Filed from",
            "type": "string",
            "description": "Earliest filing date, YYYY-MM-DD. Blank = any. The register reaches back to 1963.",
            "default": ""
          },
          "filedTo": {
            "title": "Filed to",
            "type": "string",
            "description": "Latest filing 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. Note: 1,285 rows carry no lapse date and are matched by no lapse window.",
            "default": ""
          },
          "lapseTo": {
            "title": "Lapse to",
            "type": "string",
            "description": "Latest lapse date, YYYY-MM-DD. Blank = any.",
            "default": ""
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "lienType",
              "state",
              "country"
            ],
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}