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

Live Google Ai Mode SERP HTML

Сервер:https://openapi.felo.ai
Клиентские библиотеки

DataForSEO

​

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

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.

Тело
обязательно
application/json
  • Тип: array object[]
    • keyword
      Тип: string
      обязательно

      Keyword; you can specify up to 700 characters

    • device
      Тип: string

      Device type: desktop or mobile

    • language_code
      Тип: string

      Search engine language code; required if language_name is not specified

    • language_name
      Тип: string

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

    • location_code
      Тип: integer

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

    • location_coordinate
      Тип: string

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

    • location_name
      Тип: string

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

Ответы
  • 200
    Тип: object

    Successful response

    • cost
      Тип: number

      Total tasks cost, USD

    • status_code
      Тип: integer

      General status code

    • status_message
      Тип: string

      General informational message

    • tasks
      Тип: array string[]

      Array of tasks

    • tasks_count
      Тип: integer

      The number of tasks in the tasks array

    • tasks_error
      Тип: integer

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

    • tasks[].cost
      Тип: number

      Cost of the task, USD

    • tasks[].data
      Тип: object

      Contains the same parameters specified in the POST request

    • tasks[].id
      Тип: string

      Task identifier

    • tasks[].path
      Тип: array string[]

      URL path

    • tasks[].result
      Тип: array string[]

      Array of HTML results

    • tasks[].result_count
      Тип: integer

      Number of elements in the result array

    • tasks[].result[].keyword
      Тип: string

      Keyword received in the POST array

    • tasks[].result[].language_code
      Тип: string

      Language code in the POST array

    • tasks[].result[].location_code
      Тип: integer

      Location code in the POST array

    • tasks[].result[].se_domain
      Тип: string

      Search engine domain in the POST array

    • tasks[].result[].type
      Тип: string

      Search engine type in the POST array

    • tasks[].status_code
      Тип: integer

      Task status code

    • tasks[].status_message
      Тип: string

      Task status message

    • tasks[].time
      Тип: string

      Execution time, seconds

    • 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/google/ai_mode/live/html
curl https://openapi.felo.ai/v1/beta/dataforseo/serp/google/ai_mode/live/html \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "keyword": "",
    "location_name": "",
    "location_code": 1,
    "location_coordinate": "",
    "language_name": "",
    "language_code": "",
    "device": ""
  }
]'
{
  "version": "string",
  "status_code": 1,
  "status_message": "string",
  "time": "string",
  "cost": 1,
  "tasks_count": 1,
  "tasks_error": 1,
  "tasks": [
    "string"
  ],
  "tasks[].id": "string",
  "tasks[].status_code": 1,
  "tasks[].status_message": "string",
  "tasks[].time": "string",
  "tasks[].cost": 1,
  "tasks[].result_count": 1,
  "tasks[].path": [
    "string"
  ],
  "tasks[].data": {},
  "tasks[].result": [
    "string"
  ],
  "tasks[].result[].keyword": "string",
  "tasks[].result[].type": "string",
  "tasks[].result[].se_domain": "string",
  "tasks[].result[].location_code": 1,
  "tasks[].result[].language_code": "string"
}
Live Google Ai Mode SERP HTML