Serper Locations API

Canonical Google geo-target lookup for the location parameter used by every Serper search endpoint, plus a service health check. The only Serper surface that answers unauthenticated.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

1 of 2 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /locations Look up a supported location · Search supported locations #
Ask an LLM
“What canonical location value should I pass for a city in the UK?”
“Can I search supported locations by name?”
Tell an agent
Find supported locations matching {q}.
List up to {limit} canonical location targets.
GET /health Check the service health · Service health conformant #
Ask an LLM
“Is the Serper location service up?”
“Can I ping a health check before searching locations?”
Tell an agent
Check the location service health.
Ping the locations service.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/serper:serper-locations-api"
All apis
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.

Get an API 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 Specification

serper-locations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Serper Locations API
  description: Lookup service for the canonical location values accepted by the `location` parameter on Serper's search endpoints. Serper's own playground links this endpoint as the published "list of supported locations". It answers unauthenticated.
  version: 1.0.0
  contact:
    name: Serper Support
    url: https://serper.dev
    email: support@serper.dev
  termsOfService: https://serper.dev/terms
  license:
    name: Commercial
    url: https://serper.dev
  x-provenance:
    method: probed
    generated: '2026-08-13'
    source: https://api.serper.dev/locations?q=new&limit=25 — HTTP 200, application/json, probed unauthenticated 2026-08-13. Endpoint and parameters read from Serper's own playground bundle (https://serper.dev/_next/static/chunks/pages/playground-7ce8960e9fe2fc99.js), which calls GET /locations?q=<term>&limit=25 and links it to users as the supported-locations reference.
    note: Response schema below is transcribed from a real observed 200 response body, not invented.
servers:
- url: https://api.serper.dev
  description: Serper platform API host
tags:
- name: Locations
  description: Canonical search-location lookup
paths:
  /locations:
    get:
      operationId: listLocations
      summary: Search supported locations
      description: Return canonical Google location targets matching a search term. The returned `canonicalName` is the value to pass as the `location` parameter on Serper's search endpoints.
      tags:
      - Locations
      parameters:
      - name: q
        in: query
        description: Location search term.
        required: false
        schema:
          type: string
        example: new
      - name: limit
        in: query
        description: Maximum number of locations to return.
        required: false
        schema:
          type: integer
        example: 25
      responses:
        '200':
          description: An array of matching locations.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Location'
              example:
              - name: New Caledonia
                canonicalName: New Caledonia
                googleId: 2540
                countryCode: NC
                targetType: Country
              - name: New South Wales
                canonicalName: New South Wales,Australia
                googleId: 20035
                countryCode: AU
                targetType: State
  /health:
    get:
      operationId: getHealth
      summary: Service health
      description: Unauthenticated health check. Observed returning {"status":"ok","info":{"database":{"status":"up"}},...} on 2026-08-13.
      tags:
      - Locations
      responses:
        '200':
          description: Health report.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Overall service status.
                  info:
                    type: object
                    additionalProperties: true
                    description: Per-dependency status.
                  error:
                    type: object
                    additionalProperties: true
                  details:
                    type: object
                    additionalProperties: true
components:
  schemas:
    Location:
      type: object
      properties:
        name:
          type: string
          description: Display name of the location.
        canonicalName:
          type: string
          description: Fully qualified location string, e.g. "New South Wales,Australia". This is the value passed to the `location` parameter on search endpoints.
        googleId:
          type: integer
          description: Google geo target criteria ID.
        countryCode:
          type: string
          description: ISO 3166-1 alpha-2 country code.
        targetType:
          type: string
          description: Granularity of the target, e.g. Country, State, City.