Google Maps API
Google Maps에서 비즈니스 및 위치 데이터를 추출합니다. engine=google_maps를 설정하고, 키워드 목록 검색에는 type=search를, 단일 장소의 전체 프로필을 조회하려면 type=place를 사용하세요.
Endpoint
섹션 제목: “Endpoint” GET https://serp.shifter.io/v1?engine=google_maps&api_key=YOUR_API_KEY
Parameters
섹션 제목: “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | yes | 사용자의 SERP API 키 |
engine | string | yes | 반드시 google_maps여야 함 |
q | string | yes | 검색할 키워드 |
type | string | yes | search 또는 place |
data | string | no | type=place일 때 필수. 형식: !4m5!3m4!1s + data_id + !8m2!3d + latitude + !4d + longitude |
device | string | no | desktop, mobile, 또는 tablet |
google_domain | string | no | 사용할 Google 도메인 |
hl | string | no | 인터페이스 언어 코드 |
ll | string | no | GPS 좌표, 형식 @latitude,longitude,zoom |
Example request
섹션 제목: “Example request”curl "https://serp.shifter.io/v1?engine=google_maps&api_key=YOUR_API_KEY&q=pizza&type=search"import requests
params = { "engine": "google_maps", "api_key": "YOUR_API_KEY", "q": "pizza", "type": "search",}r = requests.get("https://serp.shifter.io/v1", params=params)data = r.json()import fetch from 'node-fetch';
const url = 'https://serp.shifter.io/v1?' + new URLSearchParams({ engine: 'google_maps', api_key: 'YOUR_API_KEY', q: 'pizza', type: 'search',});const data = await (await fetch(url)).json();Example response
섹션 제목: “Example response”{ "search_parameters": { "engine": "google_maps", "q": "pizza", "type": "search", "google_domain": "google.com" }, "places_results": [ { "position": 1, "title": "Joe's Pizza", "place_id": "ChIJ...", "data_id": "0x89c25994a1b6e4a3:0x...", "gps_coordinates": { "latitude": 40.730, "longitude": -73.998 }, "rating": 4.5, "reviews": 2431, "type": "Pizza restaurant", "address": "7 Carmine St, New York, NY 10014", "phone": "(212) 366-1182", "website": "https://www.joespizzanyc.com/" } ]}