Skip to main content
Latest version: The C# API client v6 supports .NET Standard versions 1.3 to 2.1.To install version 6 of the C#/.NET API clients, add the Algolia.Search package from NuGet as a dependency to your project. For example:
Command line
The C#/.NET API clients are open source. View the source code on GitHub.

Test your installation

To test your installation, try running a short program that adds a record to a test index, searches your index, and prints the results.
1

Create account

If you haven’t already, create an Algolia account
2

Copy code

Copy the following code into a new project or file. Replace ALGOLIA_APPLICATION_ID and ALGOLIA_API_KEY with values from your account. Make sure to use an API key with addObject and search permissions.
In production, use environment variables for your credentials.
3

Run code

Run the code, depending on your development environment.
If the command is successful, you should see:
Last modified on April 30, 2026