REST samples for Azure AI Search

Learn about the REST API samples that demonstrate the functionality and workflow of an Azure AI Search solution. These samples use the Search REST APIs.

REST is the definitive programming interface for Azure AI Search, and all operations that can be invoked programmatically are available first in REST, and then in SDKs. For this reason, most examples in the documentation use the REST APIs to demonstrate or explain important concepts.

You can use any client that supports HTTP calls. Here's a quickstart that explains how to formulate the HTTP request using Visual Studio Code with a REST client.

Doc samples

Code samples from the Azure AI Search team demonstrate features and workflows. Many of these samples are referenced in tutorials, quickstarts, and how-to articles. You can find these samples in Azure-Samples/azure-search-rest-samples on GitHub.

Samples Description
quickstart Source code for Quickstart: Text search using REST. This sample covers the basic workflow for creating, loading, and querying a search index using sample data.
quickstart-vectors Source code for Quickstart: Vector search using REST APIs. This sample covers the basic workflow for indexing and querying vector data.
skillset-tutorial Source code for Tutorial: Use REST and AI to generate searchable content from Azure blobs. This sample shows you how to create a skillset that iterates over Azure blobs to extract information and infer structure.
debug-sessions Source code for Tutorial: Diagnose, repair, and commit changes to your skillset. This sample shows you how to use a skillset debug session in the Azure portal. REST is used to create the objects used during debug.
custom-analyzers Source code for Tutorial: Create a custom analyzer for phone numbers. This sample explains how to use analyzers to preserve patterns and special characters in searchable content.
knowledge-store Source code for Create a knowledge store using REST. This sample explains the necessary steps for populating a knowledge store used for knowledge mining workflows.
projections Source code for Define projections in a knowledge store. This sample explains how to specify the physical data structures in a knowledge store.
index-encrypted-blobs Source code for How to index encrypted blobs using blob indexers and skillsets. This article shows how to index documents in Azure Blob Storage that have been previously encrypted using Azure Key Vault.

Tip

Try the Samples browser to search for Microsoft code samples in GitHub, filtered by product, service, and language.