Is There an Official Google Search API? Every Option in 2026
Michael Carter · · 12 min read

Key takeaways
- As of November 17, 2026, no official Google API for whole-web results has a public sign-up: the Custom Search JSON API is closed to new customers and ends January 1, 2027, and full web search is offered only through a contact form.
- Google documented a partner-only Web Search Service API for full-web results in September 2026, then removed the pages; they still answered 404 on November 17, 2026.
- Vertex AI Search, now being renamed Agent Search, searches your own sites and data at $4 per 1,000 queries with website search, and the Search Console API reports only your verified sites' clicks, impressions and average position.
- Gemini grounding with Google Search returns a model answer with cited URLs and Search Suggestions, not a result list; on Gemini 3 and newer it costs $14 per 1,000 searches after 5,000 free a month, and its terms forbid using it to build an index.
- YouTube's search.list now has its own default quota of 100 calls a day (docs updated November 12, 2026), and Places API Text Search Pro costs $32 per 1,000 requests after 5,000 free a month.
As of November 2026, there is no official Google search API you can sign up for. Google's Custom Search JSON API is closed to new customers and ends January 1, 2027, and whole-web access is by contact form. Google's other search APIs return your own site's data, entities, places, videos or AI answers, not results pages.
This map is for developers and SEO teams who went looking for a Google API and found nine that sound right: what each returns, who it is for, what it costs and its status, from Google's own documentation as of November 17, 2026. If you are moving off Custom Search now, our Custom Search JSON API migration guide has the mapping and code.
Is there an official Google search API?
Not for Google's web results, if you mean an API that returns what google.com shows for any query and that you can sign up for today. Three facts settle it:
- The Custom Search JSON API is closed. Google's Custom Search JSON API overview says it "is closed to new customers" and that existing customers "have until January 1, 2027 to transition to an alternative solution."
- Whole-web search is by request. The same page asks anyone whose "use case necessitates full web search" to contact Google through a form. No price, quota or terms are published.
- A partner API appeared, then vanished. In September 2026, Search Engine Journal reported Google docs for a "Web Search Service" API offering full-web search to "programmatic partners" under a partner agreement. By late September the pages were removed without a note; they still answered 404 on November 17, 2026.
Everything else Google offers answers a narrower question: search over your own sites, your own site's performance, one Google database, or an AI answer. That leaves third-party SERP APIs, which our comparison of the best SERP API options ranks on price and coverage.
Google's own page one for "official google search api" shows the confusion: its closing Custom Search page and the Search Console API rank next to third-party SERP APIs (output below).
Every Google API that returns search-like data
Nine Google products come up when people look for a Google search API. Here they are as of November 17, 2026:

| API | What it returns | Who it is for | Cost | Status |
|---|---|---|---|---|
| Custom Search JSON API | Up to 10 web results per call, 100 per query | Existing customers | 100 queries a day free, then $5 per 1,000 | Closed to new customers; ends January 1, 2027 |
| Full web search offer | Whole-web results, per Google; no public docs | Not stated | Not published | Contact form only |
| Programmable Search Element | A search box and results on your site | Site owners, up to 50 domains | Free | Open; "Search the entire web" ends January 1, 2027 |
| Vertex AI Search (Agent Search) | Results and AI answers over your sites and data | Businesses searching their own content | $4 per 1,000 queries with website search; 10,000 free a month | Open; being renamed |
| Search Console API | Clicks, impressions, CTR and average position for your site | Owners of verified sites | No price listed; quotas | Open |
| Knowledge Graph Search API | Matching entities as JSON-LD | Entity lookup, autocomplete | No price listed | Open; "not suitable for use as a production-critical service" |
| Places API (New) | Places for a text query or location | Map and local apps | Per request; Text Search Pro: 5,000 free a month, then $32 per 1,000 | Open |
| YouTube Data API | Videos, channels and playlists | Apps built on YouTube | Quota: 100 searches a day by default | Open |
| Gemini API grounding with Google Search | A model answer with cited URLs and Search Suggestions | AI apps that show answers to users | Gemini 3 and newer: 5,000 searches a month free, then $14 per 1,000 | Open; strict display terms |
Only the first two rows return Google results for the whole web, and neither has a public sign-up.
Custom Search JSON API: closed to new customers
The Custom Search JSON API returns results from a Programmable Search Engine, which could be set to "Search the entire web". That made it the nearest thing to an official Google search API, and it is the part Google is shutting down.
- Existing customers keep paying the published rate "until the service discontinuation on January 1, 2027": 100 queries a day free, then $5 per 1,000, up to 10,000 a day.
- Its sibling is already gone. The Site Restricted JSON API, for engines of 10 or fewer sites, gives January 8, 2025 as the date its endpoints stopped serving traffic.
- The embedded search box stays. Google's January 20, 2026 announcement calls the Search Element's "Sites to search" a "free feature" for up to 50 domains; engines set to "Search the entire web" must move by January 1, 2027.
The timeline, a field-by-field mapping and tested replacement code are in how to migrate off the Custom Search JSON API.
Vertex AI Search: your sites, not the web
Vertex AI Search is Google Cloud's managed search over content you choose: websites you add to a data store, or your own documents and structured data. Google's documentation now says "Vertex AI Search is being renamed to Agent Search," and the Agent Search pricing page already uses the new name.
- What it returns: results from your data stores, plus generated answers if you turn them on. It does not search Google's whole index.
- Website search is part of Search Enterprise Edition at $4.00 per 1,000 queries. Standard Edition, at $1.50 per 1,000, has no website search. Advanced website indexing requires domain verification and costs extra.
- Free trial: 10,000 queries per account per month.
- Many names, one API. The Agent Search overview lists Agent Builder and Enterprise Search among its former names, and the product runs on the Discovery Engine API.
Choose it when users search your own content, not for rankings, competitors or the open web.
Search Console API: your rankings, not the SERP
The Search Console API returns Google Search data about sites you have verified: how often your pages appeared, were clicked and where they ranked on average. It never returns a results page and says nothing about sites you do not own.
Its main method, searchanalytics.query, returns up to 25,000 rows per request, grouped by query, page, country, device, date, hour or search appearance, each with clicks, impressions, CTR and average position. Google lists no price; quotas cap usage, for example at 1,200 queries a minute per site.
Here is the Search Console API vs a search API, side by side:
| Search Console API | SERP API | |
|---|---|---|
| Whose data | Only sites you have verified | Any query, any site |
| One row is | Your clicks, impressions, CTR, average position | One result: position, title, link, snippet |
| Position means | Your site's topmost position, averaged | The exact position on one page at one time |
| Competitors | Not visible | On every results page |
| Country | A filter on your own traffic | The market the search runs in |
Why Search Console's average position differs from tracked positions explains the gap, and our keyword rank tracking guide shows how teams use the two together.
Knowledge Graph, Places and YouTube: entities, places and videos
These three APIs each search one Google database. All are open, and none returns the web results page.
Knowledge Graph Search API
It "lets you find entities in the Google Knowledge Graph" and answers with matching entities as JSON-LD, using schema.org types and a relevance score. Google's Knowledge Graph Search API page carries two warnings: "This API is not suitable for use as a production-critical service," and it "returns only individual matching entities, rather than graphs of interconnected entities." New users are sent to Cloud Enterprise Knowledge Graph; no price is listed.
Places API (New)
Text Search (New) and Nearby Search (New) find places for a text query or a location. Billing is per request, by SKU, with a monthly free cap: Text Search Pro is free for the first 5,000 requests a month, then $32 per 1,000, according to Google Maps Platform pricing (updated November 11, 2026). Every SKU and the cheaper routes are in our Google Places API pricing guide. For the Places tab of Google Search instead, see BestSERP's Places endpoint.
YouTube Data API
The search.list method finds videos, channels and playlists that match a query, up to 50 per call. Its quota changed recently: Google's YouTube quota page, updated November 12, 2026, gives search.list its own bucket of 100 calls a day at 1 unit each, separate from the 10,000 daily units for other methods. More quota requires an audit. Our YouTube Data API quota guide covers limits and workarounds; for the videos Google Search itself shows, see the Google Videos API page.
Gemini grounding with Google Search: answers, not result lists
Grounding with Google Search is a tool for Gemini models, not a search endpoint. You send a prompt with the google_search tool turned on; the model decides whether to search, runs one or more Google searches, and writes its own answer with citations. Google's grounding documentation lists what comes back:
google_search_call: the search queries the model ran.google_search_result:search_suggestions, "an HTML snippet for rendering search suggestions in your UI."- The answer text, with
url_citationannotations: a URL, a title (in Google's example, the site's domain) and the part of the answer each source supports.
The documented response has no ranked list of results with positions and snippets: you get the model's answer and the sources it chose to cite.
The usage terms are strict. Google's Gemini API Additional Terms, effective March 23, 2026, say:
"You will only use Grounding with Google Search in an application that is owned and operated by you and will only display the Grounded Results with the associated Search Suggestion(s) to the end user who submitted the prompt."
They also forbid you to "cache, frame, syndicate, resell, analyze, train on, or otherwise learn from Grounded Results or Search Suggestions," name "using Links to build an index" as a violation, and bar you from modifying the results or suggestions or mixing other content into them. Answer text may be stored only in narrow cases, such as a user's chat history, for up to two years.
On Gemini 3 and newer models you pay for each search the model runs: 5,000 free a month, then $14 per 1,000, with a default cap of 1,500 requests a day per project. On Gemini 2.5 models you pay per grounded prompt: 1,500 a day free, then $35 per 1,000. We did not call the Gemini API; these facts come from Google's pages on November 17, 2026.
Grounding fits a chat assistant that shows answers to the person who asked, not rank tracking or pipelines that store results; our guide to web search for AI agents covers agents that need raw results.
When an unofficial SERP API is the only option
When you need Google's results page itself, for any keyword and country, stored and reused, no official Google search API is open to you. The remaining route is a third-party SERP API: a provider loads Google results and returns them as JSON (what a SERP API is, in detail). Unofficial means Google neither provides nor endorses it.
Here is the search behind this guide, run through BestSERP, the Google SERP API we operate (not affiliated with Google), tested November 17, 2026 with Python 3.12.10 and requests 2.34.2:
import os
import time
import requests
API = "https://api.bestserp.com"
HEADERS = {"X-API-KEY": os.environ["BESTSERP_API_KEY"]}
def search(body, tries=3):
"""POST /search; poll 202, wait out 429, retry 502/503 (failed searches are refunded)."""
for attempt in range(tries):
r = requests.post(f"{API}/search", headers=HEADERS, json=body, timeout=130)
while r.status_code == 202: # still running: polling is free
time.sleep(2)
r = requests.get(f"{API}/requests/{r.json()['requestId']}", headers=HEADERS, timeout=130)
if r.status_code in (429, 502, 503) and attempt < tries - 1:
time.sleep(int(r.headers.get("Retry-After", 5)))
continue
r.raise_for_status()
return r.json()
data = search({"q": "official google search api", "gl": "us", "hl": "en"})
for item in data["organic"]:
print(item["position"], item.get("domain") or f"({item.get('source')})", "|", item["title"][:60])
print("credits:", data["credits"], "| cached:", data["cached"], "| took:", data["durationMs"], "ms")
Our output (US, English):
1 developers.google.com | Custom Search JSON API | Google for Developers
2 searchapi.io | Google Search API for real-time SERP scraping
3 (Reddit · r/googlecloud) | Google Custom Search API is closing. Need affordable ...
4 serpapi.com | SerpApi: Google Search API
5 (Medium · Darshan Khandelwal) | All You Need to Know About the Official Google Search API ..
6 console.cloud.google.com | Google Search Console API – APIs & Services
7 support.google.com | How do I get web search results using an api?
8 programmablesearchengine.google.com | Programmable Search Engine by Google
9 github.com | Google Search API - luminati-io
credits: 1 | cached: False | took: 3871 ms
Four of the nine results are Google's own pages, and none of them is a web search API open to new customers. Seven minutes earlier, the same search had put the Search Console API at position 2: results move, so store each response with the time you fetched it.
Know the limits before you build. BestSERP returns desktop results by country (gl) and language (hl), with no city targeting. Web search covers organic results, video carousels and Top stories, and separate endpoints cover images, news, videos, shopping, places and maps. It does not return ads, featured snippets, People Also Ask, knowledge panels or AI Overviews. It costs $0.50 per 1,000 searches after 3,000 free ones (valid 30 days), and failed searches are refunded; see current pricing.
How we checked
On November 17, 2026 we opened every Google page cited here and recorded what it says, with its "last updated" date where it shows one. The Web Search Service pages answered 404, so that part rests on the two news reports linked above. We did not call any Google API: Custom Search is closed to new customers, and we set up no Google Cloud keys for the others. On BestSERP we ran 5 searches (gl=us, hl=en): 4 for keyword research and 1 for the example above.
Next steps
- Leaving Custom Search before January 1, 2027: the Custom Search migration checklist and code.
- Comparing third-party providers: SERP APIs compared on price, coverage and reliability.
- Trying one now: the Google Search API page and the quickstart.