API Hop ドキュメント
Google Maps API リファレンス
Google Maps の店舗や場所を検索し、場所 ID で詳細を取得します。 場所のクチコミ · 場所の写真 · 写真のメタデータ · 店舗の投稿 · 経路案内 · 場所の候補 · 投稿者のクチコミ · ローカル検索 · ローカルサービス · イベント.
同時実行上限
AI と Data はそれぞれアカウント全体の同時実行枠を共有します。既定値は AI 5 / Data 2 で、サブスクリプションにより変わります。エンドポイント別の設定もカテゴリ全体の上限を超えられません。いずれかの上限に達すると HTTP 429 を返します。非同期タスクは実行終了まで枠を使用します。
GET /v1/google-maps/search GET /v1/google-maps/reviews GET /v1/google-maps/photos GET /v1/google-maps/photos/meta GET /v1/google-maps/posts GET /v1/google-maps/directions GET /v1/google-maps/autocomplete GET /v1/google-maps/contributor/reviews GET /v1/google-maps/local GET /v1/google-maps/local/services GET /v1/google-maps/events Google Maps の店舗や場所を検索し、場所 ID で詳細を取得します。 場所のクチコミ · 場所の写真 · 写真のメタデータ · 店舗の投稿 · 経路案内 · 場所の候補 · 投稿者のクチコミ · ローカル検索 · ローカルサービス · イベント.
- Google Maps の場所を検索:
GET https://api.apihop.ai/v1/google-maps/search - 場所のクチコミ:
GET https://api.apihop.ai/v1/google-maps/reviews - 場所の写真:
GET https://api.apihop.ai/v1/google-maps/photos - 写真のメタデータ:
GET https://api.apihop.ai/v1/google-maps/photos/meta - 店舗の投稿:
GET https://api.apihop.ai/v1/google-maps/posts - 経路案内:
GET https://api.apihop.ai/v1/google-maps/directions - 場所の候補:
GET https://api.apihop.ai/v1/google-maps/autocomplete - 投稿者のクチコミ:
GET https://api.apihop.ai/v1/google-maps/contributor/reviews - ローカル検索:
GET https://api.apihop.ai/v1/google-maps/local - ローカルサービス:
GET https://api.apihop.ai/v1/google-maps/local/services - イベント:
GET https://api.apihop.ai/v1/google-maps/events
認証と料金
既定料金は成功したリクエストごとに $0.0003(300 credits)です。 API Hop API キーを使用します。利用可否は有効なゲートウェイと権限によります。成功したリクエストの料金はカタログとアカウントを確認してください。個別料金が優先され、成功した空の結果も課金されます。失敗時は予約額を解放します。タイムアウトは 60 秒で、自動再試行と自動ページングはありません。精算失敗による再呼び出しも行いません。
Authorization: Bearer YOUR_API_KEYパラメーター
Google Maps の場所を検索
GET https://api.apihop.ai/v1/google-maps/search
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語 | coffee shop |
type | string | モード; search, place | - |
place_id | string | 場所 ID | ChIJP8p2kJC1RIYR2qrGoXZtZCk |
data_cid | string | 十進 CID | 2982629209513831130 |
latitude | number | 緯度; min: -90; max: 90 | 30.2672 |
longitude | number | 経度; min: -180; max: 180 | -97.7431 |
location | string | 検索地点 | Austin, TX |
zoom | number | ズーム; min: 3; max: 30 | 13.1 |
m | number | 表示高さ(メートル); min: 1; max: 15028132 | - |
start | integer | オフセット; min: 0; max: 9007199254740991 | 0 |
gl | string | 国 | us |
hl | string | 言語 | en-US |
nearby | boolean | 付近優先 | - |
zero_trace | boolean | 応答保存を無効化 | - |
min_price | integer | 最低価格; min: 0; max: 9007199254740991 | - |
max_price | integer | 最高価格; min: 0; max: 9007199254740991 | - |
min_rating | number | 希望最低評価; 2, 2.5, 3, 3.5, 4, 4.5 | - |
open_state | string | 営業状態; now, 24h | - |
open_on_day | string | 現地の曜日; mon, tue, wed, thu, fri, sat, sun | - |
open_at_hour | integer | 現地の時刻; min: 0; max: 23 | - |
場所のクチコミ
GET https://api.apihop.ai/v1/google-maps/reviews
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
id | string | Google の場所 ID または16進数のデータ ID。10進数の CID と投稿者 ID は使用できません。; 必須 | - |
next_page_token | string | 不透明な継続トークン。1時間で失効します。アカウント、パラメーター、デバイス、limit は変更しないでください。; maxLength: 24576 | - |
limit | integer | 返される項目の最大数。取得元から返される件数はこれより少ない場合があります。; ≥ 1; ≤ 20 | - |
sort_by | string | レビューの並び順。; relevance, newest, rating_high, rating_low, qualityScore, newestFirst, ratingHigh, ratingLow | - |
query | string | レビューのテキストフィルター。topic_id とは併用できません。; maxLength: 500 | - |
topic_id | string | 取得元のトピック ID。query とは併用できません。; maxLength: 131; ^(?:[A-Za-z0-9_-]{1,128}|/[mg]/[A-Za-z0-9_-]{1,128})$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google place_id OR hexadecimal data_id; NOT decimal CID, contributor IDquery XOR topic_id (optional)next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChIJM8w7rqS1RIYRhEz2-KuoqzE" \
--data-urlencode "limit=10"場所の写真
GET https://api.apihop.ai/v1/google-maps/photos
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
id | string | 対応する Google Maps の結果で返された取得元の識別子。; 必須 | - |
next_page_token | string | 不透明な継続トークン。1時間で失効します。アカウント、パラメーター、デバイス、limit は変更しないでください。; maxLength: 24576 | - |
limit | integer | 返される項目の最大数。取得元から返される件数はこれより少ない場合があります。; ≥ 1; ≤ 100 | - |
category_id | string | この場所の結果で返されたギャラリーのカテゴリ ID。; maxLength: 1024; ^[A-Za-z0-9_-]+={0,2}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifier; category_id: copy from this place gallerynext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"写真のメタデータ
GET https://api.apihop.ai/v1/google-maps/photos/meta
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
id | string | photos の results[].id からコピーした写真 ID。場所の data_id は使用しないでください。; 必須; maxLength: 255; ^[A-Za-z0-9_-]{20,255}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: copy photo ID from GET https://api.apihop.ai/v1/google-maps/photos results; NOT place data_idno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos/meta" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=AF1QipPFfVtTCFKV9n-uOBqTTOHuRemFBg0PWN7xdVxp"店舗の投稿
GET https://api.apihop.ai/v1/google-maps/posts
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
id | string | 対応する Google Maps の結果で返された取得元の識別子。; 必須 | - |
next_page_token | string | 不透明な継続トークン。1時間で失効します。アカウント、パラメーター、デバイス、limit は変更しないでください。; maxLength: 24576 | - |
limit | integer | 返される項目の最大数。取得元から返される件数はこれより少ない場合があります。; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifiernext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"経路案内
GET https://api.apihop.ai/v1/google-maps/directions
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
origin | string | 出発地の住所。origin、start_data_id、start_coords のうち必ず1つだけ指定してください。 | - |
destination | string | 目的地の住所。destination、end_data_id、end_coords のうち必ず1つだけ指定してください。 | - |
start_data_id | string | 出発地の16進数の Maps データ ID。; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
end_data_id | string | 目的地の16進数の Maps データ ID。; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
start_coords | string | 出発地の緯度,経度。; maxLength: 80 | - |
end_coords | string | 目的地の緯度,経度。; maxLength: 80 | - |
travel_mode | string | 移動手段。; driving, walking, bicycling, transit, two-wheeler, best, flight | - |
distance_unit | integer | キロメートル(0)またはマイル(1)。; ≥ 0; ≤ 1 | - |
avoid | string | 避ける道路の種類。カンマ区切りで指定します。 | - |
prefer | string | 公共交通機関の種類。カンマ区切りで指定し、travel_mode=transit が必要です。 | - |
route | integer | 公共交通の経路条件:乗り換えを少なく(2)、徒歩を少なく(3)、車いす対応(4)。; ≥ 2; ≤ 4 | - |
time | string | depart_at:timestamp、arrive_by:timestamp、または公共交通専用の last_available。; maxLength: 40 | - |
limit | integer | 返される項目の最大数。取得元から返される件数はこれより少ない場合があります。; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseorigin XOR start_data_id XOR start_coords (required)destination XOR end_data_id XOR end_coords (required)start_coords, end_coords: latitude,longitude; latitude: -90..90; longitude: -180..180prefer, route => travel_mode=transit; time=last_available => travel_mode=transittime: depart_at:Unix_seconds OR arrive_by:Unix_seconds OR last_availabledistance_unit: 0=km, 1=mi; route: 2=fewer transfers, 3=less walking, 4=wheelchair accessibleno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/directions" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "origin=Austin, TX" \
--data-urlencode "destination=Dallas, TX" \
--data-urlencode "travel_mode=driving"場所の候補
GET https://api.apihop.ai/v1/google-maps/autocomplete
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
query | string | 検索語。UTF-8 で最大8192バイト。; 必須 | - |
latitude | number | 緯度。longitude も必要です。; ≥ -90; ≤ 90 | - |
longitude | number | 経度。latitude も必要です。; ≥ -180; ≤ 180 | - |
limit | integer | 返される項目の最大数。取得元から返される件数はこれより少ない場合があります。; ≥ 1; ≤ 100 | - |
ll | string | 表示範囲:@latitude,longitude,zoomz(3-21)または @latitude,longitude,heightm。; maxLength: 120 | - |
cp | integer | query 内のカーソル位置。UTF-16 コード単位で数えます。; ≥ 0 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiselatitude AND longitude (optional)cp <= query.length (UTF-16)ll: @latitude,longitude,zoomz (3..21) OR @latitude,longitude,heightm (>0)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee in Austin" \
--data-urlencode "limit=5"投稿者のクチコミ
GET https://api.apihop.ai/v1/google-maps/contributor/reviews
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
id | string | Google Maps の投稿者プロフィール URL に含まれる数値の投稿者 ID。; 必須; ^[0-9]+$ | - |
next_page_token | string | 不透明な継続トークン。1時間で失効します。アカウント、パラメーター、デバイス、limit は変更しないでください。; maxLength: 24576 | - |
page | integer | 最初の200件のレビュー内のページ。1より後のページはトークンと併用できません。; ≥ 1; ≤ 200 | - |
limit | integer | 返される項目の最大数。取得元から返される件数はこれより少ない場合があります。; ≥ 1; ≤ 50 | - |
sort_by | string | 最新のレビューのみ。; newest | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: numeric Google Maps contributor profile ID(page - 1) * limit < 200; page default: 1; limit default: 20page > 1 => NOT next_page_tokennext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/contributor/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=112967280418127956987" \
--data-urlencode "limit=20"ローカル検索
GET https://api.apihop.ai/v1/google-maps/local
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
query | string | 検索語。UTF-8 で最大8192バイト。; 必須 | - |
location | string | 名前で指定する場所。座標または uule とは併用できません。 | - |
latitude | number | 緯度。longitude も必要です。; ≥ -90; ≤ 90 | - |
longitude | number | 経度。latitude も必要です。; ≥ -180; ≤ 180 | - |
uule | string | エンコードされた Google の位置情報。location または座標とは併用できません。; maxLength: 4096 | - |
google_domain | string | Google の国別ドメイン。例:google.com、google.co.uk。 | - |
start | integer | 結果のオフセット。0から始まります。; ≥ 0; ≤ 1000 | - |
tbs | string | Google ネイティブの key:value フィルター。カンマ区切りで指定します。; maxLength: 512 | - |
ludocid | string | Google の場所の顧客識別子(CID)。; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)tbs: comma-separated key:value filters; ludocid: Google place CIDno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "location=Austin, TX"ローカルサービス
GET https://api.apihop.ai/v1/google-maps/local/services
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
query | string | 検索語。UTF-8 で最大8192バイト。; 必須 | - |
location | string | 名前で指定する場所。座標または uule とは併用できません。 | - |
limit | integer | 返される項目の最大数。取得元から返される件数はこれより少ない場合があります。; ≥ 1; ≤ 20 | - |
data_cid | string | ゼロ以外の符号なし64ビットの地理 CID。location とは併用できません。 | - |
job_type | string | ネイティブのサービス選択値。例:restore_power。; maxLength: 100; ^[a-z][a-z0-9_]{0,99}$ | - |
cid | string | サービス提供者の識別子。cid、bid、pid をすべて指定してください。; ^[0-9]{1,20}$ | - |
bid | string | サービス提供者の識別子。cid、bid、pid をすべて指定してください。; ^[0-9]{1,20}$ | - |
pid | string | サービス提供者の識別子。cid、bid、pid をすべて指定してください。; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwisedata_cid: geographic city/district CID, string 1..18446744073709551615; NOT locationcid AND bid AND pid (optional group); query selects the service categoryno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local/services" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=plumber" \
--data-urlencode "location=Austin, TX" \
--data-urlencode "limit=5"イベント
GET https://api.apihop.ai/v1/google-maps/events
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
country | string | 2文字の国コード。; ^[A-Za-z]{2}$ | us |
language | string | プロバイダーが対応する言語コード。 | en |
device | string | 取得元ページのデバイス別表示形式。; desktop, mobile, tablet | - |
zero_trace | boolean | 上流の応答データをアーカイブしません。課金メタデータは保持されます。 | - |
no_cache | boolean | 互換性フラグ。どちらの値でも最新データを取得し、通常どおり課金されます。 | - |
query | string | 検索語。UTF-8 で最大8192バイト。; 必須 | - |
location | string | 名前で指定する場所。座標または uule とは併用できません。 | - |
latitude | number | 緯度。longitude も必要です。; ≥ -90; ≤ 90 | - |
longitude | number | 経度。latitude も必要です。; ≥ -180; ≤ 180 | - |
uule | string | エンコードされた Google の位置情報。location または座標とは併用できません。; maxLength: 4096 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/events" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=events in Austin" \
--data-urlencode "location=Austin, TX"入力検証
本文なしのクエリのみ。未知、重複、空、制御文字を拒否します。検索には query が必要です。place_id または data_cid は場所照会を選び、相互排他で type の一致が必要です。CID は十進文字列です。緯度と経度は対で指定し location と併用できません。m と nearby は検索地点が必要で、m と zoom は排他です。最低価格は最高価格以下。open_state は曜日と時刻と排他で、時刻は曜日が必要です。0 は深夜です。gl は2文字の国、hl は言語です。既定値は追加せず、文字列は8192文字まで。start は通常 0、20、40 で1ページ最大20件です。以下に全制約を示します。
search: query; type = search (optional)place: place_id XOR data_cid; type = place (optional); data_cid: 1..18446744073709551615 (string)place: NOT latitude, longitude, location, zoom, m, start, nearby, min_price, max_price, min_rating, open_state, open_on_day, open_at_hourorigin (optional): (latitude AND longitude) XOR location; m => (coordinates OR location) AND NOT zoom; nearby => coordinates OR locationmin_price <= max_price; open_at_hour => open_on_day; open_state => NOT open_on_day AND NOT open_at_hourgl: /^[a-z]{2}$/i; hl: /^[a-z]{2,3}(?:-[a-z]{2,4})?$/i; string.length <= 8192
例
curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "latitude=30.2672" \
--data-urlencode "longitude=-97.7431" \
--data-urlencode "start=0"curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "data_cid=2982629209513831130" \
--data-urlencode "hl=en"レスポンスとエラー
元の JSON と数値精度を保持します。例は空の成功結果です。HTTP 400: 入力、401: 認証、402: 残高、403: アクセス、405: メソッド、429: 制限、5xx: 障害。X-Request-Id を保存してください。
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"search_parameters": {
"q": "coffee shop",
"type": "maps",
"engine": "google_maps"
},
"has_next_page": false,
"results": []
}
}
}