Short answer: point your existing SerpApi code at https://api.serpbase.dev/google/serpapi/search.json and keep the rest. The endpoint takes the same engine names and query parameters over GET and answers with SerpApi's field names: search_metadata, organic_results, related_questions and so on.
It exists so that moving an integration is a base-URL change, not a rewrite of every parser.
The request
curl 'https://api.serpbase.dev/google/serpapi/search.json?engine=google&q=coffee&gl=us&hl=en' \
-H 'X-API-Key: YOUR_API_KEY'
We sent the key in the X-API-Key header. The docs say this endpoint also reads api_key from the query string, the way SerpApi clients send it; the header keeps the key out of logs.
What comes back
We ran these on 28 November 2026.
engine=google, q=coffee. The answer had these top-level keys: search_metadata, search_parameters, search_information, organic_results (6), related_questions (4), related_searches (4), knowledge_graph, local_results (3 places), inline_images (7), inline_videos (3), pagination and serpapi_pagination.
{
"search_metadata": {
"id": "r-564022399d1b3286f3a9adcd",
"status": "Success",
"created_at": "2026-11-28 02:11:46 UTC",
"processed_at": "2026-11-28 02:11:50 UTC",
"google_url": "https://www.google.com/search?q=coffee&oq=coffee&hl=en&gl=us&sourceid=chrome&ie=UTF-8"
},
"search_parameters": {
"engine": "google", "q": "coffee", "gl": "us", "hl": "en",
"google_domain": "google.com"
},
"organic_results": [
{
"position": 1,
"title": "Coffee",
"link": "https://en.wikipedia.org/wiki/Coffee",
"displayed_link": "https://en.wikipedia.org",
"snippet": "Coffee is a beverage brewed from roasted, ground coffee beans. ..."
}
]
}
engine=google_images, q=coffee. images_results had 100 entries, each with position, title, link, original, thumbnail and source.
engine=yandex. HTTP 400 with {"error": "Unsupported yandex search engine. This endpoint serves engine=google, ..."} followed by the list of engines it does serve.
Python: the one-line change
import requests
# before: BASE = "https://serpapi.com/search.json"
BASE = "https://api.serpbase.dev/google/serpapi/search.json"
res = requests.get(
BASE,
headers={"X-API-Key": "YOUR_API_KEY"},
params={"engine": "google", "q": "coffee", "gl": "us", "hl": "en"},
timeout=60,
)
data = res.json()
if res.status_code != 200:
print("refused:", data.get("error"))
elif data["search_metadata"]["status"] != "Success":
print("search failed")
else:
for item in data.get("organic_results", []):
print(item["position"], item["title"], item["link"])
Things that trip people up
- Errors follow SerpApi here, not the rest of the API. A refused request gets a real HTTP 400, 401 or 429 with an
errorstring. On the standard endpoints everything is HTTP 200 with astatusnumber. Do not mix the two checks. - No
devicemeans phone results. The docs call this out as a difference: a search that sets no device gets the mobile page. Senddevice=desktopif your code expects the desktop layout. - A field that is not on the page is left out. Read with
.get(). Ourcoffeeanswer had noanswer_boxkey, for example, because the page had none. - Not every engine is served. The docs list 25, covering Google web, images, news, videos, shopping, jobs, maps, trends, Play, YouTube, Amazon, Walmart, DuckDuckGo and the App Store. Anything else is refused with 400, as
yandexwas. - Each engine costs what its own endpoint costs.
engine=googleis 1 credit; some others are 2 or 3. The table is in the docs. no_cache,asyncandjson_restrictorare accepted and do nothing. The account, archive and async APIs are not served.
Should you stay on this endpoint?
It is the fastest way to switch, and each engine costs the same as its standard endpoint. For new code, the standard endpoints (POST /google/search and the others) are the better target: one error format across every product, and features such as Markdown output are documented there. Existing code can stay where it is. If you are still comparing providers, start with what to compare before switching.
Cost and limits
Failed searches are not charged. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.
- Engine list, parameters and differences: SerpApi-compatible endpoint docs
- Getting a key: API keys
- Credit packs: pricing