Google Search API
Send a search and get the first page of Google's results back as JSON: every result with its rank, title, link, domain, snippet and date, and the related searches Google suggests.
- 100 free credits
- No card needed
- No scraper to build or maintain
curl "https://pipefetch.com/v1/google/search?q=best+crm+software" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/google/search?q=best+crm+software', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/google/search",
params={"q": "best crm software"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]What you get
- The organic results of the first page, about 10, each with its position
- The title, link and domain of every result, and its breadcrumb as Google displays it
- The snippet, and the date Google shows with a result when it shows one
- The related searches Google suggests, each with its Google link
- The country and interface language of the search, and the address of the same search on Google
{
"data": {
"search": {
"query": "best crm software",
"correctedQuery": null,
"country": "US",
"language": "en",
"url": "https://www.google.com/search?q=best+crm+software&hl=en&gl=us"
},
"results": [
{
"position": 1,
"title": "Choosing The Best CRM Software In 2026 - Salesforce",
"url": "https://www.salesforce.com/crm/best-crm/",
"displayedUrl": "www.salesforce.com › crm › best-crm",
"domain": "salesforce.com",
"description": "Salesforce is consistently named the #1 CRM by IDC for providing world-class apps for every team and a unified platform that connects data, AI, and ap…",
"date": null,
"dateText": null
},
{
"position": 2,
"title": "The 11 best CRM software in 2026 - Zapier",
"url": "https://zapier.com/blog/best-crm-app/",
"displayedUrl": "zapier.com › App picks › Best apps",
"domain": "zapier.com",
"description": "Best CRM for versatility HubSpot (Web, iOS, Android) Zoho CRM (Web, iOS, Android) power to save some money. Predictive analytics: Pipedrive ( ...",
"date": "2026-06-22T00:00:00.000Z",
"dateText": "Jun 22, 2026"
}
],
"relatedSearches": [
{
"query": "top 10 crm software",
"url": "https://www.google.com/search?q=top+10+crm+software&hl=en&gl=us"
},
{
"query": "best crm software free",
"url": "https://www.google.com/search?q=best+crm+software+free&hl=en&gl=us"
}
]
},
"credits": {
"used": 1,
"remaining": 99
}
}One GET request
Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.
GET/v1/google/search
Costs 1 credit per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
qrequired |
string | The search, up to 200 characters. Google's operators work: site:, "an exact phrase", a minus before a word, OR, intitle:. |
countryoptional |
string | Two-letter code of the country whose Google results you want, such as US, GB or DE. Without it: the United States. |
langoptional |
string | Language of Google's interface and of the snippets, such as en, de or pt-BR. Without it: the main language of the country. |
Good to know
- One request is the first page of results: about 10 organic results, in Google's order. There are no further pages.
- The page read is the light results page Google serves to clients without JavaScript, not the full page a desktop browser gets. Its organic results and related searches are returned. Not included: ads, AI Overview, People also ask, the featured snippet, the places block, top stories, the knowledge panel, videos and images.
- date is the date Google shows with a result, when it shows one. A relative one, such as "5 days ago", is worked out from the time of the request. dateText is the date as Google shows it.
- Results are for a country, not for a city, and for a visitor who is not signed in. When Google answers for another spelling of the search than the one you sent, search.correctedQuery holds the search the results are for; otherwise it is null.
- Google sometimes refuses a search. The request then answers 502 upstream_error, costs nothing and can be sent again. A search with no results answers 404 no_results and costs nothing.
What people build with it
Rank tracking
Search for a keyword on a schedule and store where your pages and your competitors' pages stand on the first page.
Web search for AI agents
An agent gets current results for a question in one tool call, with links it can read and cite.
SEO and content research
See which pages and domains Google ranks for a topic, and which related searches it suggests.
Finding pages of one kind
Operators such as site: and intitle: narrow a search to one website or to pages with a word in their title.
Buy credits once. Use them whenever.
This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.
A request costs 1 credit. Requests that return nothing are free.
- $2.42 per 1,000 credits
- About $12.08 a month at this pace
- Lasts about 2.4 months at this pace
- Credits never expire
Questions and answers
Is this the official Google Search API?
No. Pipefetch is an independent service and is not affiliated with Google. It returns what Google shows for a search, read at the moment of your request.
Which part of the results page do I get?
The organic results of the first page and the related searches. The endpoint reads the light results page Google serves to clients without JavaScript, not the full page a desktop browser gets. Ads, AI Overview, People also ask, the featured snippet, the places and map block, top stories, the knowledge panel, videos and images are not included.
Can I get the second page, or more than 10 results?
No. One request is the first page, which has about 10 organic results. Further pages are not available.
Do Google's search operators work?
Yes. q goes to Google as you write it, so site:, quotes around an exact phrase, a minus before a word, OR and intitle: work as they do on Google.
Are the results the same as in my browser?
They are the results for the country and interface language you ask for (the United States when you leave the country out), for a visitor who is not signed in. A browser also uses the searcher's city and search history, and it gets Google's full page, so what you see there can differ.
What if Google refuses the search?
Google sometimes refuses automated searches for a while. The request then answers 502 upstream_error, costs nothing, and can be sent again. A search with no results answers 404 no_results and costs nothing either.
What does a request cost?
One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.
Step-by-step guides
How to get Google search results in Python
The official JSON API is closed to new customers and ends in 2027: what is left, what Google says about scripts, and an HTTP API with its limits.
Read the guideHow to give Claude or Cursor live web data (MCP server)
One config block gives your AI assistant a tool for every endpoint: profiles, posts, search results, transcripts and company websites.
Read the guideHow to get Google search results in Node.js
The official JSON API is closed to new customers and ends in 2027: what is left for Node.js, why the scraping packages on npm stopped, and an HTTP API.
Read the guideHow to get Google search results into Google Sheets
The Custom Search JSON API for existing customers until 2027, why IMPORTXML on Google is no route, and custom functions for results and positions.
Read the guideHow to give an LLM live Google results with tool calling
The providers' built-in search tools, and your own Google search tool with the complete tool-calling loop in Python, with what each costs.
Read the guideHow to build a LangChain tool that reads web pages and searches Google
Two @tool functions, one that reads a page as Markdown and one that searches Google, wired into create_agent, on free libraries or an API.
Read the guide
Free tools for the same data
cURL to Python converter
Paste a curl command and get the same request as Python code that uses Requests, with a note for any option it does not carry over. The command stays in your browser.
Open the toolcURL to JavaScript fetch converter
Paste a curl command and get the same request as JavaScript fetch code, with a note for anything fetch cannot do. The command stays in your browser.
Open the toolGoogle search snippet preview
Type a title, a URL and a meta description to see how a Google result might show them, with their length in characters and in pixels, measured in your browser.
Open the toolMeta title and description length checker
Paste a page's HTML source, or type its title and meta description, to check their length in characters and in pixels and see where a result might cut them.
Open the tool
More Google APIs
-
1 credit
Google Hotels API
Hotels for a place with Google's prices for your dates: nightly and total price, rating, star class, amenities and location.
GET /v1/google/hotels -
1 credit
Google News API
The articles Google News lists for a search: headline, publisher, publish time and Google News link, plus a coverage summary.
GET /v1/google/news -
1 credit
Google Trends API
Search interest in a term over time and by region on Google's 0 to 100 scale, with its top and rising related queries.
GET /v1/google/trends
Other sources
YouTubeInstagramWebsitesTikTokFacebookThreadsLinkedInApp storesSteamXPinterestAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tenders
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.