# Rentals.ca Agency API Documentation

<p><strong>Rentals.ca Agency API</strong> returns the management company (name, website, logo) and the contact name of one listing. Rentals.ca has no separate agency page, so the data is read from the listing. <code>management_company</code> is <code>null</code> when the listing has none, which is common; the contact name is then the only agency data. Agent email and phone are never returned. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/rentals-ca-api/rentals_ca_agency](https://scrappa.co/docs/rentals-ca-api/rentals_ca_agency)
- **API group:** Rentals.ca API
- **Endpoint:** `GET https://scrappa.co/api/rentals-ca/agency`

## 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 |
| --- | --- | --- | --- |
| `path` | string | No | Listing path from a search item, for example toronto/225-adelaide-st-west. |
| `url` | string | No | Full rentals.ca listing URL. Use it instead of path. |
| `id` | string | No | Listing id from a search item. Use it instead of path. |

## Example response

```json
{
    "data": {
        "listing": {
            "id": "cmVudGFsbGlzdGluZzozNzIyMzU=",
            "url": "https://rentals.ca/toronto/730-st-clarens-avenue-1",
            "name": "730 St. Clarens",
            "path": "toronto/730-st-clarens-avenue-1"
        },
        "contact_name": "Test Agent",
        "management_company": {
            "id": "bWFuYWdlbWVudGNvbXBhbnk6MQ==",
            "url": "https://example.com",
            "logo": "https://images.rentals.ca/logos/example.png",
            "name": "Example Property Management"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter, a range or a value is invalid. This response is not billable. |
| 404 | Not Found | The path or id is not a rental listing. This response is not billable. |
| 503 | Upstream Unavailable | Rentals.ca could not be reached or returned data that does not match the request. 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)
