{
  "openapi": "3.0.1",
  "info": {
    "title": "Maricopa County Property Sales - Assessor Affidavits",
    "description": "Maricopa County (AZ) Assessor Sales Affidavits (899k parcels, free public data): the most recent recorded sale for every parcel - buyer and seller names, price, deed, property type, financing and the Assessor's own sale code. Search by owner, city, ZIP, price or date.",
    "version": "0.0",
    "x-build-id": "quyYFOmpsY2I8FNsH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~maricopa-assessor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-maricopa-assessor",
        "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~maricopa-assessor/runs": {
      "post": {
        "operationId": "runs-sync-j0401-maricopa-assessor",
        "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~maricopa-assessor/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-maricopa-assessor",
        "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",
              "lookup",
              "aggregate"
            ],
            "type": "string",
            "description": "lookup = one parcel or deed number's sale(s). aggregate = one row per group. Leave blank to auto-route: a bare parcelNumber/deedNumber -> lookup, otherwise search (or aggregate when aggregate=true)."
          },
          "parcelNumber": {
            "title": "Parcel number",
            "type": "string",
            "description": "Exact Maricopa Assessor parcel number (APN), e.g. \"20904027B\". Returns that parcel's most recent recorded sale."
          },
          "deedNumber": {
            "title": "Deed number",
            "type": "string",
            "description": "Exact recorder deed number, e.g. \"000000267\" (leading zeros ignored). Returns the sale(s) recorded under that deed."
          },
          "name": {
            "title": "Owner name (buyer or seller)",
            "type": "string",
            "description": "Matches either the buyer (grantee) or the seller (grantor) name, substring, case-insensitive."
          },
          "grantorName": {
            "title": "Seller name (grantor)",
            "type": "string",
            "description": "Seller / grantor name substring, case-insensitive (e.g. \"CENTEX HOMES\")."
          },
          "granteeName": {
            "title": "Buyer name (grantee)",
            "type": "string",
            "description": "Buyer / grantee name substring, case-insensitive."
          },
          "city": {
            "title": "Situs city",
            "type": "string",
            "description": "Property city, substring, case-insensitive (e.g. \"PHOENIX\", \"SCOTTSDALE\")."
          },
          "zipCode": {
            "title": "Situs ZIP prefix",
            "type": "string",
            "description": "Property ZIP prefix, digits only (e.g. \"8525\")."
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "",
              "Single Family Reside",
              "Condo/Townhouse",
              "Vacant Land",
              "Commercial/Industria",
              "Apartment Building",
              "Other Use",
              "Mobile/Manufactured",
              "2-4 Plex",
              "Agricultural"
            ],
            "type": "string",
            "description": "The Assessor's property classification. (Descriptions are truncated to 20 characters by the source, hence \"Single Family Reside\".) You may also pass the one-letter code (B, C, A, F )."
          },
          "deedType": {
            "title": "Deed type",
            "type": "string",
            "description": "Recorder deed type code, exact match (e.g. \"WD\" warranty deed, \"SD\" special warranty, \"JC\" joint tenancy, \"JD\", \"PL\")."
          },
          "financeType": {
            "title": "Finance type",
            "type": "string",
            "description": "How the sale was financed, exact match (e.g. \"New Loan - Conventional\", \"Cash (100%)\", \"New Loan - FHA\")."
          },
          "assessorCode": {
            "title": "Assessor sale/quality code",
            "type": "string",
            "description": "The Assessor's own sale/quality code, exact match. Examples: \"X\" (no reject/warning), \"W1\" (buyer or seller has an out-of-state address), \"R97\" (foreclosure sale), \"R94\" (court-ordered)."
          },
          "saleFrom": {
            "title": "Sale date from",
            "type": "string",
            "description": "Earliest sale month (inclusive). Accepts \"YYYY\" or \"YYYY-MM\" or \"M/YYYY\". Sale dates are month-precise in the source."
          },
          "saleTo": {
            "title": "Sale date to",
            "type": "string",
            "description": "Latest sale month (inclusive). Accepts \"YYYY\" or \"YYYY-MM\" or \"M/YYYY\"."
          },
          "priceMin": {
            "title": "Minimum sale price",
            "type": "number",
            "description": "Lowest sale price (USD). A price filter only returns sales that record a price."
          },
          "priceMax": {
            "title": "Maximum sale price",
            "type": "number",
            "description": "Highest sale price (USD)."
          },
          "multiParcel": {
            "title": "Multi-parcel sales only",
            "type": "boolean",
            "description": "true = only sales covering more than one parcel; false = only single-parcel sales; leave unset for all."
          },
          "relatedParty": {
            "title": "Related-party sales only",
            "type": "boolean",
            "description": "true = only sales where buyer and seller are related (parent/child, common ownership, siblings ); false = only unrelated; leave unset for all."
          },
          "aggregate": {
            "title": "Aggregate instead of records",
            "type": "boolean",
            "description": "When on, returns one summary record per group (with a count) instead of individual sale records.",
            "default": false
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "propertyType",
              "deedType",
              "situsCity",
              "saleYear",
              "financeType",
              "assessorCode"
            ],
            "type": "string",
            "description": "propertyType -> the property mix; situsCity -> city distribution; saleYear -> sales volume by year; assessorCode -> the Assessor's sale/quality mix.",
            "default": "propertyType"
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records pushed (0 = a reasonable ceiling of 200).",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}