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
6
7
8
9
10
using Algolia.Search.Clients;
using Algolia.Search.Models.Search;

var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));

var response = await client.GetObjectAsync(
  "ALGOLIA_INDEX_NAME",
  "uniqueID",
  new List<string> { "attr1", "attr2" }
);
Did you find this page helpful?
C# API clients v7