Yandex Cloud
Search
Contact UsTry it for free
  • 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
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Search API
  • Getting started
  • Access management
  • Pricing policy
  • Audit Trails events
  • Release notes

Getting mobile search results using API v1

Written by
Yandex Cloud
Updated at July 24, 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:

  1. Add to your request a header entitled user-agent containing the device and browser description. Here is an example:

    cURL
    Python
    curl \
      --header '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' \
      '<GET request>'
    
    import subprocess
    
    MOBILE_HEADER = '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'
    URL = f'<GET request>'
    with open('mob.xml', 'w') as f:
       subprocess.run(['curl', '-H', MOBILE_HEADER, URL], stdout=f)
    

    Note

    The above example uses a GET request. If using a POST request, add a similar header.

  2. Set the remaining request parameters based on the specification and send the request.

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?

© 2025 Direct Cursus Technology L.L.C.