Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Search API
    • All guides
      • General connection procedure
      • Query testing
      • Authentication with the API
      • Requesting limits
      • Performing search queries
      • Mobile search results
  • Access management
  • Pricing policy
  • Audit Trails events
  1. Step-by-step guides
  2. API v1
  3. Authentication with the API

Authentication with the API v1

Written by
Yandex Cloud
Updated at March 28, 2025

To work with Yandex Search API using API v1, you need to send API requests under a service account. API v1 only supports authentication with API keys.

Warning

If your API key may have been compromised, revoke it and issue a new one.

  1. Get the service account's folder ID.

  2. Get an API key.

  3. Provide the obtained values in each request:

    GET requests
    POST requests

    In GET requests, provide the folder ID and API key in the folderid and apikey fields of the request URL, respectively:

    curl 'https://yandex.<domain>/search/xml?folderid=<folder_ID>&apikey=<API_key_value>&query=<search_request_text>'
    

    In POST requests, provide the API key in the Authorization request header in the following format:

    curl \
      --request POST \
      --header "Authorization: Api-Key <API_key>" \
      ...
    

    Provide the folder ID in the folderid field of the request URL:

    https://yandex.<domain>/search/xml?folderid=<folder_ID>
    

Was the article helpful?

Previous
Query testing
Next
Requesting limits
Yandex project
© 2025 Yandex.Cloud LLC