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