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
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Search API
    • All guides
      • Performing search queries in synchronous mode
      • Performing search queries in deferred mode
      • Mobile search results
  • Access management
  • Pricing policy
  • Audit Trails events
  1. Step-by-step guides
  2. API v2
  3. Mobile search results

Getting mobile search results using API v2

Written by
Yandex Cloud
Updated at December 27, 2024

Mobile search results differ from default search results by the ranking formula and presence of links to websites optimized for mobile devices.

  1. To get mobile search results, add this field to the request body:

    REST API
    gRPC API

    The userAgent contains the description of the device and browser User-Agent header. Here is an example:

    body.json

    {
      ...
      "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"
    }
    

    The user_agent field contains the description of the device and browser User-Agent header. Here is an example:

    body.json

    {
      ...
      "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"
    }
    
  2. Set the other request body parameters according to the specification.

  3. Send the request and get the result.

Mobile search results will be different from default search results by the website ranking, total number of results found, and some other parameters.

Was the article helpful?

Previous
Performing search queries in deferred mode
Next
Overview
© 2025 Direct Cursus Technology L.L.C.