Invoke a Serper endpoint (JSON-body form)
Relays to https://google.serper.dev/{endpoint} — https://scrape.serper.dev/ for
webpage — adding the secret X-API-KEY header. Whether an object or a batched array, the
JSON body goes upstream untouched.
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.
Request
One Serper search body as an object, or an array of bodies to run a batch. Passed on unchanged. The full control set lives in Serper’s docs.
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.

