AutocompleteRequest

Request body for place autocomplete predictions

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
input string The text input specifying which place to search for
locationBias object
locationRestriction object
includedPrimaryTypes array Restrict results to primary types
includedRegionCodes array Restrict results to these region codes
languageCode string The language code for predictions
regionCode string Region code for biasing
origin object
inputOffset integer Zero-based Unicode character offset of input indicating the cursor position. Use to return more relevant predictions.
includeQueryPredictions boolean Whether to include query predictions in results
sessionToken string A random string that groups this request with subsequent Place Details requests for billing.
View JSON Schema on GitHub

JSON Schema

google-maps-autocompleterequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AutocompleteRequest",
  "title": "AutocompleteRequest",
  "type": "object",
  "description": "Request body for place autocomplete predictions",
  "properties": {
    "input": {
      "type": "string",
      "description": "The text input specifying which place to search for",
      "example": "pizza near"
    },
    "locationBias": {
      "$ref": "#/components/schemas/LocationBias"
    },
    "locationRestriction": {
      "$ref": "#/components/schemas/LocationRestriction"
    },
    "includedPrimaryTypes": {
      "type": "array",
      "description": "Restrict results to primary types",
      "items": {
        "type": "string"
      },
      "example": []
    },
    "includedRegionCodes": {
      "type": "array",
      "description": "Restrict results to these region codes",
      "items": {
        "type": "string"
      },
      "example": []
    },
    "languageCode": {
      "type": "string",
      "description": "The language code for predictions",
      "example": "example_value"
    },
    "regionCode": {
      "type": "string",
      "description": "Region code for biasing",
      "example": "example_value"
    },
    "origin": {
      "$ref": "#/components/schemas/LatLng"
    },
    "inputOffset": {
      "type": "integer",
      "description": "Zero-based Unicode character offset of input indicating the cursor position. Use to return more relevant predictions.",
      "example": 10
    },
    "includeQueryPredictions": {
      "type": "boolean",
      "description": "Whether to include query predictions in results",
      "example": true
    },
    "sessionToken": {
      "type": "string",
      "description": "A random string that groups this request with subsequent Place Details requests for billing.",
      "example": "example_value"
    }
  },
  "required": [
    "input"
  ]
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-maps-autocompleterequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.