API · Google
GET /google/business/search
Search Google Maps businesses: names, addresses, ratings, phones, hours, ids.
| Request | GET /v1/google/business/search |
| Operation id | google.business.search |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search Google Maps businesses: names, addresses, ratings, phones, hours, ids.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | What to look for. Example: coffee. |
location | string | no | Where: a city, address or area. Example: Austin, TX. |
lat | number | null | no | |
lng | number | null | no | |
zoom | integer | no | |
language | string | no | Interface language code (Google’s hl), default en. Example: de. |
country | string | no | Two-letter country (Google’s gl), default us. Example: gb. |
limit | integer | no | |
min_rating | number | null | no | |
open_now | "true" | "false" | no | One of true, false. |
open_24h | "true" | "false" | no | One of true, false. |
open_on_day | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun" | no | One of mon, tue, wed, thu, fri, sat, sun. |
open_at_hour | integer | null | no | With open_on_day (default today): open at this local hour. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Matching 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.