Felo API PlatformFelo API Platform

資料 API / DataForSEO / SERP

Live Google Ai Mode SERP HTML

Returns Google's AI Mode answer for a query, with the sources it cites 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.

參數

沒有路徑、查詢或請求標頭參數。

請求主體

  • keywordstring必填

    Keyword; you can specify up to 700 characters

  • location_namestring選填

    Full name of search engine location; required if location_code or location_coordinate is not specified

  • location_codeinteger選填

    Search engine location code; required if location_name or location_coordinate is not specified

  • location_coordinatestring選填

    GPS coordinates of a location; required if location_name or location_code is not specified

  • language_namestring選填

    Full name of search engine language; required if language_code is not specified

  • language_codestring選填

    Search engine language code; required if language_name is not specified

  • devicestring選填

    Device type: desktop or mobile

請求範例

curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/ai_mode/live/html" \
  -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>",
  "device": "<string>"
}'

回應

回應欄位

  • versionstring選填

    The current version of the API

  • status_codeinteger選填

    General status code

  • status_messagestring選填

    General informational message

  • timestring選填

    Execution time, seconds

  • costnumber選填

    Total tasks cost, USD

  • tasks_countinteger選填

    The number of tasks in the tasks array

  • tasks_errorinteger選填

    The number of tasks in the tasks array returned with an error

  • tasksstring[]選填

    Array of tasks

  • idstring選填

    Task identifier

  • status_codeinteger選填

    Task status code

  • status_messagestring選填

    Task status message

  • timestring選填

    Execution time, seconds

  • costnumber選填

    Cost of the task, USD

  • 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 HTML results

  • keywordstring選填

    Keyword received in the POST array

  • typestring選填

    Search engine type in the POST array

  • se_domainstring選填

    Search engine domain in the POST array

  • location_codeinteger選填

    Location code in the POST array

  • language_codestring選填

    Language code in the POST array