数据 API / DataForSEO / SERP
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.
参数
没有路径、查询或请求头参数。
请求体
task_idstring必填Unique identifier of the associated task in UUID format; can be used within 30 days
promptstring可选Additional AI prompt; maximum 2000 characters
support_extraboolean可选Whether to consider extra SERP features such as answer_box, knowledge_graph, and featured_snippet; default true
fetch_contentboolean可选Whether to fetch content from pages in SERPs; default false
include_linksboolean可选Whether to include source links in the summary; default false
请求示例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/ai_summary" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"task_id": "<string>",
"prompt": "<string>",
"support_extra": false,
"fetch_content": false,
"include_links": false
}'响应
响应字段
versionstring可选The current version of the API
status_codeinteger可选General status code
status_messagestring可选General informational message
timestring可选Execution time, seconds
costnumber可选Total task cost, USD
tasksstring[]可选Array of tasks
idstring可选Task identifier in UUID format
status_codeinteger可选Task status code
status_messagestring可选Task status message
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 results
items_countinteger可选Number of items in the result array
itemsstring[]可选Items array
summarystring可选Generated summary