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.
Run this endpoint
Endpoint
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.
string
Optional
Optional province or territory code such as ON. Without it, all of Canada is listed.
US
integer
Optional
One-based page number (default 1).
1
integer
Optional
Cities per page, 1 to 100 (default 20).
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"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.
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"
}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.