---
title: "Buildings with a public page"
method: GET
path: "/public/buildings"
tags: ["Public building pages"]
---

# Buildings with a public page

`GET /public/buildings`

## Request

- Base URL: `https://api.baseray.ai/v1`
- URL: `https://api.baseray.ai/v1/public/buildings`
- Auth: none required

A country's buildings that have a public page, in a stable order, for sitemaps. Follow `nextCursor` until it is null.

## Query parameters

- `country` 'cz' | 'dk' | 'ro', required
- `cursor` string
- `limit` integer

## Response `200`

OK

- PublicBuildingIndex: One page of a country's buildings that have a public page, in a stable order.
  - `items` object[], required
    - `id` string, uuid, required
    - `slug` string, required
    - `updatedAt` string, date, required
  - `nextCursor` string, nullable, required: Pass as `cursor` for the next page; null on the last one.
  - `total` integer, required: Buildings with a public page in the country.

## Other responses

- `400`: A query parameter is missing or malformed (`invalid_parameter`).
- `429`: Too many requests from this address in a minute (`rate_limited`); retry after `Retry-After` seconds.
- `503`: The building catalogue is unavailable right now (`unavailable`); retry after `Retry-After` seconds.

---

[API](https://skmtc.dev/baseray/apis/baseray-api.md) · [All operations](https://skmtc.dev/baseray/apis/baseray-api/llms.txt) · [OpenAPI document](https://skmtc.dev/baseray/apis/baseray-api/revisions/2dc2808717f7?raw)
