Google Maps place results for a query — rating, address
serpapi.x.google-mapsLive Google Maps place results for a keyword and location, or a Google place_id lookup — position, place_id, rating, address, phone, website
- Price
- $0.015/successプロバイダー原価
- Success rate
- 100%Last 30 days · 13,370 calls
- Latency p50
- 1.1 sp95 4.1 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/serpapi.x.google-maps?q=pizza&ll=%4040.7455096%2C-74.0083012%2C14z&type=search&engine=google_mapsPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
Keyword search answers arrive in `local_results`; a place_id lookup answers in `place_results`. Search: engine=google_maps type=search q=pizza ll=@…. Place lookup: engine=google_maps type=place q=<place name or place_id> place_id=ChIJifIePKtZwokRVZ-UdRGkZzs.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 必須 | required for type=search (keyword). For a place_id lookup, Treg still requires q — send the place name, or the same place_id as q, alongside place_id. | pizza |
ll | 文字列 | 任意 | @latitude,longitude,zoom — alternative to location+z or lat/lon+z | @40.7455096,-74.0083012,14z |
type | 文字列 | 必須 | search (keyword list) or place (single-place lookup via place_id). Prefer type=place with place_id. Upstream does not require type when place_id is set (https://serpapi.com/google-maps-api); Treg still requires type — send type=place for a place_id lookup. | search |
start | 整数 | 任意 | pagination offset, increments of 20 | 0 |
engine | 文字列 | 必須 | google_maps | |
place_id | 文字列 | 任意 | Google place_id for a single-place lookup / NAP (name, address, phone, website). Prefer with type=place. Upstream accepts place_id without other optional params (https://serpapi.com/google-maps-api); Treg still requires type and q, so send type=place and a q (place name, or place_id as q) alongside place_id. | ChIJifIePKtZwokRVZ-UdRGkZzs |
- クエリパラメータ
q文字列必須required for type=search (keyword). For a place_id lookup, Treg still requires q — send the place name, or the same place_id as q, alongside place_id.
例:
pizzall文字列任意@latitude,longitude,zoom — alternative to location+z or lat/lon+z
例:
@40.7455096,-74.0083012,14ztype文字列必須search (keyword list) or place (single-place lookup via place_id). Prefer type=place with place_id. Upstream does not require type when place_id is set (https://serpapi.com/google-maps-api); Treg still requires type — send type=place for a place_id lookup.
例:
searchstart整数任意pagination offset, increments of 20
例:
0engine文字列必須例:
google_mapsplace_id文字列任意Google place_id for a single-place lookup / NAP (name, address, phone, website). Prefer with type=place. Upstream accepts place_id without other optional params (https://serpapi.com/google-maps-api); Treg still requires type and q, so send type=place and a q (place name, or place_id as q) alongside place_id.
例:
ChIJifIePKtZwokRVZ-UdRGkZzs
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.x.google-maps?q=pizza&ll=%4040.7455096%2C-74.0083012%2C14z&type=search&engine=google_maps' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/serpapi.x.google-maps?q=pizza&ll=%4040.7455096%2C-74.0083012%2C14z&type=search&engine=google_maps",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/serpapi.x.google-maps?q=pizza&ll=%4040.7455096%2C-74.0083012%2C14z&type=search&engine=google_maps", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.015/success です。サービス料を含みます。