Felo API PlatformFelo API Platform

数据 API / DataForSEO / SERP

Setting Google Organic SERP Tasks

Queues the ranked results for a keyword on Google, returning a task id in tasks[0].id. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. The live twin answers immediately and is simpler for a single query; queue when the batch would outlast a tool call.

参数

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

请求体

  • keywordstring必填

    Keyword to search for

  • 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

  • depthinteger可选

    Parsing depth, default 100, max 700

  • max_crawl_pagesinteger可选

    Page crawl limit, max 100

  • devicestring可选

    Device type: desktop or mobile

  • osstring可选

    Device operating system

  • group_organic_resultsboolean可选

    Display related results as grouped organic results

  • calculate_rectanglesboolean可选

    Calculate pixel rankings for SERP elements in advanced results

  • postback_urlstring可选

    Postback URL for completed task results

  • pingback_urlstring可选

    Pingback URL for task completion notification

  • postback_datastring可选

    Postback payload type

  • tagstring可选

    User-defined task identifier

请求示例

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

响应

响应字段

  • versionstring可选

    API version

  • status_codeinteger可选

    General status code

  • status_messagestring可选

    General informational message

  • timestring可选

    Execution time

  • costnumber可选

    Total tasks cost in USD

  • tasks_countinteger可选

    Number of tasks in the request

  • tasks_errorinteger可选

    Number of tasks returned with an error

  • tasksstring可选

    Array of task objects

  • idstring可选

    Task identifier in UUID format

  • status_codeinteger可选

    Task status code

  • status_messagestring可选

    Task status message

  • costnumber可选

    Task cost

  • result_countinteger可选

    Number of result elements