Google Places · Schema

AutocompleteRequest

Request body for an Autocomplete request.

RestaurantGeolocationGoogleLocationsMapsPlacesPoints of Interest

Properties

Name Type Description
input string The partial text string on which to return predictions.
sessionToken string A session token that groups autocomplete and details requests for billing.
languageCode string The language in which to return predictions.
regionCode string The region code used to format and bias predictions.
includedPrimaryTypes array Place types to restrict predictions to.
locationBias object The region to bias predictions toward, expressed as a circle.
View JSON Schema on GitHub

JSON Schema

autocomplete-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-places/refs/heads/main/json-schema/autocomplete-request-schema.json",
  "title": "AutocompleteRequest",
  "description": "Request body for an Autocomplete request.",
  "type": "object",
  "required": [
    "input"
  ],
  "properties": {
    "input": {
      "type": "string",
      "description": "The partial text string on which to return predictions.",
      "example": "Googlep"
    },
    "sessionToken": {
      "type": "string",
      "description": "A session token that groups autocomplete and details requests for billing.",
      "example": "0a1b2c3d-4e5f-6789-abcd-ef0123456789"
    },
    "languageCode": {
      "type": "string",
      "description": "The language in which to return predictions.",
      "example": "en"
    },
    "regionCode": {
      "type": "string",
      "description": "The region code used to format and bias predictions.",
      "example": "US"
    },
    "includedPrimaryTypes": {
      "type": "array",
      "description": "Place types to restrict predictions to.",
      "items": {
        "type": "string"
      }
    },
    "locationBias": {
      "type": "object",
      "description": "The region to bias predictions toward, expressed as a circle.",
      "properties": {
        "circle": {
          "$ref": "#/components/schemas/Circle"
        }
      }
    }
  }
}