Google Search API

Google Search API for live results in your application.

Get live Google search results as JSON or source HTML, with location and device targeting, pagination, and Python and JavaScript examples. 100 free credits, no card required.

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 for interface language; lr for result-language restrictions
  • 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.

Google search automation for SEO and applications

Rank tracking

Monitor a keyword list with consistent location and device settings. The rank tracking API guide covers scheduling, domain matching, and historical storage.

AI agents and discovery

Give an agent current search results to identify sources. Use the agent integration tutorial for a bounded search workflow.

Cross-engine research

Compare Google observations with the Bing Search API using each engine’s documented controls. The SERP API hub covers shared capabilities.

Replacing the Custom Search JSON API

Google's Custom Search JSON API ends on January 1, 2027. The Custom Search migration guide maps its parameters and response fields to PrismCrawl.

Google Search API pricing and evaluation

One-time credit purchases start at $5, with no subscription. Rates range from $0.30 to $0.15 per 1,000 successful searches; the lowest rate requires a $1000 purchase. Credits are valid for 90 days. See the SERP API pricing breakdown for package sizes, rate limits, and usage examples.

Invoice payments are welcome for purchases of $100 or more. Visit Invoices to request an invoice.

Compare output, localization, latency, and purchase commitments in the best SERP APIs comparison. Use the calculator to budget searches across keywords, devices, and locations.

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.

Frequently asked questions

What does PrismCrawl’s Google Search API do?

Send a query to PrismCrawl and receive live Google search results as normalized JSON or encoded source HTML. It is a third-party SERP API; use the documented PrismCrawl endpoint and authentication.

Can I use it from Python or JavaScript?

Yes. Call the HTTP API with Python requests or server-side JavaScript fetch. Keep the API key on your server. The implementation guides cover authentication, response parsing, pagination, and errors.

How do location and language controls work?

Google requests support country, named location or coordinates, and device controls. hl sets interface language; lr restricts result-document languages. Save the same parameters for repeatable comparisons.

Are the results live, and are failures charged?

PrismCrawl runs live, uncached searches. Each successful search uses one credit; errors are free. Pagination requests are billed separately when successful.

Is the Google Search API free to try?

Yes. New accounts get 100 free credits with no credit card, enough for 100 successful Google searches. After that, credits are one-time purchases with no subscription.

Can I build a Google rank tracker?

Yes. Match target domains to returned organic positions, schedule searches in your application, and store comparable observations over time. SERP features should be tracked separately from organic ranks.

Make your first live search today.

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