{
  "openapi": "3.0.1",
  "info": {
    "title": "NYC Property Deeds and Mortgages - official ACRIS records",
    "description": "Recorded New York City deeds, mortgages and other property documents from the City's official ACRIS open data: address, borough/block/lot, amount, dates, and buyer and seller (or borrower and lender) names. Filter by type, borough, date, amount, street and name.",
    "version": "0.2",
    "x-build-id": "F2RkFgfuT6hdJcgDQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/retrainmap~nyc-property-deeds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-retrainmap-nyc-property-deeds",
        "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/retrainmap~nyc-property-deeds/runs": {
      "post": {
        "operationId": "runs-sync-retrainmap-nyc-property-deeds",
        "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/retrainmap~nyc-property-deeds/run-sync": {
      "post": {
        "operationId": "run-sync-retrainmap-nyc-property-deeds",
        "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": {
          "doc_types": {
            "title": "Document types",
            "type": "array",
            "description": "Any of: deeds, mortgages, satisfactions, assignments, transfer_tax, timeshare_deeds, all. You can also give an exact ACRIS document code such as DEED, MTGE, SAT or MLEA. Default: deeds.",
            "items": {
              "type": "string"
            }
          },
          "bbls": {
            "title": "Properties: look up by borough, block and lot (optional)",
            "type": "array",
            "description": "Find every recorded document for these properties, in any year since the City's records begin (most go back to 1966). Use a 10-digit BBL such as 3012340056, or borough-block-lot such as 3-1234-56 or Brooklyn 1234 56, or borough-block such as 3-1234 for a whole block. Days back is ignored here; Recorded from / until still apply if you fill them in. Choose document type 'all' to see mortgages and satisfactions too.",
            "items": {
              "type": "string"
            }
          },
          "party_name_starts_with": {
            "title": "Party name starts with: look up by name (optional)",
            "type": "array",
            "description": "Find every recorded document where a buyer, seller, borrower or lender name begins with this text, in any year. ACRIS writes people as LAST, FIRST (for example SMITH, JOHN) and companies as written (for example ACME REALTY). At least 3 characters. Days back is ignored here. If you also fill in Properties, a document must match both.",
            "items": {
              "type": "string"
            }
          },
          "boroughs": {
            "title": "Boroughs (optional)",
            "type": "array",
            "description": "Any of Manhattan, Bronx, Brooklyn, Queens, Staten Island. Empty means all. Staten Island deeds and mortgages are not in ACRIS (the Richmond County Clerk records them); for Staten Island sales choose the transfer_tax type.",
            "items": {
              "type": "string"
            }
          },
          "days_back": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "How many days of recordings to read, counted back from 'Recorded until' or, if that is empty, from the latest date the City has published. 1 to 366. Not used for a property or name lookup.",
            "default": 30
          },
          "recorded_from": {
            "title": "Recorded from (optional)",
            "type": "string",
            "description": "First recording date to include, as YYYY-MM-DD. Overrides 'Days back'."
          },
          "recorded_until": {
            "title": "Recorded until (optional)",
            "type": "string",
            "description": "Last recording date to include, as YYYY-MM-DD. Default: the latest date the City has published."
          },
          "min_amount": {
            "title": "Minimum amount in dollars (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only documents with at least this amount, for example 1000000. Many deeds between family members or companies show 0."
          },
          "property_types": {
            "title": "Property types (optional)",
            "type": "array",
            "description": "ACRIS property type codes or words, for example condo, coop, family, apartment, office, vacant, or codes such as SC, D1, AP. Empty means all.",
            "items": {
              "type": "string"
            }
          },
          "street_contains": {
            "title": "Street contains (optional)",
            "type": "array",
            "description": "Keep only documents on a street whose name contains one of these words, for example Broadway or Havemeyer.",
            "items": {
              "type": "string"
            }
          },
          "party_name_contains": {
            "title": "Party name contains (optional)",
            "type": "array",
            "description": "Keep only documents where a buyer, seller, borrower or lender name contains one of these words, for example LLC, Trust or a company name. This filters the date window; to search all years by name use 'Party name starts with'.",
            "items": {
              "type": "string"
            }
          },
          "max_records": {
            "title": "Maximum documents",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many rows, newest recordings first. You are charged per row.",
            "default": 200
          },
          "only_new_since_last_run": {
            "title": "Only documents not returned before",
            "type": "boolean",
            "description": "For scheduled runs. Each run remembers how far it read (separately for each set of filters) and the next run starts the day after, so you get each document once. The City adds new recordings about once a month, so most runs between its updates return no rows and charge nothing. The bookmark only moves when a run reads its whole window.",
            "default": false
          },
          "max_documents_checked": {
            "title": "Maximum documents checked",
            "minimum": 100,
            "maximum": 300000,
            "type": "integer",
            "description": "Stop after reading this many documents, even if fewer matched your filters. Keeps a narrow filter from reading a whole year. 100 to 300000.",
            "default": 20000
          },
          "request_interval_ms": {
            "title": "Pause between requests (ms)",
            "minimum": 200,
            "type": "integer",
            "description": "Pause between requests to the City's open-data portal.",
            "default": 300
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}