Retrieve a record

Retrieves one record by its object ID.

To retrieve more than one record, use the objects operation.

Usage

Required ACL: search
1
2
3
4
5
require "algolia"

client = Algolia::SearchClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")

response = client.get_object("ALGOLIA_INDEX_NAME", "uniqueID", ["attr1", "attr2"])
Did you find this page helpful?
Ruby API clients v3