← Home Get Agencies

Get Agencies

GEThttps://api.bayut.com/v1/agencies

This endpoints lists agencies including linked branches.

🔐 Bearer Token: Provide your bearer token in the Authorization header when making requests to protected resources.
Query Parameters
NameTypeRequiredDescriptionExample
idstringOptionalFilter by specific agency ID9960
parent_idstringOptionalFilter agencies by parent agency ID (for branch hierarchies)9960
searchstringOptionalSearch agencies by name (case-insensitive partial match)>= 2 characters
per_pagestringOptionalNumber of items per page>= 1 characters
AcceptstringOptionalapplication/json
Response Schema
NameTypeRequiredDescriptionExample
dataarray[object]OptionalThe resource representing agencies
namestringOptionalName of the agency
descriptionstringOptionalAgency description
contactobjectOptionalContact Details for the Agency
created_atstringOptionalRecord creation timestamp
linksobjectOptionalThe links to pages.
firststringOptionalThe link to first page.
laststringOptionalThe link to last page.
prevstringOptionalThe link to previous page.
nextstringOptionalThe link to next page.
metaobjectOptionalMeta about pagination data.
current_pageintegerOptionalThe page you are currently on.
fromintegerOptionalThe first page of the paginated results.
pathstringOptionalThe path of the current page.
tointegerOptionalThe last page of the paginated results.
totalintegerOptionalThe total number of results.
Responses
200
403⚠️
401⚠️
Code Examples
curl --location 'https://api.bayut.com/v1/agencies?per_page=25' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'
{
    "data": [
        {
            "id": 102917,
            "parent_id": 9956,
            "name": "Realestate Agency",
            "description": "",
            "contact": {
                "phone": "+971-1-1111111",
                "email": "john.doe@mail.com",
                "website": null,
                "address": "Dubai Marina, UAE"
            },
            "created_at": "2023-07-05T09:39:03.000000Z"
        }
    ],
    "links": {
        "first": "https://api.bayut.com/v1/agencies?page=1",
        "last": null,
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://api.bayut.com/v1/agencies",
        "per_page": "25",
        "to": 1,
        "total": 1
    }
}