Felo API PlatformFelo API Platform

資料 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