Skip to content
Compare

A Google Custom Search JSON API alternative

Google has closed the Custom Search JSON API to new customers, and existing customers have until January 1, 2027 to move. CrawlerData serves a Custom Search-compatible endpoint, so most integrations migrate by changing the base URL and the key.

Last checked against Custom Search JSON API's public pages. Sources

The short version

How they differ

Google's overview page says: "The Custom Search JSON API is closed to new customers." Existing customers "have until January 1, 2027 to transition to an alternative solution."

Google recommends Vertex AI Search as an alternative for searching up to 50 domains, and asks teams that need full web search to contact Google. Vertex AI Search searches the sites you configure, so it is not a drop-in replacement if your code relies on public Google web results.

CrawlerData's Google Search API returns public Google results in any of 64 countries: organic results with title, link and snippet, as the Custom Search JSON API did, plus AI Overview, People Also Ask, ads, the local pack and more. It costs $1.00 to $0.30 per 1,000 requests, with no daily cap.

For a quick move there is a Custom Search-compatible endpoint, GET /customsearch/v1: the same query parameters and JSON layout, so the migration is a new base URL and key. cx is accepted and ignored, searchType=image is not supported there, and a live search needs a longer client timeout (see the notes below).

At a glance

Google Custom Search API alternative, as of October 13, 2026
CrawlerDataCustom Search JSON API
Pricing modelPrepaid credit packs, no subscription. Credits valid 6 monthsClosed to new customers. Existing customers: pay per query until January 1, 2027
Cost per 1,000 at entry$1.00 per 1,000 requests (Starter, $50 for 50k credits)Free for 100 queries a day, then $5 per 1,000
Cost per 1,000 at volume$0.30 per 1,000 requests (Ultimate, $3,750 for 12.5M credits)$5 per 1,000, up to 10,000 queries a day
Free tier50 free credits with a verified work email, valid 30 days100 queries a day (existing customers only)
Google Shopping sellersYes. Every seller for a product in one request, 1 credit per 10 sellers returned (rounded up, minimum 1)Not offered. Web results, or images with searchType=image
Async and webhooksLive (synchronous), plus Fast and Regular queues with polling or a webhook (postbackUrl). Same price on every queueSynchronous GET request. Webhooks: not published
MCP serverYes. Remote server at api.crawlerdata.com/mcp, 9 tools, same API keyNot published
Failed requestsNot charged. A failed job costs 0 creditsNot published
Rate limit100 requests per minute and 20 per second per API keyUp to 10,000 queries a day
Results per requestOne Google results page per request, pages 1 to 101 to 10 (num); start + num cannot exceed 100
What it searchesPublic Google results for the country you chooseA Programmable Search Engine you configure (cx)
AvailabilityOpen to new customersClosed to new customers; ends January 1, 2027

List prices in USD, excluding tax, as published on October 13, 2026. "Not published" means we could not find it on Custom Search JSON API's public pages. Per-1,000 figures marked "our arithmetic" divide a plan price by its volume.

Where CrawlerData fits best

Choose CrawlerData if…

  • You need public Google web results after January 1, 2027, or you are a new customer and cannot sign up for the JSON API.
  • You need more than 10,000 queries a day, or SERP features the JSON API never returned: AI Overview, People Also Ask, ads, local pack, top stories and the knowledge panel.
  • You need Google Shopping, News, Images, Local or Autocomplete from the same key, at 1 credit per request ($1.00 to $0.30 per 1,000).
  • You want the shortest migration: change the base URL and the key, and keep your parsing of items[].
Migration

Moving from Custom Search JSON API

Most integrations move by changing the base URL and the key: GET https://api.crawlerdata.com/customsearch/v1 takes the Custom Search query parameters and returns the same JSON layout, with your CrawlerData API key in key=. The native API, shown below the notes, is there when you also want AI Overview, ads or the local pack.

Custom Search JSON APICrawlerData
https://www.googleapis.com/customsearch/v1https://api.crawlerdata.com/customsearch/v1
key= (your Google API key)key= (your CrawlerData API key), or an Authorization: Bearer header
cxAccepted and ignored: results are public Google results
safe, fields, other parametersAccepted and ignored: full items are returned and safe is always off
q, num (1 to 10), start (1 to 100)Same parameters
gl, hl, cr, lrApplied (one of 100 countries, one language)
siteSearch, siteSearchFilterApplied as a site: or -site: operator in the query
searchType=imageReturns 400. Use GET /search.json?engine=google_images or the google-images endpoint
items[].title / link / snippet / displayLinkSame names
items[].htmlTitle / htmlSnippetThe same text, escaped, without bold markup
items[].pagemap, cacheIdNot returned
error { code, message, errors, status }Same format (an invalid key returns 401)
Before: Custom Search JSON API (JavaScript)
const url = new URL('https://www.googleapis.com/customsearch/v1');
url.search = new URLSearchParams({ key: API_KEY, cx: SEARCH_ENGINE_ID, q: 'best crm software', gl: 'us', hl: 'en' });
const data = await (await fetch(url)).json();
const results = (data.items ?? []).map((i) => ({ title: i.title, url: i.link, snippet: i.snippet }));
After: CrawlerData, same call (JavaScript)
const url = new URL('https://api.crawlerdata.com/customsearch/v1'); // was https://www.googleapis.com/customsearch/v1
url.search = new URLSearchParams({ key: CRAWLERDATA_API_KEY, cx: SEARCH_ENGINE_ID, q: 'best crm software', gl: 'us', hl: 'en' });
const data = await (await fetch(url, { signal: AbortSignal.timeout(120_000) })).json();
const results = (data.items ?? []).map((i) => ({ title: i.title, url: i.link, snippet: i.snippet }));
  • Each request is one live Google search and costs 1 credit; a failed search is not charged. A live search takes seconds and can take much longer (one of our test searches took 43 seconds), so set a client timeout of 60 seconds or more and cache results where you can.
  • Each request returns one page of Google results, so start 1 to 100 maps to pages 1 to 10, and a start and num that cross a page boundary return only the part on that page.
  • Only fields we have are returned: pagemap and cacheId are left out, and htmlTitle and htmlSnippet carry plain, escaped text.
  • link is the real destination URL, so stored URLs and deduplication keep working. Results are Google's public results for the query, as a searcher in the country you choose sees them.

Migration checklist before January 1, 2027

Google's overview page gives existing customers until January 1, 2027 to move. A migration is small if you do it in this order.

  1. Search your code and config for customsearch/v1, googleapis.com/customsearch and the Programmable Search Engine id (cx).
  2. Decide what each call searches. If it searches your own sites, Google suggests Vertex AI Search (up to 50 domains). If it searches the whole web, you need a SERP API.
  3. For web search, point the call at GET https://api.crawlerdata.com/customsearch/v1 and put a CrawlerData API key in key=. Keep your parsing of items[].
  4. Run 20 to 50 of your real queries through both and compare the title, link and snippet fields. Results come from public Google for the country you choose, so they can differ from a Programmable Search Engine scoped to your own sites.
  5. Raise the client timeout to 60 seconds or more, cache results where you can, and ship before the date.

The same call in Python

The compatible endpoint is a plain GET request, so any HTTP client works. Google's client library builds its URLs from Google's own API description, so call the CrawlerData endpoint directly instead.

CrawlerData customsearch/v1 (Python)
import requests

r = requests.get(
    "https://api.crawlerdata.com/customsearch/v1",  # was https://www.googleapis.com/customsearch/v1
    params={"key": CRAWLERDATA_API_KEY, "cx": "ignored", "q": "best crm software", "gl": "us", "hl": "en"},
    timeout=120,
)
for item in r.json().get("items", []):
    print(item["title"], item["link"], item["snippet"])

Or use the native API

The native Google Search API returns the whole results page: AI Overview, People Also Ask, ads, the local pack and more. The fields you used carry over under new names, and batches can run on the fast or regular queue with a webhook at the same price as live requests.

  1. Send POST https://api.crawlerdata.com/v1/jobs with Authorization: Bearer YOUR_API_KEY and a JSON body.
  2. Map q to params.query, gl to params.country, hl to params.language, and start (1, 11, 21 … 91) to params.page (1 to 10).
  3. Read result.organic_results[] instead of items[]: title, link and snippet keep their names, displayLink becomes displayed_link, and searchInformation.totalResults becomes search_information.total_results.
CrawlerData (JavaScript)
const res = await fetch('https://api.crawlerdata.com/v1/jobs', {
  method: 'POST',
  headers: { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
  body: JSON.stringify({ endpoint: 'google-search', params: { query: 'best crm software', country: 'us', language: 'en' }, queue: 'live' }),
});
const { job, result } = await res.json(); // job.status "failed" => result is null, 0 credits
const results = (result?.organic_results ?? []).map((r) => ({ title: r.title, url: r.link, snippet: r.snippet }));

Open WebUI: web search with Google results

Open WebUI can use an external web search provider. CrawlerData serves one at POST https://api.crawlerdata.com/v1/openwebui/search: Open WebUI sends { "query", "count" } with your key as a Bearer token and receives [{ link, title, snippet }]. It always searches Google's US results in English on desktop, count is capped at 10 (5 if Open WebUI sends none), and each search costs 1 credit.

  1. Create a CrawlerData API key at app.crawlerdata.com.
  2. In Open WebUI open Admin Panel, Settings, Web Search. Turn Web Search on and choose the search engine external.
  3. Set External Web Search URL to https://api.crawlerdata.com/v1/openwebui/search and External Web Search API Key to your CrawlerData key. Save.
  4. Or set it with environment variables: ENABLE_WEB_SEARCH=true, WEB_SEARCH_ENGINE=external, EXTERNAL_WEB_SEARCH_URL=https://api.crawlerdata.com/v1/openwebui/search and EXTERNAL_WEB_SEARCH_API_KEY set to your key.
  5. Ask a model a question with web search turned on. If a search fails, Open WebUI shows no results for it, so check your key and credit balance first.

Full request and response schemas are in the OpenAPI spec, with runnable code in the examples repo. AI clients can connect to the MCP server at https://api.crawlerdata.com/mcp with the same API key.

FAQ

Questions

What is the Google Custom Search JSON API?

A Google API that returned web or image search results as JSON for a Programmable Search Engine you configure (cx), called with an API key. It gave 100 free queries a day and charged $5 per 1,000 after that. Google now lists it as closed to new customers, and existing customers have until January 1, 2027 to transition.

What should I do before January 1, 2027?

Find every call to customsearch/v1 in your code, decide whether you search your own sites (Google suggests Vertex AI Search for up to 50 domains) or the whole web (use a SERP API), map the fields, compare outputs on 20 to 50 real queries, and ship before the date. Our Custom Search migration guide on the blog walks through each step.

Is the Google Custom Search JSON API shutting down?

Google's overview page says the API is closed to new customers and that existing customers have until January 1, 2027 to transition to an alternative solution.

Do I need a Programmable Search Engine id (cx) for CrawlerData?

No. The compatible endpoint accepts cx and ignores it, so you can leave existing code as it is. CrawlerData returns public Google results for the country you choose rather than results from a search engine you configure, so a Programmable Search Engine that was limited to your own sites will not give the same results.

Can I keep using Google's Python or Node client library?

Not against CrawlerData. Google's client libraries build their requests from Google's own API description. Call GET https://api.crawlerdata.com/customsearch/v1 with requests, fetch or any HTTP client instead; the parameters and the items[] layout are the same.

How much code changes when I switch to CrawlerData?

With the Custom Search-compatible endpoint, usually only the base URL (https://api.crawlerdata.com/customsearch/v1) and the key: cx is accepted and ignored, and items[] keeps its layout and field names. With the native API, the request and one line of parsing change: items[] becomes result.organic_results[], and start becomes a page number from 1 to 10.

Sources

All checked on (as of Oct 2026). Spotted something out of date? Email contact@crawlerdata.com and we will correct it.

APIs to look at

Related solutions

Further reading

Other comparisons

Try it on your own queries

Get 50 free credits when you sign up with your work email and verify it. Failed requests are never charged.

Get 50 free credits