Algolia icon

Algolia

Use Algolia in your n8n workflows

Overview

The "Get object" operation of the "Records" resource in this Algolia node retrieves a single record from a specified index by its unique object ID. This is useful when you want to fetch detailed information about a specific item stored in an Algolia index.

Common scenarios include:

  • Fetching product details by product ID for display or processing.
  • Retrieving user profile data by user ID.
  • Accessing any individual record for validation, updates, or further workflow steps.

Example: You have an index of books and want to get the full details of a book with object ID "book-123".

Properties

Name Meaning
Index Name The name of the Algolia index where the record is stored. Must be selected from available indices.
Object ID The unique identifier of the record to retrieve.
Attributes To Retrieve Optional JSON array specifying which attributes of the record to return. If empty or omitted, all retrievable attributes are returned.

Output

The output contains a JSON object representing the retrieved record from the specified index. The structure corresponds to the record's fields as stored in Algolia. If "Attributes To Retrieve" is specified, only those fields will be included.

No binary data is output by this operation.

Dependencies

  • Requires an Algolia API key credential configured in n8n with appropriate permissions to read records.
  • Requires the Algolia Application ID to construct the base URL for API requests.
  • The node uses Algolia's REST API endpoint /1/indexes/{indexName}/{objectID} with HTTP GET method.

Troubleshooting

  • Record Not Found: If the specified object ID does not exist in the index, the API may return a 404 error. Verify the object ID and index name.
  • Authentication Errors: Ensure that the API key credential has read access to the index.
  • Invalid Index Name: The index name must be valid and accessible; otherwise, the request will fail.
  • Malformed Attributes To Retrieve: If the JSON for attributes to retrieve is invalid, the request may fail or ignore the parameter.

Links and References

Discussion