DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
SERP API AI Summary
Returns the AI overview Google shows above the results for a query on Google. Returns keyword, type, se_domain, location_code, language_code, check_url, datetime, spell, refinement_chips, item_types, items_count and items. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200.
- 型: array object[]
- task型: string
_id 必須Unique identifier of the associated task in UUID format; can be used within 30 days
- fetch型: boolean
_content Whether to fetch content from pages in SERPs; default false
- include型: boolean
_links Whether to include source links in the summary; default false
- prompt型: string
Additional AI prompt; maximum 2000 characters
- support型: boolean
_extra Whether to consider extra SERP features such as answer_box, knowledge_graph, and featured_snippet; default true
- 型: object200
Successful response
- 型: numbercost
Total task cost, USD
- 型: integerstatus
_code General status code
- 型: stringstatus
_message General informational message
- 型: array string[]tasks
Array of tasks
- 型: objecttasks[]
.data Contains the same parameters specified in the POST request
- 型: stringtasks[]
.id Task identifier in UUID format
- 型: array string[]tasks[]
.path URL path
- 型: array string[]tasks[]
.result Array of results
- 型: integertasks[]
.result _count Number of elements in the result array
- 型: array string[]tasks[]
.result[] .items Items array
- 型: integertasks[]
.result[] .items _count Number of items in the result array
- 型: stringtasks[]
.result[] .items[] .summary Generated summary
- 型: integertasks[]
.status _code Task status code
- 型: stringtasks[]
.status _message Task status message
- 型: stringtime
Execution time, seconds
- 型: stringversion
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.
curl https://openapi.felo.ai/v1/beta/dataforseo/serp/ai_summary \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"task_id": "",
"prompt": "",
"support_extra": true,
"fetch_content": true,
"include_links": true
}
]'
{
"version": "string",
"status_code": 1,
"status_message": "string",
"time": "string",
"cost": 1,
"tasks": [
"string"
],
"tasks[].id": "string",
"tasks[].status_code": 1,
"tasks[].status_message": "string",
"tasks[].result_count": 1,
"tasks[].path": [
"string"
],
"tasks[].data": {},
"tasks[].result": [
"string"
],
"tasks[].result[].items_count": 1,
"tasks[].result[].items": [
"string"
],
"tasks[].result[].items[].summary": "string"
}