GET
/agency-agents Get all agents belonging to a specific agency.
Description
The agency-agents endpoint returns a list of all real estate agents who work for a specific agency. This is useful for displaying the agency's team on their profile page or for users browsing agents within a trusted agency.
Results include agent profiles with photos, names, and listing counts. The endpoint supports pagination for agencies with large teams.
Combine with agency-details to create complete agency profile pages showing both the agency overview and their full team roster.
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
agency_id | string | Required | The agency ID whose agents to retrieve. Get from agency-search or agency-details response. | 5678 |
page | integer | Optional | Page number for paginated results, starting from 1. | 1 |
Code Examples
curl --request GET \
--url 'https://bayut14.p.rapidapi.com/agency-agents?agency_id=5678&page=1' \
--header 'x-rapidapi-host: bayut14.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_API_KEY' Example Response
Response
{
"success": true,
"data": {
"agents": [
{
"externalID": "4567",
"name": "John Smith",
"photo": {
"url": "https://bayut-production.s3.eu-central-1.amazonaws.com/image/agent-photo.jpg"
},
"propertiesCount": 42,
"languages": [
"English",
"Arabic"
]
},
{
"externalID": "4568",
"name": "Sarah Johnson",
"photo": {
"url": "https://bayut-production.s3.eu-central-1.amazonaws.com/image/agent-photo2.jpg"
},
"propertiesCount": 38,
"languages": [
"English",
"French"
]
}
]
}
} Use Cases
- Display agency team rosters on profile pages
- Let users browse and select agents within an agency
- Analyze agency size and team composition
- Build agent recommendation features within agencies
Related Endpoints
Try this endpoint now
Subscribe to BayutAPI on RapidAPI and start making requests in minutes.