- Type:
list<string>
- Default:
["*"]
- Scope:
search,settings
- Deprecated name:
attributes
Usage
- Attribute names are case-sensitive.
objectID
is 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
unretrievableAttributes
are never retrieved unless the request is authenticated with the Admin API key. - Nested attributes are supported. For example,
author.name
returns:{"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
Current API clients
Current API clients