SerpBase
Back to Blog

Google Mobile Search API: Mobile vs Desktop Results as JSON

Read Google's phone page or desktop page with one parameter. We ran two queries on both devices and list what differed: result counts, modules and the result total.

November 27, 2026
By SerpBase Team3 min read

Short answer: add "device":"mobile" or "device":"desktop" to a /google/search request and you get the page Google serves to that kind of device. If you leave the field out you get the mobile page. The two are different pages, not the same results in a different layout.

Most of Google's traffic is on phones, so a rank tracker that only reads desktop results is measuring the smaller audience. This is how to read both.

The request

curl -X POST 'https://api.serpbase.dev/google/search' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"q":"best budget mechanical keyboard","gl":"us","hl":"en","device":"mobile"}'

device accepts mobile, desktop (or pc) and default, which means mobile.

What we measured

We ran two queries on both devices on 27 November 2026, United States, English.

Eiffel Tower mobileEiffel Tower desktopkeyboard query mobilekeyboard query desktop
organic results79810
related_searches6848
result_statsabsentAbout 96,000 results (0.38s)absentAbout 16,600,000 results (0.24s)
knowledge_graph rows29, plus description––
discussions––absent6 threads
inline_videos4absent33
short_videosabsent4––
social_profilesabsent4––

Both devices returned an AI Overview for the keyboard query and four People Also Ask questions for Eiffel Tower.

Python: one keyword, both devices

import time, requests

def serp(q, device):
    r = requests.post(
        "https://api.serpbase.dev/google/search",
        headers={"X-API-Key": "YOUR_API_KEY"},
        json={"q": q, "gl": "us", "hl": "en", "device": device},
        timeout=60,
    ).json()
    if r["status"] != 0:
        raise RuntimeError(r.get("error"))
    return r

SKIP = {"status", "credits_charged", "elapsed_ms", "request_id",
        "product_id", "query", "page", "search_type", "search_url"}

for device in ("mobile", "desktop"):
    r = serp("best budget mechanical keyboard", device)
    modules = sorted(k for k in r if k not in SKIP)
    print(device, len(r.get("organic", [])), "organic |", ", ".join(modules))
    time.sleep(1)

Things that trip people up

  • The default is mobile. If your numbers are meant to be desktop rankings, say so in every request.
  • Store the device next to every rank. A position from the mobile page and one from the desktop page are not the same series; mixing them looks like ranking movement that never happened.
  • Modules come and go by device. In our test, Discussions and forums and the result count were only on desktop. Code that reads r["discussions"] will fail on the mobile answer; use .get().
  • result_stats is desktop only in what we saw, because the phone page does not print a result count.
  • Page length differs. Seven or eight organic results on the phone page against nine or ten on desktop in these tests. Do not assume ten.
  • location takes effect with the mobile device, per the docs. On desktop Google places the search by network address instead.
  • Each device is its own request and its own credit. Tracking both doubles the volume.

Related reading

Rank tracking with a SERP API covers scheduling and storage. For country and language see localized Google results.

Cost and limits

Each search costs 1 credit; failed requests are not charged. The response is always HTTP 200 with a status field: 0 means success, anything else comes with an error string. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.