# Condos.ca Autocomplete API Documentation

<p><strong>Condos.ca Autocomplete API</strong> finds cities, districts and neighbourhoods by name and tolerates typos. Each item has an <code>area_id</code> and an <code>area_type</code>. Send both to the search route. <code>sale_count</code> and <code>rent_count</code> show how many active listings the area has. A query with no match returns an empty list. Failed requests are not billed.</p>

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

## 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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Required. Search text, 1 to 100 characters. Example: toronto. |
| `limit` | integer | No | Number of areas, 1 to 50. Default 10. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "url": "https://condos.ca/toronto",
                "name": "Toronto",
                "area_id": 1,
                "latitude": 43.721746540723366,
                "area_type": "Locality",
                "long_name": "Toronto",
                "longitude": -79.37494455390618,
                "breadcrumb": "ON",
                "rent_count": 4984,
                "sale_count": 6903,
                "province_id": 9
            },
            {
                "url": "https://condos.ca/brampton/toronto-gore-rural-estate",
                "name": "Toronto Gore Rural Estate",
                "area_id": 935,
                "latitude": 43.79740075703428,
                "area_type": "Neighbourhood",
                "long_name": "Toronto Gore Rural Estate",
                "longitude": -79.71935969439906,
                "breadcrumb": "Brampton, ON",
                "rent_count": 1,
                "sale_count": 2,
                "province_id": 9
            }
        ],
        "search_metadata": {
            "query": "toronto"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. 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)
