Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

SERP API Page Screenshot

伺服器:https://openapi.felo.ai
用戶端程式庫

DataForSEO

​

SEO, search-engine results, keyword research, backlinks and AI visibility data.

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.

請求本文
必填
application/json
  • 類型: array object[]
    • task_id
      類型: string
      必填

      Unique identifier of the associated task in UUID format; can be used within 7 days

    • browser_preset
      類型: string

      Browser resolution preset: desktop, tablet, or mobile

    • browser_screen_height
      類型: integer

      Browser resolution height; range 240-9999

    • browser_screen_scale_factor
      類型: number

      Browser scale factor; range 0.5-3

    • browser_screen_width
      類型: integer

      Browser resolution width; range 240-9999

    • page
      類型: integer

      SERP page number to screenshot; default 1

回應
  • 200
    類型: object

    Successful response

    • cost
      類型: number

      Total task cost, USD

    • status_code
      類型: integer

      General status code

    • status_message
      類型: string

      General informational message

    • tasks
      類型: array string[]

      Array of tasks

    • tasks[].data
      類型: object

      Contains the same parameters specified in the POST request

    • tasks[].id
      類型: string

      Task identifier in UUID format

    • tasks[].path
      類型: array string[]

      URL path

    • tasks[].result
      類型: array string[]

      Array of results

    • tasks[].result_count
      類型: integer

      Number of elements in the result array

    • tasks[].result[].items
      類型: array string[]

      Items array

    • tasks[].result[].items_count
      類型: integer

      Number of items in the results array

    • tasks[].result[].items[].image
      類型: string

      URL of the page screenshot on DataForSEO storage

    • tasks[].status_code
      類型: integer

      Task status code

    • tasks[].status_message
      類型: string

      Task status message

    • time
      類型: string

      Execution time, seconds

    • version
      類型: string

      The current version of the API

    application/json
  • 400

    Bad request

  • 401

    Unauthorized

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    Rate limit exceeded

  • 500

    Internal server error

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for post/v1/beta/dataforseo/serp/screenshot
curl https://openapi.felo.ai/v1/beta/dataforseo/serp/screenshot \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "task_id": "",
    "browser_preset": "",
    "browser_screen_width": 1,
    "browser_screen_height": 1,
    "browser_screen_scale_factor": 1,
    "page": 1
  }
]'
{
  "version": "string",
  "status_code": 1,
  "status_message": "string",
  "time": "string",
  "cost": 1,
  "tasks": [
    "string"
  ],
  "tasks[].id": "string",
  "tasks[].status_code": 1,
  "tasks[].status_message": "string",
  "tasks[].result_count": 1,
  "tasks[].path": [
    "string"
  ],
  "tasks[].data": {},
  "tasks[].result": [
    "string"
  ],
  "tasks[].result[].items_count": 1,
  "tasks[].result[].items": [
    "string"
  ],
  "tasks[].result[].items[].image": "string"
}
SERP API Page Screenshot