Google 本地 搜尋 API
API 健康狀態
健康 可用 受限 多數不可用 無資料
正在載入健康狀態...
取得 Google 本地搜尋資料,包括商家清單、評分和聯絡資訊,用於本地潛在客戶開發和競爭對手研究。
標籤: Google 本地
請求參數
| 名稱 | 必填 | 類型 | 預設值 | 說明 |
|---|---|---|---|---|
query | 是 | string | 本地商家的搜尋查詢(例如「披薩」、「附近的牙醫」)。 | |
page | 否 | integer | 0 | 結果頁碼。使用 0 表示第一頁,1 表示第二頁,依此類推。 |
location | 否 | string | 文字形式的地點名稱(例如「紐約, NY」),用於在地化搜尋結果。 | |
uule | 否 | string | 編碼位置字串 (UULE),用於精確定位 Google 搜尋結果。這是一個進階/技術參數 — 如果您不熟悉,可以留空並省略。 | |
country | 否 | string | us | 設定目標國家代碼(例如 'us'、'uk')以本地化結果。請參閱 Google 國家。 |
language | 否 | string | en | 使用兩個字母的代碼設定結果語言(例如 'en' 表示英文,'fr' 表示法文)。請參閱 Google 語言。 |
domain | 否 | string | google.com | 用於搜尋的 Google 網域(例如 'google.com'、'google.co.uk')。請參閱 Google 網域。 |
ludocid | 否 | string | 要取得特定商家詳細資訊的 Google 商家檔案唯一清單 ID(CID)。 | |
tbs | 否 | string | 進階搜尋篩選參數 (tbs),用於套用 Google 結果篩選器(例如時間範圍)。這是一個進階參數 — 如果您不熟悉,可以留空。 |
複製請求
bash
curl -X GET "https://api.justserpapi.com/api/v1/google/local/search?query=coffee" \
-H "X-API-Key: YOUR_API_KEY"js
const res = await fetch("https://api.justserpapi.com/api/v1/google/local/search?query=coffee", {
headers: { "X-API-Key": "YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);python
import requests
url = "https://api.justserpapi.com/api/v1/google/local/search"
headers = { "X-API-Key": "YOUR_API_KEY" }
params = {
"query": "coffee"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())php
<?php
$url = "https://api.justserpapi.com/api/v1/google/local/search?query=coffee";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-API-Key: YOUR_API_KEY"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://api.justserpapi.com/api/v1/google/local/search?query=coffee", nil)
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}回應
正在載入最新回應範例...
