# Spacious HK Building API

<p>Get one building by id: both names, the address, the position, the developer, the build year, the neighbourhood and a public housing flag. The building id comes from the autocomplete endpoint or from the building of a listing. An unknown id answers 404.</p>

- **Documentation:** [https://scrappa.co/docs/spacious-hk-api/spacious_hk_building](https://scrappa.co/docs/spacious-hk-api/spacious_hk_building)
- **API group:** Spacious HK API
- **Endpoint:** `GET https://scrappa.co/api/spacious-hk/building`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Building id from the `id` field of a building autocomplete result. |

## Example response

```json
{
    "data": {
        "id": 66551,
        "name": "Imperial Kennedy",
        "type": "building",
        "address": "68, Belcher's Street",
        "name_zh": "Imperial Kennedy",
        "latitude": 22.282676,
        "longitude": 114.12869,
        "built_year": 2016,
        "neighbourhood": "Kennedy Town",
        "neighbourhood_id": 41,
        "neighbourhood_zh": "\u5805\u5c3c\u5730\u57ce"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "building"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | The listing, building or agency does not exist or is no longer online. This response is not billable. |  |
|  | A parameter is missing or invalid. This response is not billable. |  |
|  | Spacious HK is temporarily unavailable, or its answer did not match the request, for example another page or an ignored filter. Retry the request. This response is not billable. |  |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
