← Home Get Countries

Get Countries

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

This endpoint lists countries to be used in create/update user endpoints.

🔐 Bearer Token: Provide your bearer token in the Authorization header when making requests to protected resources.
Query Parameters
NameTypeRequiredDescriptionExample
titlestringOptionalThe title filter, countri(es) with matching title would be returned.United Arab Emirates
per_pageintegerOptionalThe number of results per page.10
Response Schema
NameTypeRequiredDescriptionExample
dataobjectOptionalThe resource representing a country with its currency and PayPal information.
idintegerOptionalThe unique identifier for the country.1
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
401⚠️
403⚠️
Code Examples
curl --location 'https://api.bayut.com/v1/countries?title=United%20Arab%20Emirates&per_page=10' \
--header 'Authorization: Bearer <token>'
{
    "data": [
        {
            "id": 1,
            "title": {
                "en": "Afghanistan",
                "ar": "أفغانستان"
            },
            "currency": null,
            "country_code": "AF"
        },
        {
            "id": 2,
            "title": {
                "en": "Albania",
                "ar": "ألبانيا"
            },
            "currency": null,
            "country_code": "AL"
        }
    ]
}