{
  "openapi": "3.0.1",
  "info": {
    "title": "US Rental Property Registrations - Seattle & Montgomery County",
    "description": "Rental property registrations from two official registers in one schema: Seattle, WA (29,766 registrations, 202,053 units) and Montgomery County, MD (25,826; 118,767 units). Search by address, city, ZIP, status, type or unit count; profile one permit; aggregate counts or summed units.",
    "version": "0.0",
    "x-build-id": "BSZob8fsG1wu5awh5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~us-rental-property-registrations/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-us-rental-property-registrations",
        "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~us-rental-property-registrations/runs": {
      "post": {
        "operationId": "runs-sync-j0401-us-rental-property-registrations",
        "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~us-rental-property-registrations/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-us-rental-property-registrations",
        "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": [
              "",
              "rows",
              "aggregate",
              "profile"
            ],
            "type": "string",
            "description": "rows = registrations (default). aggregate = one row per group. profile = every row for one permit or licence number.",
            "default": ""
          },
          "jurisdiction": {
            "title": "Jurisdiction",
            "enum": [
              "",
              "seattle",
              "montgomery"
            ],
            "type": "string",
            "description": "Restrict to one register. Empty = both.",
            "default": ""
          },
          "permitNumber": {
            "title": "Permit / licence number",
            "type": "string",
            "description": "Seattle e.g. \"001-0100004\"; Montgomery is a bare number, e.g. \"85910\"."
          },
          "address": {
            "title": "Street address contains",
            "type": "string",
            "description": "Case-insensitive substring on the street address."
          },
          "city": {
            "title": "City contains",
            "type": "string",
            "description": "Free text, case-insensitive."
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Two-letter code: WA (Seattle) or MD (Montgomery). Neither register covers another state, so any other value is rejected rather than answered with an empty page."
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "Exact 5-digit ZIP."
          },
          "status": {
            "title": "Status",
            "type": "string",
            "description": "Seattle publishes one status (\"Active Registration\"). Montgomery publishes Licensed, Unlicensed, Pending, Withdrawn, Revoked/Suspended, Denied, Condemned and more."
          },
          "licenseType": {
            "title": "Licence type (exact)",
            "type": "string",
            "description": "Exact published wording, e.g. \"Single Family, Townhouse, Back to Back, Duplex, Qu\" or \"Multi-family/Apartment Complex\"."
          },
          "structureType": {
            "title": "Structure type (exact)",
            "type": "string",
            "description": "Montgomery County only, e.g. \"Single Family\", \"Highrise - Multifamily with 9+ stories\"."
          },
          "minUnits": {
            "title": "Minimum rental units",
            "type": "integer",
            "description": "Whole number. 0 = no minimum. Use with maxUnits for a portfolio-size band.",
            "default": 0
          },
          "maxUnits": {
            "title": "Maximum rental units",
            "type": "integer",
            "description": "Whole number. 0 = no limit.",
            "default": 0
          },
          "registeredFrom": {
            "title": "Registered on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Seattle publishes registration dates; Montgomery does not, so this narrows the run to Seattle."
          },
          "registeredTo": {
            "title": "Registered on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Seattle only."
          },
          "expiresBefore": {
            "title": "Expires on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Seattle only - the renewal pipeline."
          },
          "expiresAfter": {
            "title": "Expires on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Seattle only."
          },
          "groupBy": {
            "title": "Group by (aggregate mode)",
            "enum": [
              "",
              "jurisdiction",
              "status",
              "licenseType",
              "structureType",
              "state",
              "city",
              "registeredYear",
              "expiresYear"
            ],
            "type": "string",
            "description": "Only with mode=aggregate. Empty = jurisdiction. structureType is Montgomery only; the year groups are Seattle only. A dimension the selected register does not publish is rejected instead of returning an empty breakdown. Every group is returned; maxResults does not cap groups.",
            "default": ""
          },
          "metric": {
            "title": "Aggregate metric",
            "enum": [
              "",
              "count",
              "units"
            ],
            "type": "string",
            "description": "count = registrations. units = summed rental units (the whole corpus is 320,820) - both apply to every groupBy dimension.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "type": "integer",
            "description": "Records delivered per run (default 200, maximum 5000). Billed per record delivered.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}