The AI Summary endpoint of SERP API is designed to help you gather insights from search engine results by providing a comprehensive summary of search engine results and pages featured across them. Furthermore, this endpoint can generate a relevant response to the specified prompt.
AI Summary employs a LLM (Large Language Model) algorithm to generate text based on the following input parameters:
Organic SERP results. Our algorithm takes a few top result snippets (usually five) from SERPs.
SERP features. By default, the algorithm will consider the following extra features, in addition to organic
results: answer_box
, knowledge_graph
, featured_snippet
. If you want to consider only organic
results, you can set the support_extra
parameter in the request to false
.
Page content. You can improve the result by fetching and considering the content of pages ranked in organic search results. Just set the fetch_content
parameter to true
.Note that pages related to the extra SERP features will not be considered.
Prompt. By specifying a prompt related to the keyword specified in the initial request, you will tailor the summary to your needs and get answers to any question relate to the certain SERP.
To use the AI Summary endpoint, specify the ID of the SERP task which you want our AI to summarize. The new endpoint works in the Live mode, which means you can define all necessary parameters and receive a summary with a single POST request.
Example of the result:
{
"version": "0.1.20221214",
"status_code": 20000,
"status_message": "Ok.",
"time": "20.6765 sec.",
"cost": 0.01,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "07031743-1535-0559-0000-6e58e03c9a8a",
"status_code": 20000,
"status_message": "Ok.",
"time": "20.6074 sec.",
"cost": 0.01,
"result_count": 1,
"path": [
"v3",
"serp",
"ai_summary"
],
"data": {
"api": "serp",
"function": "ai_summary",
"task_id": "07031739-1535-0139-0000-9d1e639a5b7d",
"prompt": "explain what DataForSEO is",
"include_links": true,
"fetch_content": true
},
"result": [
{
"items_count": 1,
"items": [
{
"summary": "DataForSEO is a powerful API stack that provides comprehensive SEO and digital marketing data solutions. It offers various APIs for different purposes, including SERP API, Google Ads API, Google Trends API, Domain Analytics API, On-Page API, DataForSEO Labs API, Backlinks API, and Merchant API.\nThe SERP API allows users to get a full overview of search engine results pages (SERP) and keyword rankings for any location and language. The Google Ads API provides data from Google Keyword Planner, including daily impressions, CPC, click estimation, search volume, competition level, and more for a bulk of keywords. The Google Trends API helps eliminate guesswork by synthesizing market research and SEO data to identify, compare, and predict keyword popularity trends across various platforms like YouTube, Google Search, Images, News, and Shopping.\nThe Domain Analytics API offers a 360° overview of any website, including monitoring Whois records, competitor traffic, and tech stacks. The On-Page API provides data for on-page analytics, allowing users to analyze any website for a multitude of parameters. The DataForSEO Labs API offers advanced search analytics, providing billions of keyword ideas enriched with relevant data and search visibility analytics.\nThe Backlinks API provides accurate and up-to-date backlink data from DataForSEO's rapidly growing link index. It features nine endpoints that can facilitate the process of analyzing backlinks. Lastly, the Merchant API powers up e-commerce analytics with data from Amazon and Google Shopping, providing essential data for e-commerce solutions, from pricing analysis to assortment optimization.\nDataForSEO is the leading provider of SEO data in the marketing technology industry. With an API-led approach to data delivery, DataForSEO enables SEO-software companies and agencies to build their dream SEO software, from simple rank tracking solutions to enterprise-level platforms. They have over 300 happy customers and provide a reliable and efficient data provider for SEO needs. [https://dataforseo.com/] [https://www.linkedin.com/company/dataforseo] [https://www.g2.com/products/dataforseo/reviews]"
}
]
}
]
}
]
}