{
  "openapi": "3.0.1",
  "info": {
    "title": "DC Property Records - Owners, Assessments & Sales",
    "description": "Washington DC (District of Columbia) property data: the 221,688-lot assessment roll (owner, address, values, tax, balances), 423,472 sales, CAMA building records and 82,413 certificates of occupancy. Filter by SSL, address, owner, ward, use code, date or price; aggregate by ward or year.",
    "version": "0.0",
    "x-build-id": "lg1jsX0k3ii6vVV3n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~dc-property-records/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-dc-property-records",
        "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~dc-property-records/runs": {
      "post": {
        "operationId": "runs-sync-j0401-dc-property-records",
        "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~dc-property-records/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-dc-property-records",
        "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": {
          "corpus": {
            "title": "Corpus",
            "enum": [
              "",
              "itspe",
              "sales",
              "residential",
              "condo",
              "commercial",
              "cofo"
            ],
            "type": "string",
            "description": "itspe = assessment roll (default). sales / residential / condo / commercial = CAMA records (SSL only, no address). cofo = certificates of occupancy.",
            "default": ""
          },
          "ssl": {
            "title": "SSL",
            "type": "string",
            "description": "DC square-suffix-lot, with or without spaces, e.g. \"04020830\" or \"0699N2004\"."
          },
          "address": {
            "title": "Address prefix",
            "type": "string",
            "description": "Premise-address prefix, case-insensitive (itspe and cofo only), e.g. \"1600 PENNSYLVANIA\"."
          },
          "owner": {
            "title": "Owner prefix",
            "type": "string",
            "description": "Owner-name prefix, case-insensitive (itspe and cofo only), e.g. \"GALLERY\"."
          },
          "ward": {
            "title": "Ward",
            "minimum": 1,
            "maximum": 8,
            "type": "number",
            "description": "DC ward 1-8 (itspe and cofo only)."
          },
          "neighborhood": {
            "title": "Neighborhood prefix (itspe)",
            "type": "string",
            "description": "Assessment-neighborhood name prefix, e.g. \"Columbia\"."
          },
          "useCode": {
            "title": "Use code",
            "type": "string",
            "description": "DC property use code as a number, e.g. \"24\" (apartments) or \"11\" (single family). Leading zeros are accepted."
          },
          "classType": {
            "title": "Tax class (itspe)",
            "type": "string",
            "description": "Class type code, e.g. \"1B\", \"2\", \"3\"."
          },
          "qualified": {
            "title": "Sale qualified (sales / CAMA)",
            "enum": [
              "",
              "Q",
              "U"
            ],
            "type": "string",
            "description": "Q = qualified arm's-length sale, U = unqualified. The source also has blank qualifiers, which neither value matches.",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum sale price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only rows whose recorded sale price is at least this amount."
          },
          "minAssessed": {
            "title": "Minimum assessed value (USD, itspe)",
            "minimum": 0,
            "type": "number",
            "description": "Only roll rows whose new total assessed value is at least this amount."
          },
          "minBalance": {
            "title": "Minimum outstanding balance (USD, itspe)",
            "minimum": 0,
            "type": "number",
            "description": "Only roll rows owing at least this much in total (all tax years) - the delinquency screen."
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "ISO date YYYY-MM-DD on the corpus date: last sale (itspe), sale date (sales / CAMA) or issue date (cofo)."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "ISO date YYYY-MM-DD, inclusive, on the same date column as dateFrom."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "",
              "rows",
              "aggregate",
              "profile",
              "history"
            ],
            "type": "string",
            "description": "rows = records (default). aggregate = one row per group. profile = CAMA/CofO rows joined to the assessment roll by SSL for address, owner, ward, assessed value and tax balance (maxResults must be <= 600; not available for corpus=itspe). history = one SSL's whole trail across all six corpora (roll row, every recorded sale, each CAMA building, its CofOs), newest first - ssl is required and corpus is ignored.",
            "default": ""
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "",
              "ward",
              "neighborhood",
              "useCode",
              "classType",
              "propertyType",
              "year",
              "qualified",
              "saleCode",
              "zone",
              "approvedBuildingCodeUse"
            ],
            "type": "string",
            "description": "Dimension for mode=aggregate (blank = the corpus's first dimension: ward for the assessment roll and CofO, year for sales and the CAMA tables). Only dimensions that exist for the chosen corpus are accepted.",
            "default": ""
          },
          "metric": {
            "title": "Aggregate metric",
            "enum": [
              "",
              "count",
              "salePrice",
              "assessedTotal",
              "annualTax",
              "totalBalance"
            ],
            "type": "string",
            "description": "What to aggregate (blank = count). salePrice works on itspe / sales / CAMA; assessedTotal, annualTax and totalBalance are roll-only.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on records pushed (0 = default 50; up to 5,000 per run in rows mode, 500 in history mode). Each record is metered individually, so there is no per-run charge cap.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}