To list residential properties, you need a way to turn a map area into a property search and then open a selected listing. By the end of this guide, you will know how to send the required geographic bounds to the Canada Real Estate API, use location suggestions, and request property details.
The API supports residential properties for sale or rent. Its endpoints fit applications such as map-based search tools, property portals, and internal research dashboards. The listing request is separate from autocomplete: a keyword suggestion is useful for search input, but the residential endpoint requires latitude and longitude bounds.
Getting started on Zyla API Hub
Open the Canada Real Estate API listing on Zyla API Hub. Create a free account, then click Subscribe or Start Free Trial when available to get an API key for endpoint requests.
Zyla uses subscriptions and quotas rather than pay-per-call billing. For a first API, the available offer is a 7-day trial or 50 requests; check the API page for current access options and pricing. Keep the key on your server rather than embedding it in browser code.
List properties within geographic bounds
List Residential is the endpoint for the task. Send a GET request with the maximum and minimum latitude and longitude for the area you want to search. Coordinates are expressed in degrees; the supplied example uses a broad bounding box, so replace its values with the bounds relevant to your application.
Method: GET
Request URL: https://zylalabs.com/api/5902/canada-real-estate-api/7769/list-residential
All four parameters are required. These are the values in the documented request:
LatitudeMax:81.14747595814636LatitudeMin:-22.26872153207164LongitudeMax:-10.267941690981388LongitudeMin:-136.83037765324116
The complete request URL is https://zylalabs.com/api/5902/canada-real-estate-api/7769/list-residential?LatitudeMax=81.14747595814636&LatitudeMin=-22.26872153207164&LongitudeMax=-10.267941690981388&LongitudeMin=-136.83037765324116. Send it with the header Authorization: Bearer YOUR_API_KEY.
The endpoint description also mentions price range and property type, but the supplied request parameters establish only the four bounds above. Use those bounds for the integration shown here; consult the listing documentation before adding other filters.
Read results and paging metadata
The documented residential response includes ErrorCode, Paging, and Results. The sample paging object contains fields including RecordsPerPage, CurrentPage, TotalRecords, MaxRecords, TotalPages, RecordsShowing, and Pins.
Use those fields to understand the scope of a returned result set, rather than assuming every matching property appears in one response. The supplied parameters do not establish how to request another page, so check the API page before building pagination controls.
A sample result includes Id, MlsNumber, PublicRemarks, and a Building object. Render remarks as text, and make your interface tolerant of empty values: the documented example has an empty StoriesTotal. The response also includes a cache-related Status, but that value alone should not be treated as a caching guarantee.
Add location suggestions and property details
Auto Complete
Auto Complete accepts a search term and returns keyword-based suggestions. Use it to help users choose an address or location before they refine the map area for a residential search.
Method: GET
Request URL: https://zylalabs.com/api/5902/canada-real-estate-api/7768/auto-complete
Query is required. The documented request uses Query=Quebec and the optional parameters CultureId=1 and IncludeLocations=true:
curl -s -X GET "https://zylalabs.com/api/5902/canada-real-estate-api/7768/auto-complete?Query=Quebec&CultureId=1&IncludeLocations=true" \
-H "Authorization: Bearer YOUR_API_KEY"
The official response excerpt is shown below. It is truncated at ResultsMapBox, so it is not a complete JSON document to paste into a parser.
{"ErrorCode":{"Id":200,"Description":"Success - OK","ProductName":"Realtor API 7 | 20241202.1 | 1018e702fe06dda8279318e12b199910ca21c3ff | Monday, December 2, 2024 12:21:41 PM","Version":"1.0.9102.31292"},"Results":[{"Type":1,"ListingId":"27656697","ReferenceNumber":"X10440405","Address_EN":"191 QUEBEC STREET","Address_FR":"191 QUEBEC STREET","City":"Bracebridge (Macaulay)","PostalCode":"p1l1e3","Province":"ON","Details_Small_EN":null,"Details_Small_FR":null,"RelativeURLEn":"\/real-estate\/27656697\/191-quebec-street-bracebridge-macaulay-macaulay","RelativeURLFr":"\/immobilier\/27656697\/191-quebec-street-bracebridge-macaulay","isReferenceMatch":false,"isPostalCodeMatch":false},{"Type":1,"ListingId":"27661192","ReferenceNumber":"X10428998","Address_EN":"549 QUEBEC STREET","Address_FR":"549 QUEBEC STREET","City":"London","PostalCode":"n5w3y9","Province":"ON","Details_Small_EN":null,"Details_Small_FR":null,"RelativeURLEn":"\/real-estate\/27661192\/549-quebec-street-london-east-g","RelativeURLFr":"\/immobilier\/27661192\/549-quebec-street-london","isReferenceMatch":false,"isPostalCodeMatch":false},{"Type":1,"ListingId":"27720876","ReferenceNumber":"R2949266","Address_EN":"212 4928 QUEBEC STREET","Address_FR":"212 4928 QUEBEC STREET","City":"Vancouver","PostalCode":"v5w2n2","Province":"BC","Details_Small_EN":null,"Details_Small_FR":null,"RelativeURLEn":"\/real-estate\/27720876\/212-4928-quebec-street-vancouver","RelativeURLFr":"\/immobilier\/27720876\/212-4928-quebec-street-vancouver","isReferenceMatch":false,"isPostalCodeMatch":false},{"Type":1,"ListingId":"27741486","ReferenceNumber":"X11894528","Address_EN":"558 QUEBEC STREET","Address_FR":"558 QUEBEC STREET","City":"Hamilton (Parkview)","PostalCode":"l8h6v4","Province":"ON","Details_Small_EN":null,"Details_Small_FR":null,"RelativeURLEn":"\/real-estate\/27741486\/558-quebec-street-hamilton-parkview-parkview","RelativeURLFr":"\/immobilier\/27741486\/558-quebec-street-hamilton-parkview","isReferenceMatch":false,"isPostalCodeMatch":false},{"Type":1,"ListingId":"27754883","ReferenceNumber":"S11901084","Address_EN":"267 QUEBEC STREET","Address_FR":"267 QUEBEC STREET","City":"Clearview (Stayner)","PostalCode":"l0m1s0","Province":"ON","Details_Small_EN":null,"Details_Small_FR":null,"RelativeURLEn":"\/real-estate\/27754883\/267-quebec-street-clearview-stayner-stayner","RelativeURLFr":"\/immobilier\/27754883\/267-quebec-street-clearview-stayner","isReferenceMatch":false,"isPostalCodeMatch":false}],"ResultsMapBox":[{…
For a suggestion list, the useful fields include Address_EN, City, Province, and PostalCode. The sample also contains ListingId and ReferenceNumber. Notice that searching for “Quebec” returns street-address matches in several cities; a keyword match is not necessarily a province selection.
Call Auto Complete from Python
This example calls the same endpoint with the same parameters as the curl request. Replace YOUR_API_KEY with your key. It reads the actual HTTP response, not the truncated excerpt above.
import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = (
"https://zylalabs.com/api/5902/canada-real-estate-api/7768/"
"auto-complete?Query=Quebec&CultureId=1&IncludeLocations=true"
)
request = Request(
url,
headers={"Authorization": "Bearer YOUR_API_KEY"},
method="GET",
)
try:
with urlopen(request) as response:
data = json.load(response)
except HTTPError as error:
raise SystemExit(f"HTTP request failed: {error.code}")
except URLError as error:
raise SystemExit(f"Connection failed: {error.reason}")
except json.JSONDecodeError:
raise SystemExit("The response was not valid JSON")
status = data.get("ErrorCode", {})
print(status.get("Description"))
for result in data.get("Results", []):
print(
result.get("Address_EN"),
result.get("City"),
result.get("Province"),
result.get("PostalCode"),
)
The example uses Python’s standard library. In an application, inspect both request failures and the returned ErrorCode, and handle an empty Results list without treating it as a property match.
Property Detail
Property Detail retrieves information about a specific property, including descriptions, images, and property characteristics.
Method: GET
Request URL: https://zylalabs.com/api/5902/canada-real-estate-api/7770/property-detail
Both ReferenceNumber and PropertyID are required. The documented values are 67b74ee58bc56b22659786b3 and 27935110, respectively. Send them as query parameters with the same Bearer authorization header.
The sample detail response includes Id, MlsNumber, StatusId, and PublicRemarks. Before connecting a selected search result to this request, verify how your application obtains both required detail parameters; the supplied examples do not establish a conversion between the different identifier fields.
Build a practical search flow
- Offer Auto Complete as the user enters a location or address. Display enough context—such as city and province—to distinguish similarly named results.
- Obtain the search area’s latitude and longitude bounds in your application. A keyword suggestion alone should not be assumed to supply those bounds.
- Call List Residential with all four required bounds. Use the returned
Resultsfor the property list andPagingmetadata to understand the response’s scope. - When the user opens a property, call Property Detail once you have its required
ReferenceNumberandPropertyID.
For a map-based portal, this separates typing suggestions from the current map-area search. For an internal research tool, the same separation lets an analyst narrow an area before reviewing individual remarks. In either case, avoid presenting the example’s broad bounding box as though it were a precise neighborhood search.
Call the API from an AI agent
Zyla’s MCP endpoint lets an MCP-compatible client call marketplace APIs. Configure Claude Code, Cursor, Windsurf, or another compatible client with https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, substituting your API key.
An agent can use the residential search workflow, but it still needs the required bounds and, for a detail request, both required identifiers. Keep the user’s search area explicit and review the returned property information rather than asking the agent to infer missing parameters.
FAQ
What parameters are required to list residential properties?
LatitudeMax, LatitudeMin, LongitudeMax, and LongitudeMin are required. Send them to List Residential with Bearer authorization.
Can I search for a location by name?
Yes. Auto Complete accepts the required Query parameter and returns keyword-based suggestions. Listing residential properties is a separate request that requires geographic bounds.
How do I get more information about a property?
Call Property Detail with both ReferenceNumber and PropertyID. The endpoint provides detailed property information, including descriptions, images, and characteristics.
Does the listing response include pagination information?
Yes. The documented response includes a Paging object with fields such as CurrentPage, TotalPages, and TotalRecords. Check the API page for the request options available to navigate results.
Create a free Zyla account and visit the listing to check current access options and pricing: Start 7-day trial on Canada Real Estate API. The listing is where you can subscribe or start a trial when available and obtain your API key.