Skip to content
Scrappa Get API key
Rentals.ca API 1 credit/request

Rentals.ca Cities API Documentation

GET https://scrappa.co/api/rentals-ca/cities

Rentals.ca Cities API lists the cities Rentals.ca covers, in alphabetical order, for one province or for all of Canada. Each city has a ready location value for the search route. Page with page and per_page. Failed requests are not billed.

Rentals.ca Cities API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/rentals-ca/cities
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "page": 1,
        "cities": [
            {
                "url": "https://rentals.ca/acton",
                "name": "Acton",
                "path": "acton",
                "region": "ON",
                "location": "acton, on, ca"
            },
            {
                "url": "https://rentals.ca/adjala-tosorontio",
                "name": "Adjala-Tosorontio",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

3 optional filters available.

region string Optional

Optional province or territory code such as ON. Without it, all of Canada is listed.

Example value US
page integer Optional

One-based page number (default 1).

Example value 1
per_page integer Optional

Cities per page, 1 to 100 (default 20).

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "page": 1,
        "cities": [
            {
                "url": "https://rentals.ca/acton",
                "name": "Acton",
                "path": "acton",
                "region": "ON",
                "location": "acton, on, ca"
            },
            {
                "url": "https://rentals.ca/adjala-tosorontio",
                "name": "Adjala-Tosorontio",
                "path": "adjala-tosorontio",
                "region": "ON",
                "location": "adjala-tosorontio, on, ca"
            },
            {
                "url": "https://rentals.ca/ajax",
                "name": "Ajax",
                "path": "ajax",
                "region": "ON",
                "location": "ajax, on, ca"
            }
        ],
        "region": "ON",
        "per_page": 3,
        "next_page": 2,
        "has_next_page": true
    },
    "meta": {
        "billable": true,
        "endpoint_family": "cities"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required parameter, a range or a value is invalid. This response is not billable.

{
    "errors": {
        "region": [
            "The selected region is invalid."
        ]
    },
    "message": "The request validation failed"
}
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.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "cities"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Rentals.ca could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.