{
  "openapi": "3.0.1",
  "info": {
    "title": "New Mexico UCC Filings Search: Debtors, Lenders & Liens",
    "description": "Search New Mexico UCC filings by debtor, secured party or filing number. Get filing numbers, parties, dates, status and page counts. Export to JSON, CSV or Excel and pay per result.",
    "version": "0.1",
    "x-build-id": "7pvZoA3GfbVKlvG9O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lienintel~new-mexico-ucc-filings-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lienintel-new-mexico-ucc-filings-search",
        "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/lienintel~new-mexico-ucc-filings-search/runs": {
      "post": {
        "operationId": "runs-sync-lienintel-new-mexico-ucc-filings-search",
        "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/lienintel~new-mexico-ucc-filings-search/run-sync": {
      "post": {
        "operationId": "run-sync-lienintel-new-mexico-ucc-filings-search",
        "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": {
          "debtorNames": {
            "title": "Organization debtor names",
            "type": "array",
            "description": "Organization or trade-name debtors to search, up to 20. A partial name works as a contains match. Example: SMITH.",
            "items": {
              "type": "string"
            }
          },
          "individualDebtorNames": {
            "title": "Individual debtor names",
            "type": "array",
            "description": "Individual people to search as Last, First Middle Suffix, up to 20. A bare last name also works. Example: SMITH, JOHN.",
            "items": {
              "type": "string"
            }
          },
          "securedPartyNames": {
            "title": "Organization secured party names",
            "type": "array",
            "description": "Lender, bank or equipment finance organizations to search as the secured party, up to 20. Example: CATERPILLAR.",
            "items": {
              "type": "string"
            }
          },
          "individualSecuredPartyNames": {
            "title": "Individual secured party names",
            "type": "array",
            "description": "Individual secured parties or private lenders to search as Last, First Middle Suffix, up to 20.",
            "items": {
              "type": "string"
            }
          },
          "filingNumbers": {
            "title": "Filing numbers",
            "type": "array",
            "description": "Exact New Mexico UCC file numbers to retrieve, up to 50. Example: 20220140146I.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "Debtor city",
            "type": "string",
            "description": "Restrict the search to a debtor city, case-insensitive. Example: SANTA FE. Leave empty for all cities."
          },
          "stateCode": {
            "title": "Debtor state",
            "type": "string",
            "description": "Two-letter debtor state code published on the filing, for example NM or TX. Leave empty for all states."
          },
          "filingDateFrom": {
            "title": "Filing date from",
            "type": "string",
            "description": "Only return documents filed on or after this date (YYYY-MM-DD). Leave empty to scan the last 12 years."
          },
          "filingDateTo": {
            "title": "Filing date to",
            "type": "string",
            "description": "Only return documents filed on or before this date (YYYY-MM-DD). Leave empty for today."
          },
          "lapseDateFrom": {
            "title": "Lapse date from",
            "type": "string",
            "description": "Only return documents whose lapse date is on or after this date (YYYY-MM-DD)."
          },
          "lapseDateTo": {
            "title": "Lapse date to",
            "type": "string",
            "description": "Only return documents whose lapse date is on or before this date (YYYY-MM-DD)."
          },
          "debtorType": {
            "title": "Debtor type",
            "enum": [
              "any",
              "organization",
              "individual"
            ],
            "type": "string",
            "description": "Keep organization debtors, individual debtors, or both. The type is inferred from the published debtor name.",
            "default": "any"
          },
          "documentType": {
            "title": "Document type",
            "enum": [
              "any",
              "initial",
              "amendment",
              "continuation",
              "termination",
              "assignment",
              "other"
            ],
            "type": "string",
            "description": "Keep original financing statements, amendment documents, continuations, terminations, assignments or all documents.",
            "default": "any"
          },
          "status": {
            "title": "Lien status",
            "enum": [
              "any",
              "active",
              "lapsed",
              "terminated"
            ],
            "type": "string",
            "description": "Keep active, lapsed or terminated filings. Lapsed records are excluded at the source when Include lapsed filings is off.",
            "default": "any"
          },
          "includeLapsed": {
            "title": "Include lapsed filings",
            "type": "boolean",
            "description": "When false, the source search excludes filings whose lapse date has passed. Enable to include older, lapsed and refinance-window records.",
            "default": true
          },
          "includeAmendments": {
            "title": "Include amendment documents",
            "type": "boolean",
            "description": "When true, amendments, continuations, assignments and terminations are delivered as separate records. When false, only original financing statements are delivered.",
            "default": true
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order the delivered records by filing date, newest first or oldest first.",
            "default": "newest"
          },
          "maxFilings": {
            "title": "Maximum filings",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Maximum number of New Mexico UCC documents to deliver in this run. Up to 400.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}