Google Product API
알려진 제품 ID를 사용하여 Google Shopping 제품 페이지에서 제품 상세 정보를 가져옵니다. engine=google_product를 설정하고 product_id를 전달한 다음, 필요에 따라 offers, specs, reviews 플래그를 활성화하여 응답을 확장할 수 있습니다.
엔드포인트
섹션 제목: “엔드포인트” GET https://serp.shifter.io/v1?engine=google_product&api_key=YOUR_API_KEY
매개변수
섹션 제목: “매개변수”| 매개변수 | 유형 | 필수 | 설명 |
|---|---|---|---|
api_key | string | 예 | SERP API 키 |
engine | string | 예 | google_product이어야 합니다 |
product_id | string | 예 | Google 제품 ID |
device | string | 아니요 | desktop, mobile, or tablet |
google_domain | string | 아니요 | 사용할 Google 도메인 |
location | string | 아니요 | 지오타겟팅 위치 이름 |
uule | string | 아니요 | Google로 인코딩된 위치 문자열 |
hl | string | 아니요 | 인터페이스 언어 코드 |
gl | string | 아니요 | 국가 코드 |
start | int | 아니요 | 페이지네이션을 위한 결과 오프셋 |
offers | int | 아니요 | 오퍼를 가져오려면 1 또는 true로 설정하세요 |
specs | int | 아니요 | 제품 사양을 가져오려면 1 또는 true로 설정하세요 |
reviews | int | 아니요 | 제품 리뷰를 가져오려면 1 또는 true로 설정하세요 |
filter | string | 아니요 | 오퍼 필터링. 값: freeship:1, ucond:1, scoring:p, scoring:tp, scoring:cpd, scoring:mrd |
요청 예시
섹션 제목: “요청 예시”curl "https://serp.shifter.io/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155"import requests
params = { "engine": "google_product", "api_key": "YOUR_API_KEY", "product_id": "11607214845071611155",}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_product', api_key: 'YOUR_API_KEY', product_id: '11607214845071611155',});const data = await (await fetch(url)).json();응답 예시
섹션 제목: “응답 예시”{ "search_parameters": { "engine": "google_product", "product_id": "11607214845071611155" }, "product_results": { "title": "Sony WH-1000XM5 Wireless Noise Cancelling Headphones", "prices": ["$349.00 - $399.99"], "rating": 4.7, "reviews": 2341, "extensions": ["Wireless", "Noise Cancelling"], "description": "Industry leading noise cancellation...", "media": [ { "type": "image", "link": "https://..." } ] }, "sellers_results": { "online_sellers": [ { "name": "Best Buy", "total_price": "$349.00" } ] }}