Amenities
https://secure.alterestate.com/api/v1/properties/features/Lists the amenities your agency can assign to a property, with the IDs that amenities expects.
Returns every amenity the new-property form offers: the global amenities shared by all agencies and the ones your agency created under Settings → Amenities. Use the id of each item in amenities when you create or edit a property, and in the features filter of List properties.
Authentication
Send Authorization: Token your_api_key_here. Account token. Server-side only: never send it from browser or mobile app code.
Query parameters
is_globalboolean- false returns only the amenities your agency created. true returns only the global ones. Omit it to return both.Example:
false namestring- Exact amenity name, as stored. Case and accents must match.Example:
Piscina categorynumber- Amenity category ID. Returns only amenities in that category.Example:
2 sortstring- name or -name. The default order is by name, A to Z.Example:
name
Example request
curl --request GET \
--url 'https://secure.alterestate.com/api/v1/properties/features/?is_global=false' \
--header 'Authorization: Token your_api_key_here' \
--header 'Accept: application/json'Example response
[
{
"id": 73,
"name": "Gimnasio",
"name_en": "Gym",
"category": 2,
"category_string": "Áreas comunes",
"is_global": true,
"editable": false,
"company": null,
"merge_id": null,
"properties_count": 0,
"deals_count": 0
},
{
"id": 74,
"name": "Piscina",
"name_en": "Pool",
"category": 2,
"category_string": "Áreas comunes",
"is_global": true,
"editable": false,
"company": null,
"merge_id": null,
"properties_count": 0,
"deals_count": 0
},
{
"id": 10482,
"name": "Vista al mar",
"name_en": "Ocean view",
"category": null,
"category_string": null,
"is_global": false,
"editable": true,
"company": 512,
"merge_id": null,
"properties_count": 18,
"deals_count": 18
}
]{
"detail": "Invalid token."
}Fields
| Field | Meaning |
|---|---|
| id | The value you send in amenities and in the features filter. |
| name | Name shown in the dashboard, usually in Spanish. |
| name_en | English name, when one exists. |
| category | Amenity category ID, or null. |
| category_string | Amenity category name, or null. |
| is_global | true for amenities shared by every agency. false for amenities your agency created. |
| company | Your company ID on amenities your agency created. null on global amenities. |
| properties_count | Listings of your agency that use this amenity. Always 0 for global amenities. |
| deals_count | Same value as properties_count. Kept for compatibility. |
- The response is a plain list, not paginated. It has no count, next or previous.
- Only amenities of the company that owns the token are returned, together with the global ones. Other agencies’ amenities are never included.
- Any user of the agency can call it. No admin role is required.
curl 'https://secure.alterestate.com/api/v1/properties/features/?is_global=false' \
-H 'Authorization: Token YOUR_ACCOUNT_TOKEN'Using amenity IDs
| Where | How |
|---|---|
| Create a property | POST /api/v1/properties/create/ with "amenities": [74, 73]. |
| Edit a property | PATCH /api/v1/properties/edit/{uid}/ with "amenities": [74, 73]. The list replaces the current amenities. Send [] to remove them all. |
| Search listings | GET /api/v1/properties/filter/?features=74&features=73. A listing must have every amenity you pass. |
| Read a listing | GET /api/v1/properties/view/{slug}/ returns amenities as names, not IDs. |
Common amenity IDs
These global amenities are the same for every agency. Call the endpoint above for the full list, including the ones your agency created.
| ID | Amenity |
|---|---|
| 74 | Pool |
| 73 | Gym |
| 77 | Shared terrace |
| 516 | Private terrace |
| 66 | Appliances included (línea blanca) |
| 21 | Elevator |
| 67 | Balcony |
| 27 | Patio |
| 97 | Study |
Status codes
| Status | Meaning |
|---|---|
| 200 | The list of amenities. It can be empty when a filter matches nothing. |
| 401 | The account token is missing or invalid. |
| 500 | Server error while processing the request. |
Frequently asked questions
How do I get the amenity IDs for my agency?
Send GET https://secure.alterestate.com/api/v1/properties/features/ with Authorization: Token. Each item’s id is the value amenities expects on create and edit.
Can I create or edit amenities with the API?
This reference only documents the read. Manage amenities in the dashboard under Settings → Amenities.
Why does a global amenity show properties_count 0?
Usage is counted only for amenities your agency created. Global amenities always report 0, even when your listings use them.
Last updated . Questions? Emaildev@alterestate.com.