데이터 API / DataForSEO / SERP
SERP API Page Screenshot
Returns a rendered screenshot of a search result page on Google. Returns keyword, type, se_domain, location_code, language_code, check_url, datetime, spell, refinement_chips, item_types, items_count and items. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200.
파라미터
경로, 쿼리, 헤더 파라미터가 없습니다.
요청 본문
task_idstring필수Unique identifier of the associated task in UUID format; can be used within 7 days
browser_presetstring선택Browser resolution preset: desktop, tablet, or mobile
browser_screen_widthinteger선택Browser resolution width; range 240-9999
browser_screen_heightinteger선택Browser resolution height; range 240-9999
browser_screen_scale_factornumber선택Browser scale factor; range 0.5-3
pageinteger선택SERP page number to screenshot; default 1
요청 예시
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/screenshot" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"task_id": "<string>",
"browser_preset": "<string>",
"browser_screen_width": 0,
"browser_screen_height": 0,
"browser_screen_scale_factor": 0,
"page": 0
}'응답
응답 필드
versionstring선택The current version of the API
status_codeinteger선택General status code
status_messagestring선택General informational message
timestring선택Execution time, seconds
costnumber선택Total task cost, USD
tasksstring[]선택Array of tasks
idstring선택Task identifier in UUID format
status_codeinteger선택Task status code
status_messagestring선택Task status message
result_countinteger선택Number of elements in the result array
pathstring[]선택URL path
dataobject선택Contains the same parameters specified in the POST request
resultstring[]선택Array of results
items_countinteger선택Number of items in the results array
itemsstring[]선택Items array
imagestring선택URL of the page screenshot on DataForSEO storage