---
updatedAt: 2026-05-05T15:35:35.000Z
agentTools:
  projectIndex: https://docs.repliers.io/llms.txt
---

# Get a single building

Use this endpoint to get details about a specific building by its address key.
The address key can be found in the `address.addressKey` field of building objects returned by the buildings search endpoint.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "repliers",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.repliers.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "REPLIERS-API-KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/buildings": {
      "get": {
        "summary": "Buildings Search (GET)",
        "description": "Identical to POST /buildings and accepts the same query parameters. Use this method when the map boundary is small enough to fit in the query string. For large polygons or multipolygons, use POST /buildings and send the map data in the request body.",
        "tags": [
          "Buildings"
        ],
        "parameters": [
          {
            "name": "area",
            "in": "query",
            "description": "Filters buildings by geographical area (also referred to as region or county).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "buildingName",
            "in": "query",
            "description": "Filters buildings by name. Availability of building names may vary by MLS and is not guaranteed for all buildings.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "Filters buildings by city.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "class",
            "in": "query",
            "description": "Filters buildings by property class.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "condo",
                  "residential",
                  "commercial"
                ],
                "description": "Classification of property type"
              }
            }
          },
          {
            "name": "displayPublic",
            "in": "query",
            "description": "Filters buildings by public display status. Y returns buildings that may be displayed publicly, N returns buildings that should be password protected. Note - this parameter is currently validated but has no effect on the results.",
            "schema": {
              "type": "string",
              "enum": [
                "Y",
                "N"
              ]
            }
          },
          {
            "name": "lat",
            "in": "query",
            "description": "Accepts a value for latitude. Must be used together with the long and radius parameters to return buildings within a certain radius of a given latitude and longitude. If any one of lat, long or radius is provided, all three are required.",
            "schema": {
              "type": "number",
              "format": "float",
              "minimum": -90,
              "maximum": 90
            }
          },
          {
            "name": "long",
            "in": "query",
            "description": "Accepts a value for longitude. Must be used together with the lat and radius parameters to return buildings within a certain radius of a given latitude and longitude. If any one of lat, long or radius is provided, all three are required.",
            "schema": {
              "type": "number",
              "format": "float",
              "minimum": -180,
              "maximum": 180
            }
          },
          {
            "name": "map",
            "in": "query",
            "description": "GeoJSON polygon or multi-polygon boundary for geographical filtering. Limits results to buildings within the specified boundaries. For complex polygons or multipolygons that exceed query parameter size limits, use the POST method and include the map data in the request body. Format: Array of coordinate arrays, where each coordinate is [longitude, latitude] in WGS 84 format. The polygon must be closed (first and last points must be identical). For more information refer to the implementation guide <a target=\"_blank\" href=\"https://help.repliers.com/en/article/filtering-listings-geo-spatially-using-the-map-parameter-7sorw0/\">Filtering Listings Geo-Spatially Using the \"map\" Parameter</a>",
            "schema": {
              "type": "string",
              "format": "json"
            }
          },
          {
            "name": "maxPrice",
            "in": "query",
            "description": "Filters buildings whose listing prices are <= the supplied value.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "maxStories",
            "in": "query",
            "description": "Filters buildings whose story count is <= the supplied value.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "minBathrooms",
            "in": "query",
            "description": "Filters buildings whose bathroom count is >= the supplied value.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "minBedrooms",
            "in": "query",
            "description": "Filters buildings whose bedroom count is >= the supplied value.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "minPrice",
            "in": "query",
            "description": "Filters buildings whose listing prices are >= the supplied value.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "minStories",
            "in": "query",
            "description": "Filters buildings whose story count is >= the supplied value.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "neighborhood",
            "in": "query",
            "description": "Filters buildings by neighborhood.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "pageNum",
            "in": "query",
            "description": "The page number to return. For example, with 100 results per page, specifying pageNum=2 returns results 101–200.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "propertyType",
            "in": "query",
            "description": "Filters buildings by property type.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "radius",
            "in": "query",
            "description": "Accepts a value for radius, expressed in the unit set by `radiusUnit` (KM by default). Must be used with `lat` and `long` parameters to return buildings within the specified radius of a given latitude and longitude. If any one of lat, long or radius is provided, all three are required. Must be a whole number greater than 0.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "radiusUnit",
            "in": "query",
            "description": "Sets the unit of measurement for the `radius` parameter. Can only be used together with `radius`.\n\nAllowed values:\n\n- `km` — kilometers (default)\n- `m` — meters\n- `mi` — miles\n- `yd` — yards\n",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "km",
                "mi",
                "yd"
              ],
              "default": "km"
            }
          },
          {
            "name": "resultsPerPage",
            "in": "query",
            "description": "The number of buildings to return per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "Sorts results by the specified field. Note - this parameter is currently validated but has no effect on the order of the results.",
            "schema": {
              "type": "string",
              "enum": [
                "numUnitsDesc"
              ],
              "description": "Sort field for buildings results"
            }
          },
          {
            "name": "streetName",
            "in": "query",
            "description": "Filters buildings by street name.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "streetNumber",
            "in": "query",
            "description": "Filters buildings by street number.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Filters buildings by listing type.",
            "schema": {
              "type": "string",
              "enum": [
                "sale",
                "lease"
              ],
              "description": "Whether the property is for sale or lease"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filters buildings by the status of their listings. A returns buildings with available listings, U returns buildings with unavailable listings. Values are case-insensitive. Repeat the parameter to supply both.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "A",
                  "U"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response containing list of buildings",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/paths/~1nlp/get/responses/200/content/application~1json/schema/allOf/0"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "buildings": {
                          "type": "array",
                          "description": "Array of building objects matching the search criteria",
                          "items": {
                            "$ref": "#/paths/~1buildings~1{addressKey}/get/responses/200/content/application~1json/schema"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1nlp/get/responses/401/content/application~1json/schema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/buildings/{addressKey}": {
      "get": {
        "summary": "Get a single building",
        "description": "Use this endpoint to get details about a specific building by its address key.\nThe address key can be found in the `address.addressKey` field of building objects returned by the buildings search endpoint.\n",
        "tags": [
          "Buildings"
        ],
        "parameters": [
          {
            "name": "addressKey",
            "in": "path",
            "description": "Unique address identifier key for the building. Available from `building.address.addressKey` in search results.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response containing building details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Building information including location, pricing, and property details",
                  "properties": {
                    "address": {
                      "type": "object",
                      "description": "Address components of the building",
                      "properties": {
                        "addressKey": {
                          "type": "string",
                          "description": "Unique address identifier key"
                        },
                        "streetNumber": {
                          "type": "string",
                          "description": "Street number"
                        },
                        "streetName": {
                          "type": "string",
                          "description": "Street name"
                        },
                        "streetSuffix": {
                          "type": "string",
                          "description": "Street suffix (e.g., Blvd, St, Ave)"
                        },
                        "streetDirection": {
                          "type": "string",
                          "description": "Street direction (e.g., N, S, E, W)"
                        },
                        "city": {
                          "type": "string",
                          "description": "City name"
                        },
                        "neighborhood": {
                          "type": "string",
                          "description": "Neighborhood name"
                        },
                        "district": {
                          "type": "string",
                          "description": "District or municipal division"
                        },
                        "area": {
                          "type": "string",
                          "description": "Area name"
                        },
                        "state": {
                          "type": "string",
                          "description": "State or province name"
                        },
                        "country": {
                          "type": "string",
                          "description": "Country name"
                        },
                        "zip": {
                          "type": "string",
                          "description": "Postal or ZIP code"
                        },
                        "majorIntersection": {
                          "type": "string",
                          "description": "Major intersection or cross streets"
                        }
                      }
                    },
                    "nearby": {
                      "type": "object",
                      "properties": {
                        "amenities": {
                          "type": "array",
                          "description": "List of nearby amenities",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "details": {
                      "type": "object",
                      "properties": {
                        "yearBuilt": {
                          "type": "string",
                          "description": "Year the building was built"
                        },
                        "buildingName": {
                          "type": "string",
                          "description": "Name of the building"
                        },
                        "minSqft": {
                          "type": "integer",
                          "description": "Minimum square footage"
                        },
                        "maxSqft": {
                          "type": "integer",
                          "description": "Maximum square footage"
                        }
                      }
                    },
                    "map": {
                      "type": "object",
                      "properties": {
                        "latitude": {
                          "type": "string",
                          "description": "Latitude coordinate"
                        },
                        "longitude": {
                          "type": "string",
                          "description": "Longitude coordinate"
                        },
                        "point": {
                          "type": "string",
                          "description": "WKT (Well-Known Text) representation of the building's center point"
                        }
                      }
                    },
                    "image": {
                      "type": "string",
                      "description": "Image filename"
                    },
                    "class": {
                      "type": "string",
                      "description": "Property class"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1buildings/get/responses/401"
          },
          "404": {
            "description": "Building not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "msg": {
                        "type": "string",
                        "description": "Error message"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/paths/~1buildings/get/responses/500"
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```