Skip to main content
Latest version: Install version 7 of the C#/.NET API clients by adding the Algolia.Search package from NuGet. For example:
Command line

Building ASP.NET apps?

Check the additional information about dependency injection.
The C#/.NET API clients are open source and generated from OpenAPI specifications.

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’ll see the API response as a native object in your programming language.
Last modified on June 10, 2026