# Condos.ca Buildings API Documentation

<p><strong>Condos.ca Buildings API</strong> searches active buildings by name or address text, or returns one building by <code>id</code>. Items carry address, units, floors, year built, size and price range, amenities, developers, rating, photos and listing counts. Send <code>query</code> or <code>id</code>. An unknown <code>id</code> returns 404. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/condos-ca-api/condos_ca_buildings](https://scrappa.co/docs/condos-ca-api/condos_ca_buildings)
- **API group:** Condos.ca API
- **Endpoint:** `GET https://scrappa.co/api/condos-ca/buildings`

## 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 |
| --- | --- | --- | --- |
| `query` | string | No | Building name or address text, 1 to 100 characters. Required unless id is sent. Example: king. |
| `id` | integer | No | Building id from a listing or an earlier search. Required unless query is sent. |
| `limit` | integer | No | Buildings per page, 1 to 50. Default 10. |
| `page` | integer | No | One-based page number. Default 1. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": 9864,
                "url": "https://condos.ca/richmond/kingfisher-park-8091-no-2-road-8131-no-2-road",
                "name": "Kingfisher Park",
                "tags": [],
                "units": 10,
                "floors": 3,
                "photos": [],
                "rating": 0,
                "region": "Metro Vancouver",
                "status": "Active",
                "address": "8091 No. 2 Road",
                "latitude": 49.154566,
                "locality": "Richmond",
                "max_beds": null,
                "min_beds": null,
                "province": "British Columbia",
                "amenities": [],
                "longitude": -123.1592693,
                "max_baths": null,
                "min_baths": null,
                "price_max": 0,
                "price_min": 0,
                "developers": [],
                "main_photo": null,
                "rent_count": 0,
                "sale_count": 0,
                "year_built": "2013",
                "fees_include": [],
                "pets_allowed": null,
                "sales_status": "Sold Out",
                "building_type": "Townhouse",
                "neighbourhood": "Thompson | Seafair | Blundell",
                "parking_spots": 0,
                "largest_unit_sqft": 0,
                "smallest_unit_sqft": 0,
                "construction_status": "Complete",
                "average_price_per_sqft": 757
            }
        ],
        "pagination": {
            "page": 1,
            "total": 449,
            "per_page": 2,
            "last_page": 225
        },
        "search_metadata": {
            "query": "king"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "buildings"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 404 | Not Found | No building has this id. This response is not billable. |
| 503 | Upstream Unavailable | Condos.ca could not be reached. This response is not billable and is retryable. |

## 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)
