콘텐츠로 이동
로그인 가입하기

Google 검색 API

Google 검색의 오가닉 결과, 광고, 관련 검색어, 지식 그래프 등을 가져옵니다. engine=google을 설정하고 검색어 문자열을 전달하면 캡차 및 봇 차단 보호를 우회한 구조화된 결과를 받을 수 있습니다.

GET https://serp.shifter.io/v1?engine=google&api_key=YOUR_API_KEY
ParameterTypeRequiredDescription
api_keystringyesSERP API 키
enginestringyesgoogle이어야 함
qstringyes검색어
cookiestringno요청에 사용할 커스텀 쿠키. URL 인코딩 필요
tbmstringno검색 버티컬: isch(이미지), vid(동영상), nws(뉴스), shop(쇼핑)
sort_bystringno결과 정렬 기준: relevance 또는 date
time_periodstringnolast_hour, last_day, last_week, last_month, last_year, 또는 custom
time_period_minstringnotime_period=custom일 때의 최소 날짜. 형식은 MM/DD/YYYY
time_period_maxstringnotime_period=custom일 때의 최대 날짜. 형식은 MM/DD/YYYY
flatten_resultsintno결과를 평탄화하려면 1, 아니면 0
empty_resultsintno빈 결과를 숨기려면 0, 표시하려면 1
devicestringnodesktop, mobile, 또는 tablet
locationstringno지오타겟팅 위치 이름
google_domainstringno사용할 Google 도메인 (예: google.co.uk)
uulestringnoGoogle 인코딩 위치 문자열
lrstringno언어 제한, 형식 lang_xx
hlstringno인터페이스 언어 코드
glstringno국가 코드
startintno페이지네이션을 위한 결과 오프셋
numintno페이지당 결과 수
ijnintnoGoogle 이미지 페이지 번호 (페이지당 이미지 100개)
safestringno세이프서치: active 또는 off
filterintno유사 및 생략된 결과 필터: 1은 켜짐, 0은 꺼짐
nfprintno자동 수정된 검색어를 제외하려면 1, 아니면 0
tbsstringno고급 검색 매개변수 (특허, 날짜 등)
ludocidstringnoGoogle 비즈니스 프로필 CID (Place ID)
lsigintno지식 그래프 지도 보기를 강제 실행
Terminal window
curl "https://serp.shifter.io/v1?engine=google&api_key=YOUR_API_KEY&q=history"
{
"search_metadata": {
"id": "...",
"status": "Success",
"created_at": "2024-01-01T00:00:00Z"
},
"search_parameters": {
"engine": "google",
"q": "history",
"google_domain": "google.com",
"device": "desktop"
},
"search_information": {
"total_results": 10500000000,
"time_taken_displayed": 0.52
},
"organic_results": [
{
"position": 1,
"title": "History - Wikipedia",
"link": "https://en.wikipedia.org/wiki/History",
"displayed_link": "https://en.wikipedia.org > wiki > History",
"snippet": "History is the systematic study of the past..."
}
],
"related_searches": [ { "query": "world history" } ],
"pagination": { "current": 1, "next": "..." }
}