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
    • All guides
    • Text search in synchronous mode
    • Text search in deferred mode
    • Searching by text description
    • Searching by image
    • Mobile search results
  • Access management
  • Pricing policy
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Mobile search results

Getting mobile search results

Written by
Yandex Cloud
Updated at November 27, 2025

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

To get mobile search results:

SDK
REST API
gRPC API
  1. In the program code for the search object (sdk.search_api.web class object), give a description of the User-Agent header of required device and browser. For example, you can do this in the user_agent property of the .configure method:

    mobile-search.py

    ...
    search = search.configure(
        search_type="ru",
        family_mode="strict",
        ...
        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 rest of the search query parameters as in Performing text search queries in deferred mode.

  3. Run the code and get the result.

  1. Add the userAgent field to the request body. This field contains a description of the User-Agent header of the device and browser. 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"
    }
    
  2. Set the other request body parameters according to the specification.

  3. Send the request and get the result. For more information, see Performing text search queries in deferred mode.

  1. Add the user_agent field to the request body. This field contains a description of the User-Agent header of the device and browser. 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. For more information, see Performing text search queries in deferred mode.

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
Searching by image
Next
Overview
© 2025 Direct Cursus Technology L.L.C.