# SERP API AI सारांश

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/ai_summary`

**Tags:** DataForSEO

Google पर किसी क्वेरी के परिणामों के ऊपर Google जो AI overview दिखाता है, उसे लौटाता है। `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` और `items` लौटाता है। DataForSEO के envelope में लिपटा: डेटा `tasks[0].result` में, परिणाम `tasks[0].status_code` में — अस्वीकृत request फिर भी HTTP 200 लौटाता है।

### मूल्य संदर्भ

- मीटरिंग: सफल request के निश्चित लागत आधार पर
- संदर्भ request अनुमान: USD 0.02
- संदर्भ ग्राहक गुणक: 1.0। निपटाई गई ग्राहक राशि पर इसे दोबारा लागू न करें।

यह केवल संदर्भ मेटाडेटा है — खाते का कोटेशन, गारंटीशुदा मूल्य या खर्च सीमा नहीं। रिसोर्स क्रेडिट Felo क्रेडिट नहीं हैं। अंतिम शुल्क Felo बिलिंग रिकॉर्ड के अनुसार लगते हैं।

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "task_id": {
            "type": "string",
            "description": "<em>टास्क आइडेंटिफ़ायर</em><br><strong>आवश्यक फ़ील्ड</strong><br>UUID प्रारूप में संबंधित टास्क का अद्वितीय आइडेंटिफ़ायर<br>किसी भी समय टास्क के परिणाम माँगने के लिए आप इसे <strong>30 दिनों</strong> के भीतर उपयोग कर सकेंगे"
          },
          "prompt": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>AI प्रॉम्प्ट</em><br>वैकल्पिक फ़ील्ड<br>AI सारांशकर्ता के लिए अतिरिक्त कार्य;<br>किसी भी रूप का टेक्स्ट, प्रश्न या जानकारी जो AI को बताती है कि आप कौन सा response चाहते हैं;<br>आप अधिकतम जितने प्रतीक या अक्षर निर्दिष्ट कर सकते हैं: <code>2000</code>;<br><strong>नोट:</strong> आपका प्रॉम्प्ट SERP API पर POST request में निर्दिष्ट कीवर्ड से प्रासंगिक होना चाहिए"
          },
          "support_extra": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>अतिरिक्त SERP फ़ीचर का समर्थन करें</em><br>वैकल्पिक फ़ील्ड<br>यदि <code>true</code> पर सेट है, तो AI मॉडल <code>organic</code> परिणामों के अतिरिक्त निम्न अतिरिक्त SERP फ़ीचर पर विचार करेगा: <code>answer_box</code>, <code>knowledge_graph</code>, <code>featured_snippet</code>;<br>डिफ़ॉल्ट मान: <code>true</code>"
          },
          "fetch_content": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>SERP में पेजों से कंटेंट फ़ेच करें</em><br>वैकल्पिक फ़ील्ड<br>यदि <code>true</code> पर सेट है, तो API SERP परिणामों में दिखने वाले पेजों से कंटेंट फ़ेच करेगा और AI मॉडल परिणाम में सारांश बनाते समय इस कंटेंट पर विचार करेगा;<br>डिफ़ॉल्ट मान: <code>false</code>"
          },
          "include_links": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>सारांश में स्रोत लिंक शामिल करें</em><br>वैकल्पिक फ़ील्ड<br>यदि <code>true</code> पर सेट है, तो API response में <code>summary</code> फ़ील्ड में जनरेट किए गए सारांश के स्रोतों के लिंक होंगे;<br>डिफ़ॉल्ट मान: <code>false</code>"
          }
        },
        "example": [
          {
            "task_id": "07031739-1535-0139-0000-9d1e639a5b7d",
            "prompt": "explain what DataForSEO is",
            "include_links": true,
            "fetch_content": true
          }
        ]
      }
    ]
  },
  "example": [
    {
      "task_id": "07031739-1535-0139-0000-9d1e639a5b7d",
      "prompt": "explain what DataForSEO is",
      "include_links": true,
      "fetch_content": true
    }
  ]
}
```

## Responses

### 200 — सफल ऑपरेशन

Headers:
- `X-Request-Id` (string) — Felo सहायता से संपर्क करते समय शामिल करने के लिए request पहचानकर्ता।

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_SerpAiSummaryResponseInfo"
    }
  ]
}
```

### 400 — request संसाधित नहीं किया जा सका। request पैरामीटर जाँचें।

### 401 — एक वैध Felo API key आवश्यक है।

### 402 — request आगे नहीं बढ़ सकता क्योंकि बिलिंग आवश्यकता पूरी नहीं हुई है।

### 403 — खाते को यह ऑपरेशन करने की अनुमति नहीं है।

### 429 — request या खर्च की सीमा तक पहुँच गए हैं।

### 502 — सेवा request पूरा नहीं कर सकी।

### 503 — API या बिलिंग सेवा अस्थायी रूप से उपलब्ध नहीं है।

### 504 — request संसाधित करते समय सेवा का समय समाप्त हो गया।

### default — त्रुटि response; upstream passthrough response प्रोवाइडर फ़ॉर्मेट का उपयोग कर सकते हैं।

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API का वर्तमान संस्करण"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "सामान्य स्टेटस कोड\nresponse कोड की पूरी सूची यहाँ देखी जा सकती है"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "सामान्य सूचनात्मक संदेश\nसामान्य सूचनात्मक संदेशों की पूरी सूची यहाँ देखी जा सकती है"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "कुल निष्पादन समय, सेकंड"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "टास्क की कुल लागत, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks ऐरे में टास्क की संख्या",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "त्रुटि के साथ लौटाए गए tasks ऐरे में टास्क की संख्या",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "टास्क आइडेंटिफ़ायर\nहमारे सिस्टम में अद्वितीय टास्क आइडेंटिफ़ायर, UUID प्रारूप में"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "टास्क का स्टेटस कोड\nDataForSEO द्वारा जनरेट किया गया, यह निम्न श्रेणी में हो सकता है: 10000-60000\nresponse कोड की पूरी सूची यहाँ देखी जा सकती है"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "टास्क का सूचनात्मक संदेश\nसामान्य सूचनात्मक संदेशों की पूरी सूची यहाँ देखी जा सकती है"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "निष्पादन समय, सेकंड"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "टास्क की कुल लागत, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result ऐरे में एलिमेंट की संख्या",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL पथ"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "इसमें वही पैरामीटर हैं जो आपने POST request में निर्दिष्ट किए थे"
    }
  }
}
```

### Response36Afe1097B20_SerpAiSummaryItem

`#/components/schemas/Response36Afe1097B20_SerpAiSummaryItem`

```json
{
  "type": "object",
  "properties": {
    "summary": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>जनरेट किया गया सारांश</em><br>अनुरोध में निर्दिष्ट पैरामीटर के अनुसार AI मॉडल द्वारा जनरेट किया गया सारांश"
    }
  }
}
```

### Response36Afe1097B20_SerpAiSummaryResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpAiSummaryResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpAiSummaryTaskInfo"
              }
            ]
          },
          "description": "<em>टास्क का ऐरे</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpAiSummaryResultInfo

`#/components/schemas/Response36Afe1097B20_SerpAiSummaryResultInfo`

```json
{
  "type": "object",
  "properties": {
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>परिणाम ऐरे में आइटम की संख्या</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_SerpAiSummaryItem"
          }
        ]
      },
      "description": "<em>items ऐरे</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpAiSummaryTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpAiSummaryTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpAiSummaryResultInfo"
              }
            ]
          },
          "description": "<em>परिणामों का ऐरे</em>"
        }
      }
    }
  ]
}
```
