資料 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