Skip to content

New AI assistant answers: ChatGPT, Gemini, Copilot and AI Mode by API

SerpKite
Get API key

engine=auto

Search API with automatic fallback

For agents and chatbots, some answer beats no answer. engine: "auto" tries Google first and, only if Google is blocked or times out, answers from the next engine that serves the endpoint.

How it works

Google first; another engine answers only when Google fails.

Behind every Google request SerpKite already retries internally before giving up. That failover is always on, costs nothing and never changes the engine. Fallback goes one step further: with engine: "auto", if Google is still blocked or times out, the next enabled engine that serves the endpoint answers instead.

The response keeps the same shape, so your parser keeps working, and it says what happened: meta.engine names the engine that answered and meta.route lists each attempt with ok, partial, empty, blocked, timeout or error and its duration.

Parameter errors (a bad country, an unknown parameter) never trigger a fallback: they return 400 straight away. And a Google-only request is only ever served a cached Google result.

curl https://api.serpkite.com/v1/search \
  -H "Authorization: Bearer $SERPKITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q":"best espresso machine 2026","country":"us","engine":"auto"}'
Google blocked, Brave answered · illustrative
{
  "request": {
    "endpoint": "search",
    "engine": "auto",
    "q": "best espresso machine 2026",
    "country": "us"
  },
  "meta": {
    "credits_used": 1,
    "engine": "brave",
    "route": [
      {
        "provider": "google",
        "outcome": "blocked",
        "ms": 2140
      },
      {
        "provider": "brave",
        "outcome": "ok",
        "ms": 612
      }
    ],
    "parse_quality": "ok"
  }
}

Fallback order per endpoint

Google always goes first. Engines are tried in route order and only if they serve the endpoint.

Fallback order per endpoint
EndpointWith engine=auto
/v1/searchGoogle → Brave → Bing → DuckDuckGo → Yahoo → Yandex
/v1/newsGoogle → Brave → Bing → DuckDuckGo → Yahoo
/v1/images, /v1/videosGoogle → Brave → Bing → DuckDuckGo
/v1/maps, /v1/placesGoogle → Yandex Maps
Reviews, shopping, scholar, patents, autocompleteGoogle only

Why it matters

What you get

01

Agents keep working

A tool call that would have failed returns real results from another index instead.

02

Per-key switch

Turn on "Allow fallback" for a key in the dashboard when your MCP client or framework can't send engine.

03

Failed attempts are free

You're billed once, for the engine that answered, at the same price as Google.

04

Never relabelled

meta.engine tells you when a result didn't come from Google. Rank trackers can keep engine: "google".

FAQ

Search API with automatic fallback: common questions

Start building

Get your API key in 30 seconds

2,500 free credits, then 1,000 every month. No credit card.