SerpBase
Back to Blog

Google Search API Pagination: Get Page 2, 3 and Beyond as JSON

Use the page parameter to walk Google's results pages one request at a time. We ran three pages of one keyword and list the counts, the duplicates and a script that merges them.

November 28, 2026
By SerpBase Team3 min read

Short answer: add "page": 2 to a /google/search request to get the second results page, "page": 3 for the third, and so on. Pages are numbered from 1. Each page is its own request and costs 1 credit.

Google no longer returns 100 results in one page, so anything beyond the first ten means walking the pages one at a time.

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 running shoes","gl":"us","hl":"en","page":2}'

What comes back

We ran best running shoes for pages 1, 2 and 3 on 28 November 2026.

PageOrganic resultsOther modules in the answersearch_url ends with
18AI overview, People Also Ask, local results, shopping results, videos, images, related searches(no start)
29images, related searches, people also search forstart=10
39images, related searches, people also search forstart=20

Each answer carries page (the number you asked for) and search_url, the Google address that was read. That is the easy way to confirm which page you got.

A second run of the same three pages a few minutes later gave 7, 9 and 9 organic results. Counts per page are not fixed.

Python: collect the first three pages

import time, requests

API = "https://api.serpbase.dev"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}

def post(path, body):
    return requests.post(API + path, headers=HEADERS, json=body, timeout=60).json()

def real_links(organic):
    """Swap Google wrapper links for the real page addresses (free call)."""
    wrapped = [o["link"] for o in organic if "google.com/goto" in o["link"]]
    if not wrapped:
        return {}
    time.sleep(1)
    fixed = post("/google/resolve", {"links": wrapped})
    return {x["link"]: x["url"] for x in fixed.get("resolved_links", [])
            if x.get("reason") == "resolved"}

seen, rows = set(), []
for page in (1, 2, 3):
    r = post("/google/search", {"q": "best running shoes", "gl": "us", "hl": "en", "page": page})
    if r["status"] != 0:
        print("page", page, "failed:", r.get("error"))
        break
    organic = r.get("organic", [])
    if not organic:
        break
    real = real_links(organic)
    for o in organic:
        link = real.get(o["link"], o["link"])
        if link in seen:
            continue
        seen.add(link)
        rows.append((len(rows) + 1, page, link))
    time.sleep(1)

for n, page, link in rows:
    print(n, "page", page, link)

Our run of this script printed 24 unique links from 25 organic results: one page-3 result had already appeared on an earlier page.

Things that trip people up

  • rank starts again at 1 on every page. It is the place within that page's organic list. For a position across pages, count as you go, as the script does.
  • The same page can show up twice. In our first run one YouTube video was result 2 on page 2 and result 1 on page 3. Deduplicate by link.
  • Later pages are mostly plain results. The AI overview, People Also Ask and the local pack were on page 1 only.
  • Lower results may carry a Google wrapper link. In the script run, 16 of 25 organic links were google.com/goto wrappers; the free link resolver returned the real address for 12 of them, and the script keeps the wrapper for the rest. Check reason and send the leftovers again later.
  • Stop when a page has no organic results. That is the end of what Google has for the query. Do not keep asking for page 30.
  • Page 1 plus a keyword change is not pagination. Keep q, gl, hl and device identical across the pages of one walk, or the pages will not line up.

Related

Combine paging with a date filter or a city-level location; both are plain parameters on the same request.

Cost and limits

Every page is one request and 1 credit, so the first three pages of a keyword cost 3 credits. The link resolver is free. Failed requests are not charged. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.