Google Search API
Google Search API for live results in your application.
Google Search API for live results as JSON, from $0.15 per 1,000 searches. Location and device targeting, pagination, and Python examples. 100 free credits.
Does Google have an official search API?
From query to JSON
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
SERP features
Pagination
Google search automation for SEO and applications
Rank tracking
AI agents and discovery
Cross-engine research
Replacing the Custom Search JSON API
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
Frequently asked questions
Does Google have an official search API?
Not for new projects. Google's Custom Search JSON API is closed to new customers, and existing customers have until January 1, 2027 to move to another solution. It also searched a Programmable Search Engine rather than returning the full Google results page. Google points site search users to Vertex AI Search, which covers up to 50 domains. To get live results from Google Search itself, use a third-party SERP API such as PrismCrawl.
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 there a free Google Search API?
There is no ongoing free option for full Google results. The Custom Search JSON API gave 100 free queries a day but is closed to new customers. PrismCrawl gives new accounts 100 free credits once, with no credit card, enough for 100 successful Google searches. The free credits do not renew; after that, credits are one-time purchases from $0.30 to $0.15 per 1,000 searches 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.