Existing Casafari API · API v1 · References
Get types
GET
https://api.casafari.com/v1/references/typesStatic token0 parametersAPI v1
Send Authorization: Token $CASAFARI_TOKEN with your existing API token; see where to get it.
The same path under /api, signed in with a bearer token, is in the REST API reference: GET /api/v1/references/types.
Description
Returns a list of all possible estate types.
Example request
Placeholders only: replace the token and the values with your own.
curl "https://api.casafari.com/v1/references/types" \
-H "Authorization: Token $CASAFARI_TOKEN"Responses
200
Type: object[].
Show the response shape (6 fields)
typesobject[]requiredList of grouped property types.
2 properties
groupstringrequiredName of the group of types.
namesstring[]requiredList of type names that belong to a specific group.
types_with_countriesobject[]requiredList of type names with countries where each type is available.
2 properties
namestringrequiredType name.
countriesstring[]requiredList of countries where the type is available.
Example from the API description (long arrays shortened)
{
"types": [
{
"group": "apartment",
"names": [
"apartment",
"studio"
]
},
{
"group": "house",
"names": [
"country_house",
"house"
]
}
],
"types_with_countries": [
{
"name": "apartment",
"countries": [
"Portugal",
"Spain"
]
},
{
"name": "studio",
"countries": [
"Portugal",
"Spain"
]
}
]
}401 Unauthorized
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.
403 Forbidden
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.