Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer token used for request authentication. Alternatively, you can send the API key in the x-api-key header.

Body

application/json
query
string
required

The search query.

Operators

Operators apply to the web results only. They do not affect the place cards.

  • site:<domain>: restrict web results to a single domain. For multiple domains, use web_search.include_domains and web_search.exclude_domains.
  • -site:<domain>: exclude a single domain from the web results.
Maximum string length: 500
places
object

Controls the place cards.

Controls the web results. These options apply to the web results only and do not affect the place cards.

user_location
object

The approximate location of the user.

latitude
number

Latitude of the request location, WGS84. Must be provided together with longitude.

Required range: -90 <= x <= 90
Example:

37.788

longitude
number

Longitude of the request location, WGS84. Must be provided together with latitude.

Required range: -180 <= x <= 180
Example:

-122.4075

radius
integer

Maximum distance in meters from latitude/longitude. Requires latitude and longitude. No distance limit is applied when it is omitted or null.

Required range: 1 <= x <= 50000
Example:

2000

Response

Successful place search response

code
integer

Business status code. 0 indicates success.

msg
string

A message describing the result.

request_id
string

The unique identifier for this request.

data
object

The main response payload.

meta
object

Additional metadata for the search request.