Invoke a Serper endpoint (query-string form)
Relays to https://google.serper.dev/{endpoint} — https://scrape.serper.dev/ when the
endpoint is webpage — adding the secret X-API-KEY header. Your query string goes through
byte-for-byte; if you send an apiKey query param or an X-API-KEY header of your own, it
is dropped or overwritten.
Authentication
Your per-client bearer token — the API key the gateway issued to you. Present it in
Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a
401. Before the call is sent upstream the token is removed (stripped, or swapped for the
upstream’s own credential); it never makes it past the gateway.
Path parameters
Which Serper endpoint to hit. Values outside this list get the gateway’s 404.
Query parameters
The query text. Serper’s GET-form controls (gl, hl, num, page, …) can ride alongside
in the query string; everything is passed on byte-for-byte.
Response
Whatever the upstream answered, relayed as-is (status, headers, body). Rendered here as JSON; the true shape is the upstream provider’s to define.

