SerpApiWebSearchGateway

constructor(apiKey: String, engine: HttpClientEngine? = null, host: String = DEFAULT_SERPAPI_HOST, engineName: String = "google", json: Json = DEFAULT_JSON)

Parameters

apiKey

SerpApi key. The free tier rate-limits aggressively — production deployments should provide a paid key.

engine

optional Ktor engine override (tests inject a MockEngine).

host

overrideable base URL (defaults to DEFAULT_SERPAPI_HOST).

engineName

the SerpApi engine parameter — defaults to google.