Skip to main content
Required ACL: search You can use three methods to get records from your indices:
  • getObject: get a single record from an index.
  • getObjects: get multiple records from an index.
  • multipleGetObjects: get multiple records from multiple indices within the same Algolia application.
Records are returned in the order in which they were requested.
When retrieving large numbers of records, be aware of the rate limitations on these processes and the impact on your analytics data.
To get all records from an index, use the browse method.

Examples

Return a list of records by their IDs

Return a list of records with a subset of their attributes

If an object ID isn’t found in your index, the result is null for that object ID.

Return a single record by its ID

If the object ID doesn’t exist in your index, this method returns an error.

Return records from multiple indices

Return a list of records and send extra HTTP headers

Parameters

object[]
required
A list of key-value pairs that represent specific records in specific indices. (Required for multipleGetObjects).
string
required
Object ID for the record you want to get. (Required for getObject)
string[]
required
List of objectIDs to retrieve. (Required for getObjects).
string | string[]
Comma-separated list of attributes to include with each record.By default, all retrievable attributes are returned.
object
request options to add to the request.
You can’t use search parameters with getObjects.

Response

list
List of the retrieved records.

Response as JSON

This section shows the JSON response returned by the API. Each API client wraps this response in language-specific objects, so the structure may vary. To view the response, use the getLogs method. Don’t rely on the order of properties—JSON objects don’t preserve key order.
JSON
Last modified on March 23, 2026