Bayut API
Agent
/truBroker/agentBayut /truBroker/agent API
Stop scraping. Start building. The /truBroker/agent endpoint gives you instant, programmatic access to Bayut data through a clean, well-documented REST API that just works. No more wrestling with headless browsers, maintaining proxy pools, or writing fragile CSS selectors that break with every site redesign. RealtyAPI handles all of that behind a simple API key authentication, so your integration stays stable while we handle the complexity underneath. From early-stage prototype to scaled production system, this endpoint grows with your application — start with 250 free calls to validate your idea, then move to a paid plan when you are ready to ship.
import requests
url = "https://bayut.realtyapi.io/truBroker/agent"
headers = {
"x-realtyapi-key": "YOUR_API_KEY"
}
params = {
"location_external_id": "5152"
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
print(data)What You Can Do With
the /truBroker/agent Endpoint.
Here's what this endpoint provides and how you can use the data it returns.
Endpoint Parameters
6 params| Parameter | Type | Required |
|---|---|---|
location_external_id | STRING | Required |
hitsPerPage | STRING | Optional |
page | STRING | Optional |
category | ENUM | Optional |
purpose | ENUM | Optional |
completionStatus | ENUM | Optional |
Required Parameters
This endpoint requires location_external_id to fetch data. Pass these as query parameters in your request.
JSON Response
Receive structured JSON containing /trubroker/agent data from Bayut. Parse it directly into your application models.
Real-Time Results
Every request fetches live Bayut data. No stale caches — you always get the most current information available.
Error Handling
Clear HTTP status codes and error messages help you handle edge cases gracefully. See our documentation for the full error reference.