Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Google Maps Search

API 문서
https://api.sandbase.ai/v1/api/google-maps/search

Search places on Google Maps by keyword around a location, with name, rating, reviews, address, hours, phone, website, GPS coordinates and place IDs.

가격
$0.01USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 22개

Playground

입력
Parameter defines the type of search you want to make. It can be set to: `search` - returns a list of results for the set `q` parameter, `place` - returns results for a specific place when `data` parameter is set Parameter is not required when using `place_id` or `data_cid`.
Parameter defines the query you want to search. You can use anything that you would use in a regular Google Maps search. The parameter is only required if `type` is set to `search`.
Parameter defines the GPS coordinates for the search origin. Its value must match the following format: `@` + `latitude` + `,` + `longitude` + `,` + `zoom/map_height` This will form a string that looks like: `@40.7455096,-74.0083012,14z` or `@43.8521864,11.2168835,10410m`. The minimum `zoom` value is `3z` (the map is completely zoomed out). The maximum effective `zoom` value depends on the location, ranging from `18z` to `23z`. Some locations may support even higher `zoom` values, so we allow values up to `30z`. Alternatively, you can specify `map_height` in meters. The minimum value is `1m`.
Parameter defines the location, whose GPS coordinates are used for the search origin. At the end, coordinates are encoded as part of the `ll` parameter. Parameter should be used with `z` or `m` parameter. Parameter can't be used with `ll`, `lat` or `lon` parameters.
Parameter defines a GPS latitude for the search origin. At the end, it is encoded as part of the `ll` parameter. Parameter is required when using `lon` parameter. Parameter should be used with `z` or `m` parameter. Parameter can't be used with `ll` or `location` parameters.
Parameter defines a GPS longitude for the search origin. At the end, it is encoded as part of the `ll` parameter. Parameter is required when using `lat` parameter. Parameter should be used with `z` or `m` parameter. Parameter can't be used with `ll` or `location` parameters.
Parameter defines a map zoom level. The minimum value is `3` (the map is completely zoomed out). The maximum effective value depends on the location, ranging from `18` to `23`. Some locations may support even higher values, so we allow values up to `30`. At the end, it is encoded as part of the `ll` parameter. Either `z` or `m` is required when using `location` or `lat`/`lon` parameters.
Parameter defines a map height in meters. The minimum value is `1`. The maximum value is `15028132`, which roughly equals `3z` on the equator. At the end, it is encoded as part of the `ll` parameter. Either `m` or `z` is required when using `location` or `lat`/`lon` parameters.
Parameter forces to return search results closer to the specified location. Parameter is highly recommended when `q` parameter includes `near me` keywords. Parameter is not recommended when `q` parameter includes location. Parameter should be used with `ll`, `location`, or `lat`/`lon` parameters.
Parameter defines the Google domain to use. It defaults to `google.com`. Head to the Google domains page for a full list of supported Google domains.
Parameter defines the language to use for the Google Maps search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish). Head to the Google Maps languages page for a full list of supported Google Maps languages.
Parameter defines the country to use for the Google Maps search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France). Head to the Google countries page for a full list of supported Google countries. Parameter only affects Place Results API.
This parameter is deprecated, please use `place_id` or `data_cid` instead. Parameter can be used to filter the search results. You can visit Google Maps website, set filters you want and simply copy the `data` value from their URL to the API URL. One of the uses of the parameter is to search for a specific place; therefore, it is required if the `type` is set to `place`. To use the `data` parameter to search for a specific place, it needs to be constructed in the following sequence: `!4m5!3m4!1s` + `data_id` + `!8m2!3d` + `latitude` + `!4d` + `longitude` This will form a string that looks like
Parameter defines the unique reference to a place in Google Maps. Place IDs are available for most locations, including businesses, landmarks, parks, and intersections. You can find the `place_id` using our Google Maps API. You can read more about Place IDs here. `place_id` can be used without any other optional parameter. `place_id` and `data_cid` can't be used together. Parameter should not be confused with `place_id` in Google Search API and Google Local API which are the same as `data_cid` in Google Maps API.
Parameter defines the Google CID (customer identifier) of a place. This parameter can be found in Google Maps API local results, as well as in Google Search API and Google Local API local results under the name of `place_id`. You can also acquire it using Google's CID converter. `data_cid` can be used without any other optional parameter. `data_cid` and `place_id` can't be used together.
Parameter defines the lower bound of the place price range. The places with the price range overlapping with the specified one will be returned. Parameter is applicable to searches expected to return places with numerical `price` data (e.g., cafes, restaurants, bars, etc.)
Parameter defines the upper bound of the place price range. The places with the price range overlapping with the specified one will be returned. Parameter is applicable to searches expected to return places with numerical `price` data (e.g., cafes, restaurants, bars, etc.)
Parameter defines the preferred minimum rating of the place. Places without a rating or with a rating below the specified value can still be returned, but with reduced relevance. Options: `2.0` - 2.0 `2.5` - 2.5 `3.0` - 3.0 `3.5` - 3.5 `4.0` - 4.0 `4.5` - 4.5
Parameter defines the open state of the place. Options: `now` - Open now `24h` - Open 24 hours Parameter can't be used with `open_on_day` or `open_at_hour` parameters.
Parameter defines the day on which the place is open. Options: `mon` - Monday `tue` - Tuesday `wed` - Wednesday `thu` - Thursday `fri` - Friday `sat` - Saturday `sun` - Sunday Parameter can't be used with `open_state` parameter.
Parameter defines the hour at which the place is open. Options: `0` - Midnight `1` - 1:00 AM `2` - 2:00 AM `3` - 3:00 AM `4` - 4:00 AM `5` - 5:00 AM `6` - 6:00 AM `7` - 7:00 AM `8` - 8:00 AM `9` - 9:00 AM `10` - 10:00 AM `11` - 11:00 AM `12` - Noon `13` - 1:00 PM `14` - 2:00 PM `15` - 3:00 PM `16` - 4:00 PM `17` - 5:00 PM `18` - 6:00 PM `19` - 7:00 PM `20` - 8:00 PM `21` - 9:00 PM `22` - 10:00 PM `23` - 11:00 PM Parameter should be used with `open_on_day` parameter. Parameter can't be used with `open_state` parameter.
Parameter defines the result offset. It skips the given number of results. It's used for pagination. (e.g., `0` (default) is the first page of results, `20` is the 2nd page of results, `40` is the 3rd page of results, etc.). We recommend starting with `0` and increasing by `20` for the next page. There is no hard limit on the maximum offset number, but we recommend a maximum of `100` (page six) which is the same behavior as with the Google Maps web app. More than that, the result might be duplicated or irrelevant.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

Google Maps Search

Search places on Google Maps by keyword around a location, with name, rating, reviews, address, hours, phone, website, GPS coordinates and place IDs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google-maps/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "coffee", "type": "search", "ll": "@30.2672,-97.7431,14z"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
typestringYesParameter defines the type of search you want to make. It can be set to: search - returns a list of results for the set q parameter, place - returns results for a specific place when data parameter is set Parameter is not required w
qstringNoParameter defines the query you want to search. You can use anything that you would use in a regular Google Maps search. The parameter is only required if type is set to search.
llstringNoParameter defines the GPS coordinates for the search origin. Its value must match the following format: @ + latitude + , + longitude + , + zoom/map_height This will form a string that looks like: @40.7455096,-74.0083012,14z or
locationstringNoParameter defines the location, whose GPS coordinates are used for the search origin. At the end, coordinates are encoded as part of the ll parameter. Parameter should be used with z or m parameter. Parameter can't be used with ll,
latstringNoParameter defines a GPS latitude for the search origin. At the end, it is encoded as part of the ll parameter. Parameter is required when using lon parameter. Parameter should be used with z or m parameter. Parameter can't be used w
lonstringNoParameter defines a GPS longitude for the search origin. At the end, it is encoded as part of the ll parameter. Parameter is required when using lat parameter. Parameter should be used with z or m parameter. Parameter can't be used
zstringNoParameter defines a map zoom level. The minimum value is 3 (the map is completely zoomed out). The maximum effective value depends on the location, ranging from 18 to 23. Some locations may support even higher values, so we allow valu
mstringNoParameter defines a map height in meters. The minimum value is 1. The maximum value is 15028132, which roughly equals 3z on the equator. At the end, it is encoded as part of the ll parameter. Either m or z is required when using
nearbystringNoParameter forces to return search results closer to the specified location. Parameter is highly recommended when q parameter includes near me keywords. Parameter is not recommended when q parameter includes location. Parameter should
google_domainstringNoParameter defines the Google domain to use. It defaults to google.com. Head to the Google domains page for a full list of supported Google domains.
hlstringNoParameter defines the language to use for the Google Maps search. It's a two or three-letter language code. (e.g., en for English, es for Spanish, or fr for French), optionally followed by a two-letter or three-digit region code (e.g.
glstringNoParameter defines the country to use for the Google Maps search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France). Head to the Google countries page for a full list of supported
datastringNoThis parameter is deprecated, please use place_id or data_cid instead. Parameter can be used to filter the search results. You can visit Google Maps website, set filters you want and simply copy the data value from their URL to the AP
place_idstringNoParameter defines the unique reference to a place in Google Maps. Place IDs are available for most locations, including businesses, landmarks, parks, and intersections. You can find the place_id using our Google Maps API. You can read mor
data_cidstringNoParameter defines the Google CID (customer identifier) of a place. This parameter can be found in Google Maps API local results, as well as in Google Search API and Google Local API local results under the name of place_id. You can also a
min_pricestringNoParameter defines the lower bound of the place price range. The places with the price range overlapping with the specified one will be returned. Parameter is applicable to searches expected to return places with numerical price data (e.g.
max_pricestringNoParameter defines the upper bound of the place price range. The places with the price range overlapping with the specified one will be returned. Parameter is applicable to searches expected to return places with numerical price data (e.g.
min_ratingstringNoParameter defines the preferred minimum rating of the place. Places without a rating or with a rating below the specified value can still be returned, but with reduced relevance. Options: 2.0 - 2.0 2.5 - 2.5 3.0 - 3.0 3.5 - 3.5 `4.0
open_statestringNoParameter defines the open state of the place. Options: now - Open now 24h - Open 24 hours Parameter can't be used with open_on_day or open_at_hour parameters.
open_on_daystringNoParameter defines the day on which the place is open. Options: mon - Monday tue - Tuesday wed - Wednesday thu - Thursday fri - Friday sat - Saturday sun - Sunday Parameter can't be used with open_state parameter.
open_at_hourstringNoParameter defines the hour at which the place is open. Options: 0 - Midnight 1 - 1:00 AM 2 - 2:00 AM 3 - 3:00 AM 4 - 4:00 AM 5 - 5:00 AM 6 - 6:00 AM 7 - 7:00 AM 8 - 8:00 AM 9 - 9:00 AM 10 - 10:00 AM 11 - 11:00 AM `12
startstringNoParameter defines the result offset. It skips the given number of results. It's used for pagination. (e.g., 0 (default) is the first page of results, 20 is the 2nd page of results, 40 is the 3rd page of results, etc.). We recommend st
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

더 살펴보기

관련 API

모든 API
API가격응답
Google Maps$0.01 / 호출JSON
Google Maps$0.01 / 호출JSON
Google Maps$0.00015 / 호출비동기 JSON
Google Maps$0.01 / 호출JSON
Google Maps$0.00015 / 호출JSON
Google Maps$0.01 / 호출JSON

가이드:Best Google Maps API in 2026: Pricing Compared

질문

FAQ

Google Maps Search API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/google-maps/search에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Google Maps Search API 비용은 얼마인가요?

호출당 $0.01, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Google Maps Search API는 어떤 매개변수를 받나요?

필수: type (string). 선택: q (string), ll (string), location (string), lat (string), lon (string) 및 z (string) 외 16개. 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Google Maps Search API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식).

Google Maps 개발자 계정이나 API 키가 필요한가요?

아니요. Google Maps Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Google Maps API 액세스를 별도로 신청할 필요는 없습니다.