{
  "openapi": "3.0.1",
  "info": {
    "title": "NYC UCC Liens & Federal Tax Liens - ACRIS Personal Property",
    "description": "NYC ACRIS personal-property recordings (4.55M documents): UCC financing statements, continuations, assignments and terminations plus federal tax liens, each with its debtor and secured-party names. Screen a company for liens by name, look up one document, or aggregate by type, borough or year.",
    "version": "0.0",
    "x-build-id": "Xp0djWdmjuHYxU3zv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~nyc-acris/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-nyc-acris",
        "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~nyc-acris/runs": {
      "post": {
        "operationId": "runs-sync-j0401-nyc-acris",
        "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~nyc-acris/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-nyc-acris",
        "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": [
              "",
              "search",
              "document",
              "debtor",
              "aggregate"
            ],
            "type": "string",
            "description": "search = filter recorded documents. document = one document + its parties (needs documentId or crfn). debtor = documents naming a debtor (needs debtorName) - the KYB screen. aggregate = one row per group. Blank auto-routes."
          },
          "debtorName": {
            "title": "Debtor / party name",
            "type": "string",
            "description": "Party name for mode=debtor. Matches a name PREFIX by default (e.g. \"ACME\" matches ACME CORP, ACME LLC). Names are stored uppercase."
          },
          "exactName": {
            "title": "Exact name match",
            "type": "boolean",
            "description": "With mode=debtor, match the name exactly instead of by prefix (e.g. \"ACME CORP\").",
            "default": false
          },
          "partyRole": {
            "title": "Party role",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "With mode=debtor: 1 = Debtor (default usage), 2 = Secured Party, 3 = Third Party. Blank = any role."
          },
          "documentId": {
            "title": "Document ID",
            "type": "string",
            "description": "With mode=document: the ACRIS document id, e.g. \"2026080400059001\"."
          },
          "crfn": {
            "title": "CRFN",
            "type": "string",
            "description": "With mode=document: the City Register File Number, e.g. \"2026000219331\"."
          },
          "docType": {
            "title": "Document type",
            "enum": [
              "",
              "INIT",
              "INIC",
              "UCC1",
              "UCC3",
              "CONT",
              "TERM",
              "ASGN",
              "AMND",
              "RLSE",
              "SUBO",
              "CNFL",
              "FL",
              "FTL",
              "RFL",
              "UCC ADEN",
              "AMFL",
              "CORP",
              "WFL",
              "PRFL",
              "RCRFL",
              "PSGN",
              "RFTL",
              "NTXL",
              "DPFTL",
              "PRCFL",
              "ASUM",
              "PWFL",
              "NAFTL",
              "BRUP"
            ],
            "type": "string",
            "description": "Document type code. INIT/INIC = initial UCC1, CONT = continuation, TERM = termination, ASGN = assignment, AMND = amendment, FL = IRS federal lien, FTL = other federal lien, RFL = release. Blank = all."
          },
          "borough": {
            "title": "Borough",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Recording borough code: 1 = Manhattan, 2 = Bronx, 3 = Brooklyn, 4 = Queens, 5 = Staten Island. Blank = all."
          },
          "collateral": {
            "title": "Collateral type",
            "enum": [
              "",
              "F",
              "C",
              "A",
              "R",
              "P",
              "D",
              "M",
              "O"
            ],
            "type": "string",
            "description": "UCC collateral code: F = Fixture Filing, C = Cooperative, A = Cooperative with addendum, R = crops/timber, M = manufactured housing, O = other. Blank = all."
          },
          "rpttlNumber": {
            "title": "Real property tax number",
            "type": "string",
            "description": "Exact RPTTL number (links a personal-property filing to a tax lot)."
          },
          "dateFrom": {
            "title": "Recorded on/after",
            "type": "string",
            "description": "Recording date lower bound, ISO YYYY-MM-DD (e.g. \"2026-01-01\")."
          },
          "dateTo": {
            "title": "Recorded on/before",
            "type": "string",
            "description": "Recording date upper bound, ISO YYYY-MM-DD (e.g. \"2026-12-31\")."
          },
          "minAmount": {
            "title": "Min document amount",
            "type": "number",
            "description": "Minimum document amount (USD). Note: most UCC filings state 0; federal liens carry the amount."
          },
          "maxAmount": {
            "title": "Max document amount",
            "type": "number",
            "description": "Maximum document amount (USD)."
          },
          "aggregate": {
            "title": "Aggregate instead of records",
            "type": "boolean",
            "description": "When on, returns one summary record per group with count, instead of documents.",
            "default": false
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "docType",
              "borough",
              "collateral",
              "recordYear"
            ],
            "type": "string",
            "description": "docType -> UCC vs federal-lien mix; borough -> recording geography; collateral -> collateral type; recordYear -> filings per year.",
            "default": "docType"
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records pushed (0 = a default of 50).",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}