Skip to main content
POST
Autocomplete Place Predictions

Request contract

  • Method and path: POST /apis/v1/google-maps/autocomplete
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/google-maps/autocomplete
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00313 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
input
string
required

Text string to search for place predictions. Can be full words, substrings, place names, addresses, or plus codes. Must be non-empty.

Examples:

"pizza"

"123 Main"

"Eiffel"

includePureServiceAreaBusinesses
boolean

Includes businesses without physical locations (default: false).

includeQueryPredictions
boolean

Includes query predictions in response for text searches (default: false).

includedPrimaryTypes
string[]

Restricts results to up to five specified primary types (e.g., 'restaurant', 'cafe').

Examples:
includedRegionCodes
string[]

Up to 15 two-character country codes (ISO 3166-1 Alpha-2) to restrict results. Query predictions unavailable when this is set.

Examples:
inputOffset
integer

Zero-based Unicode character offset of cursor position in the input string.

Required range: x >= 0
Examples:

5

10

languageCode
string

Preferred language for results using IETF BCP-47 language codes (e.g., 'en-US', 'es-ES').

Examples:

"en-US"

"es-ES"

"fr-FR"

locationBias
object

Area to bias search results toward.

locationRestriction
object

Area to restrict search results within.

origin
object

Latitude/longitude point for distance calculations.

regionCode
string

Region code in ccTLD format for formatting responses (e.g., 'us', 'br').

Examples:

"us"

"gb"

"fr"

sessionToken
string

User-generated string grouping calls into sessions for billing purposes.

Examples:

"session_123"

"user_abc_session"

Response

Tool result data

suggestions
object[]