NativePort Serper API
The serper API from NativePort — 2 operation(s) for serper.
The serper API from NativePort — 2 operation(s) for serper.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nativeport-ai:nativeport-ai-serper-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reference Serper API
version: 1.0.0
servers:
- url: https://api.nativeport.ai
description: NativePort production
- url: http://localhost:8787
description: Local development (wrangler dev)
tags:
- name: serper
paths:
/serper:
get:
operationId: serper_searchAlias
summary: Search Serper, query-string form (alias of /serper/search)
description: '`/serper` on its own is the legacy single-endpoint contract, kept alive as an alias of
`/serper/search` → `https://google.serper.dev/search`. Controls can come in the query
string — the `GET` form here — or as a JSON body via `POST`.'
tags:
- serper
parameters:
- name: q
in: query
description: '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.
'
required: false
schema:
type: string
responses:
'200':
description: 'Whatever the upstream answered, relayed as-is (status, headers, body). Rendered here as
JSON; the true shape is the upstream provider''s to define.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth: []
post:
operationId: serper_searchAliasPost
summary: Search Serper, JSON-body form (alias of /serper/search)
description: 'Bare `/serper` aliases `/serper/search`. It takes the shape Serper''s documentation opens
with: search controls inside a JSON body. An **array** body — a batch of searches — forwards
like any other payload.'
tags:
- serper
responses:
'200':
description: 'Whatever the upstream answered, relayed as-is (status, headers, body). Rendered here as
JSON; the true shape is the upstream provider''s to define.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
description: '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](https://serper.dev).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Serper_searchAliasPost_Request'
security:
- bearerAuth: []
/serper/{endpoint}:
get:
operationId: serper_endpointGet
summary: Invoke a Serper endpoint (query-string form)
description: '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.'
tags:
- serper
parameters:
- name: endpoint
in: path
description: Which Serper endpoint to hit. Values outside this list get the gateway's `404`.
required: true
schema:
$ref: '#/components/schemas/SerperEndpointGetParametersEndpoint'
- name: q
in: query
description: '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.
'
required: false
schema:
type: string
responses:
'200':
description: 'Whatever the upstream answered, relayed as-is (status, headers, body). Rendered here as
JSON; the true shape is the upstream provider''s to define.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth: []
post:
operationId: serper_endpointPost
summary: Invoke a Serper endpoint (JSON-body form)
description: '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.'
tags:
- serper
parameters:
- name: endpoint
in: path
description: Which Serper endpoint to hit. Values outside this list get the gateway's `404`.
required: true
schema:
$ref: '#/components/schemas/SerperEndpointPostParametersEndpoint'
responses:
'200':
description: 'Whatever the upstream answered, relayed as-is (status, headers, body). Rendered here as
JSON; the true shape is the upstream provider''s to define.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
description: '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](https://serper.dev).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Serper_endpointPost_Request'
security:
- bearerAuth: []
components:
schemas:
SerperEndpointGetParametersEndpoint:
type: string
enum:
- search
- images
- videos
- places
- maps
- reviews
- news
- shopping
- lens
- scholar
- patents
- autocomplete
- webpage
title: SerperEndpointGetParametersEndpoint
Serper_endpointPost_Request:
oneOf:
- type: object
additionalProperties:
description: Any type
- type: array
items:
type: object
additionalProperties:
description: Any type
title: Serper_endpointPost_Request
Error:
type: object
properties:
error:
type: string
description: Explanatory message meant for humans.
required:
- error
title: Error
Serper_searchAliasPost_Request:
oneOf:
- type: object
additionalProperties:
description: Any type
- type: array
items:
type: object
additionalProperties:
description: Any type
title: Serper_searchAliasPost_Request
SerperEndpointPostParametersEndpoint:
type: string
enum:
- search
- images
- videos
- places
- maps
- reviews
- news
- shopping
- lens
- scholar
- patents
- autocomplete
- webpage
title: SerperEndpointPostParametersEndpoint
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: '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.
'