Data APIs
HTTP API

Google SERP with JavaScript

The results page as HTML after JavaScript, including an expanded AI Overview.

Google SERP with JavaScript

POST /api/serp-js/v1/serp uses the shared batch. The ZIP holds the rendered results page as HTML.

What this product does with each item

  • url is fetched exactly as you sent it. Query parameters are not added, dropped, reordered, or re-encoded.
  • search is the only field that builds q, hl, gl, and pws=0.
  • country is any 2-letter code. It selects the exit used for that item.
  • device desktop renders in a desktop browser. device mobile renders in iOS WebKit (iPhone), not Android.
  • Before the HTML is saved, the worker clicks AI Overview “Show more” when that block is present and waits until the extra content has loaded.

ZIP entries

A successful index is {index}.html. Unzip it and you have the rendered page. The ZIP compresses that file. A failed index has no file. manifest.json lists every index with code and filename (null when there is no HTML).

curl -sS -X POST "https://lexis-solutions-apis.com/api/serp-js/v1/serp" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "batch": [
      {
        "url": "https://www.google.com/search?q=a%2Bb&hl=de&gl=de",
        "country": "DE",
        "device": "desktop"
      }
    ]
  }'

Poll GET /api/serp-js/v1/serp/:jobId, then download with GET /api/results/:jobId. GET /api/serp-js/v1/health is the unauthenticated liveness probe.

On this page