Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Search API
  • Getting started
  • Access management
  • Pricing policy
    • Authentication in the API
  • Audit Trails events
  • Release notes
  1. API reference
  2. Authentication in the API

API authentication

Written by
Yandex Cloud
Updated at October 24, 2025

Yandex Search API requires you to submit your authentication credentials in each request. The authentication method depends on the type of account used to send your request:

Yandex or federated account
Service account
  1. Get an IAM token to authenticate your Yandex account or federated account. Provide the token in the Authorization header of each request in the following format:

    Authorization: Bearer <IAM_token>
    
  2. Assign the user the search-api.webSearch.user role for the folder to use for Yandex Search API requests. Make sure to include the folder ID in the folderId (folder_id) field in the body of each request.

  1. Choose one of the authentication methods:
    • Get an IAM token. Provide the IAM token in the Authorization header in the following format:

      Authorization: Bearer <IAM_token>
      
    • Create an API key. Provide the API key in the Authorization header in the following format:

      Authorization: Api-Key <API_key>
      
  2. Assign the service account the search-api.webSearch.user role for the folder where it was created and which will be used for Yandex Search API requests. Make sure to include the folder ID in the folderId (folder_id) field in the body of each request.

See alsoSee also

  • Performing text search queries in deferred mode
  • Access management in Yandex Search API

Was the article helpful?

Previous
Pricing policy
Next
Overview
© 2025 Direct Cursus Technology L.L.C.