- Type:
list<string> - Default:
["*"] - Scope:
search,settings - Deprecated name:
attributes
Usage
- Attribute names are case-sensitive.
objectIDis always retrieved, even when not specified.- Use
*to include all attributes. - Use
-attributeName(combined with*) to exclude specific attributes. This can be useful if you want to hide sensitive data—for example, if you don’t want to expose your custom ranking attributes. - Attributes listed in
unretrievableAttributesare never retrieved unless the request is authenticated with the Admin API key. - Nested attributes are supported. For example,
author.namereturns:{"author": {"name": "Agatha Christie"}}.
There’s no hard limit on the number of attributes you can include,
but adding too many can slow down
getSettings operations
and degrade performance in the Algolia dashboard.Examples
Set default list of retrievable attributes
Current API clients
Current API clients
Legacy API clients
Legacy API clients
Make all attributes retrievable by default
Current API clients
Current API clients
Legacy API clients
Legacy API clients
Override default list of retrievable attributes for the current search
Current API clients
Current API clients
Legacy API clients
Legacy API clients
Specify some attributes not to retrieve
Retrieve all attributes of an item except for its SKU and internal description.Current API clients
Current API clients
Legacy API clients
Legacy API clients