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 mobile | Eiffel Tower desktop | keyboard query mobile | keyboard query desktop | |
|---|---|---|---|---|
organic results | 7 | 9 | 8 | 10 |
related_searches | 6 | 8 | 4 | 8 |
result_stats | absent | About 96,000 results (0.38s) | absent | About 16,600,000 results (0.24s) |
knowledge_graph rows | 2 | 9, plus description | – | – |
discussions | – | – | absent | 6 threads |
inline_videos | 4 | absent | 3 | 3 |
short_videos | absent | 4 | – | – |
social_profiles | absent | 4 | – | – |
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_statsis 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.
locationtakes 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.
- Parameters and the full response: Google web search docs
- Try it in the browser: Google web search
- Credit packs: pricing