Felo API PlatformFelo API Platform

Data 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