Short answer: send a Google search link as url to /google/search and you get that search back as JSON. The query, country, language, page and filters are read from the link, so you do not have to take it apart yourself.
This is for the cases where a search already exists as a link: a URL a client pasted into a ticket, a column of saved searches in a spreadsheet, a rank tracker that stores Google URLs.
The request
curl -X POST 'https://api.serpbase.dev/google/search' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"url":"https://www.google.com/search?q=fryzjer&gl=PL&hl=pl&filter=0"}'
What comes back
We ran three links on 27 November 2026.
A Polish search. The link above returned "query": "fryzjer", nine organic results, four local_results with Polish labels (category Salon fryzjerski, hours Otwarcie: 09:00) and eight related searches. The search_url in the answer showed hl=pl, gl=PL and filter=0, as in the link.
A UK link with a time filter and a second page.
https://www.google.co.uk/search?q=electric+cars&gl=uk&hl=en&tbs=qdr:w&start=10&sourceid=chrome&oq=electric
returned "query": "electric cars", "page": 2 and nine organic results. start=10 became page 2, tbs=qdr:w (past week) was kept, and the browser's own sourceid and oq were ignored. A country domain such as google.co.uk is accepted.
An image-search link. https://www.google.com/search?q=cats&tbm=isch was refused:
{"status": 1000, "error": "url parameter tbm is not supported", "credits_charged": 0}
That is deliberate. A parameter that would change what you get is named in the error and the request is not charged; it is not silently dropped.
The parameters read from a link, per the docs: q, gl, hl, start, uule, tbs, filter, nfpr, pws, complete and ie.
Python: run a list of saved Google links
import time, requests
LINKS = [
"https://www.google.com/search?q=fryzjer&gl=PL&hl=pl&filter=0",
"https://www.google.co.uk/search?q=electric+cars&gl=uk&hl=en&tbs=qdr:w&start=10",
]
for link in LINKS:
r = requests.post(
"https://api.serpbase.dev/google/search",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"url": link},
timeout=60,
).json()
if r["status"] != 0:
print("skipped:", r.get("error"), "|", link)
continue
print(r["query"], "| page", r["page"], "|", len(r.get("organic", [])), "organic")
time.sleep(1)
Things that trip people up
- Send
urlon its own. Do not addq,gl,hl,pageorlocationnext to it; they come from the link.device,formatandtimeoutcan go alongside. - Tab links are refused. Images, News, Videos and Shopping links carry
tbmor similar. Use the endpoint for that tab with the keyword. - A link has no device. The same URL is answered with the mobile page unless you add
"device":"desktop". - Read
queryandpagefrom the answer and store them. They tell you what was actually run, which is what you want in a report. search_urlis the address that answered, after Google's redirects. Compare it with your link when a result looks off.- Encode the link once. Send it as you would paste it into a browser; do not URL-encode the whole string again inside the JSON.
Related reading
For the time filter in that second link see Google search date filter. For choosing a country and language without a link see localized Google results.
Cost and limits
Each search costs 1 credit; failed requests are not charged. The response is always HTTP 200 with a status field: 0 means success, anything else comes with an error string. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.
- Parameters and the full response: Google web search docs
- Try it in the browser: Google web search
- Credit packs: pricing