{
  "openapi": "3.0.1",
  "info": {
    "title": "Philadelphia Property Assessments - OPA Roll (Values + Sales)",
    "description": "Philadelphia OPA property roll (public data, 583k+ properties): assessed values, latest recorded sale with price, owner names, bedrooms/baths/area/year built, zoning and tax exemptions. Search by owner, address, zip, ward, category or value, or look up one PIN for its full record.",
    "version": "0.0",
    "x-build-id": "NLK2aUIzVLdrNrdWa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~pa-philly-opa/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-pa-philly-opa",
        "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~pa-philly-opa/runs": {
      "post": {
        "operationId": "runs-sync-j0401-pa-philly-opa",
        "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~pa-philly-opa/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-pa-philly-opa",
        "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",
              "profile",
              "aggregate",
              "changes"
            ],
            "type": "string",
            "description": "search = filter the roll. profile = one property's full record (needs pin or parcelNumber). aggregate = one row per group. changes = the feed between the last two daily snapshots. Leave blank to auto-route."
          },
          "pin": {
            "title": "PIN",
            "type": "string",
            "description": "Exact OPA property PIN, e.g. \"1001394284\". One row per PIN."
          },
          "parcelNumber": {
            "title": "Parcel number",
            "type": "string",
            "description": "Exact parcel number (1:1 with PIN), e.g. \"234229200\"."
          },
          "owner": {
            "title": "Owner name",
            "type": "string",
            "description": "Owner name, substring, case-insensitive, matched across owner 1 and owner 2 (e.g. \"CRUZATI\")."
          },
          "address": {
            "title": "Address",
            "type": "string",
            "description": "Property location string, substring, case-insensitive, e.g. \"OAKLAND ST\" or \"4636 OAKLAND\"."
          },
          "zipCode": {
            "title": "ZIP prefix",
            "type": "string",
            "description": "ZIP code prefix (digits), e.g. \"19124\"."
          },
          "ward": {
            "title": "Geographic ward",
            "type": "string",
            "description": "Exact ward number, e.g. \"5\" or \"39\"."
          },
          "category": {
            "title": "Property category",
            "enum": [
              "",
              "SINGLE FAMILY",
              "MULTI FAMILY",
              "VACANT LAND",
              "MIXED USE",
              "COMMERCIAL",
              "APARTMENTS  > 4 UNITS",
              "INDUSTRIAL",
              "VACANT LAND - RESIDENTIAL",
              "GARAGE - RESIDENTIAL",
              "OFFICES",
              "VACANT LAND - NON-RESIDENTIAL",
              "GARAGE - COMMERCIAL",
              "HOTEL",
              "SPECIAL PURPOSE",
              "RETAIL"
            ],
            "type": "string",
            "description": "Property category (exact). Blank = all. SINGLE FAMILY is the dominant category (463k)."
          },
          "zoning": {
            "title": "Zoning",
            "type": "string",
            "description": "Zoning code, substring, case-insensitive, e.g. \"RSA5\", \"RM1\", \"CMX\"."
          },
          "minYearBuilt": {
            "title": "Built on/after year",
            "type": "integer",
            "description": "Minimum year built (inclusive). Rows with a blank year built are excluded when this is set."
          },
          "maxYearBuilt": {
            "title": "Built on/before year",
            "type": "integer",
            "description": "Maximum year built (inclusive). Rows with a blank year built are excluded when this is set."
          },
          "minMarketValue": {
            "title": "Min market value",
            "type": "number",
            "description": "Minimum assessed market value (USD). Rows with a blank value are excluded when this is set."
          },
          "maxMarketValue": {
            "title": "Max market value",
            "type": "number",
            "description": "Maximum assessed market value (USD)."
          },
          "minSalePrice": {
            "title": "Min sale price",
            "type": "number",
            "description": "Minimum latest recorded sale price (USD). Rows with no recorded sale are excluded when this is set."
          },
          "maxSalePrice": {
            "title": "Max sale price",
            "type": "number",
            "description": "Maximum latest recorded sale price (USD)."
          },
          "soldFrom": {
            "title": "Sold on/after",
            "type": "string",
            "description": "Latest sale date lower bound, ISO 'YYYY-MM-DD' (e.g. \"2026-01-01\")."
          },
          "soldTo": {
            "title": "Sold on/before",
            "type": "string",
            "description": "Latest sale date upper bound, ISO 'YYYY-MM-DD' (e.g. \"2026-12-31\")."
          },
          "homesteadOnly": {
            "title": "Homestead exemption only",
            "type": "boolean",
            "description": "When on, returns only properties carrying a homestead exemption.",
            "default": false
          },
          "aggregate": {
            "title": "Aggregate instead of records",
            "type": "boolean",
            "description": "When on, returns one summary record per group with count, instead of individual properties.",
            "default": false
          },
          "changes": {
            "title": "Return the change feed",
            "type": "boolean",
            "description": "When on, returns the changes between the last two daily snapshots instead of records.",
            "default": false
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "category",
              "zipCode",
              "ward",
              "zoning",
              "exempt"
            ],
            "type": "string",
            "description": "category -> property-type mix; zipCode / ward -> geography; zoning -> zoning mix; exempt -> exempt vs taxable.",
            "default": "category"
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}