API · Google
GET /google/search/places
Google local results: places with address, rating, category and Maps ids.
| Request | GET /v1/google/search/places |
| Operation id | google.search.places |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Google local results: places with address, rating, category and Maps ids.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | The search, as typed into Google (operators work). Example: coffee. |
gl | string | no | Country to search from, default us. Example: gb. |
hl | string | no | Interface language, default en. Example: de. |
location | string | no | Where the search happens, as a canonical place name ("Austin,Texas,United States"). Example: Austin,Texas,United States. |
num | integer | no | Results per page (default 20, at most 20). |
page | integer | no | Page, from 1. |
safe | "active" | "off" | no | SafeSearch, default off. One of active, off. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The places. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No Google Maps place matches that reference. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Google is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.