Skip to content
AlterEstate

Amenities

GEThttps://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

GET
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

200 OK
[
  {
    "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
  }
]
401 Unauthorized
{
  "detail": "Invalid token."
}

Fields

FieldMeaning
idThe value you send in amenities and in the features filter.
nameName shown in the dashboard, usually in Spanish.
name_enEnglish name, when one exists.
categoryAmenity category ID, or null.
category_stringAmenity category name, or null.
is_globaltrue for amenities shared by every agency. false for amenities your agency created.
companyYour company ID on amenities your agency created. null on global amenities.
properties_countListings of your agency that use this amenity. Always 0 for global amenities.
deals_countSame 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.
Only your agency’s amenities
curl 'https://secure.alterestate.com/api/v1/properties/features/?is_global=false' \
  -H 'Authorization: Token YOUR_ACCOUNT_TOKEN'

Using amenity IDs

WhereHow
Create a propertyPOST /api/v1/properties/create/ with "amenities": [74, 73].
Edit a propertyPATCH /api/v1/properties/edit/{uid}/ with "amenities": [74, 73]. The list replaces the current amenities. Send [] to remove them all.
Search listingsGET /api/v1/properties/filter/?features=74&features=73. A listing must have every amenity you pass.
Read a listingGET /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.

IDAmenity
74Pool
73Gym
77Shared terrace
516Private terrace
66Appliances included (línea blanca)
21Elevator
67Balcony
27Patio
97Study

Status codes

StatusMeaning
200The list of amenities. It can be empty when a filter matches nothing.
401The account token is missing or invalid.
500Server 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.