Felo API PlatformFelo API Platform

数据 API / DataForSEO / SERP

Live Google Organic SERP HTML

Returns the ranked results for a keyword on Google, synchronously. Raw page source rather than parsed results. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200.

参数

没有路径、查询或请求头参数。

请求体

  • urlstring可选

    Direct URL of the search query

  • location_namestring可选

    Full name of search engine location

  • location_codeinteger可选

    Search engine location code

  • location_coordinatestring可选

    GPS coordinates of a location

  • language_namestring可选

    Full name of search engine language

  • language_codestring可选

    Search engine language code

  • devicestring可选

    Device type: desktop or mobile

  • osstring可选

    Device operating system

  • se_domainstring可选

    Custom search engine domain

  • depthinteger可选

    Parsing depth, default 100, max 700

  • max_crawl_pagesinteger可选

    Page crawl limit, max 100

  • search_paramstring可选

    Additional parameters of the search query

  • load_async_ai_overviewboolean可选

    Load asynchronous AI overview

  • expand_ai_overviewboolean可选

    Expand AI overview item

  • tagstring可选

    User-defined task identifier

  • keywordstring可选

    Keyword to search for.

请求示例

curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/organic/live/html" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "<string>",
  "location_name": "<string>",
  "location_code": 0,
  "location_coordinate": "<string>",
  "language_name": "<string>",
  "language_code": "<string>",
  "device": "<string>",
  "os": "<string>"
}'

响应

响应字段

  • versionstring可选

    API version

  • status_codeinteger可选

    General status code

  • status_messagestring可选

    General informational message

  • timestring可选

    Execution time

  • costnumber可选

    Request cost in USD

  • tasks_countinteger可选

    Number of tasks returned

  • tasks_errorinteger可选

    Number of tasks returned with an error

  • tasksstring可选

    Array of live task objects

  • idstring可选

    Task identifier

  • resultstring可选

    Result array containing HTML pages

  • itemsstring可选

    HTML page items

  • htmlstring可选

    Raw HTML page content