Google Search API guide

Get Google results programmatically.

Retrieve live Google results programmatically as JSON with location, language, device, SERP feature, and pagination controls.

From query to JSON

Send a POST request with your API key and query. PrismCrawl runs a live Google search and returns normalized rankings plus the SERP features that appeared. For the concise feature overview, see the Google Search product page.
request.py
import requests

response = requests.post(
    "https://api.prismcrawl.com/v1/google/search",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={"query": "coffee shops", "gl": "us", "hl": "en-US", "device": "mobile"},
    timeout=30,
)
response.raise_for_status()
content = response.json()["data"]["content"]
for result in content["results"]:
    print(result["rank"], result["title"], result["url"])

Control the result context

  • gl and Google domain for market context
  • hl and result-language controls
  • Named location or latitude/longitude plus radius
  • Desktop, tablet, or mobile device
  • Web, news, images, and supported search tabs
  • Safe search and native Google filters

Understand the response

Results

Ranked organic entries with title, URL, snippet, domain, source, and engine metadata.

SERP features

Typed feature entries such as snippets, related questions, news, images, shopping, local, and knowledge panels when present.

Pagination

Use has_next_page and the documented page controls to continue without guessing from HTML links.

Implementation paths

Follow the complete Google Search API Python guide or JavaScript and Node.js guide, test parameters in the SERP API playground, or inspect every schema in the API reference. For scraping tradeoffs, read how to scrape Google search results programmatically.

Make your first live search today.

Create an account, get 25 free credits, and test live Google or Bing results. No credit card or subscription required.