# خراش‌دهنده زنده ChatGPT LLM

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/ai_optimization/chat_gpt/llm_scraper/live/advanced`

**Tags:** DataForSEO

از ChatGPT یک `keyword` را همان‌طور که کاربر می‌پرسد می‌پرسد و پاسخ تجزیه‌شده را برمی‌گرداند. `keyword`، `location_code`، `language_code`، `model`، `datetime`، `markdown`، `sources`، `fan_out_queries` و `brand_entities` را برمی‌گرداند — `markdown` پاسخ همان‌طور که دستیار نمایش داده است، `sources` صفحه‌هایی که استناد کرده، و `brand_entities` برندهایی که نام برده است. `force_web_search` آن را وادار می‌کند مرور کند نه اینکه از آموزش پاسخ دهد. در پاکت DataForSEO پیچیده شده است: داده در `tasks[0].result` و نتیجه در `tasks[0].status_code` — درخواست ردشده همچنان HTTP 200 برمی‌گرداند. این نقطه پایانی برای «ChatGPT درباره ما چه می‌گوید» است؛ برای شمارش اشاره‌ها در پاسخ‌های متعدد به‌جای خراشیدن مکرر از `post_dataforseo_ai_llm_mentions_aggregated_metrics_live` استفاده کنید. شکل خام `post_dataforseo_ai_chat_gpt_llm_scraper_live_html` است.

### مرجع قیمت‌گذاری

- اندازه‌گیری: هزینه پاسخ گزارش‌شده.
- برآورد درخواست مرجع: 0.004 دلار آمریکا.
- ضریب مشتری مرجع: 1.0. ضریب‌های مرجع را نباید دوباره روی مبالغ تسویه‌شده مشتری اعمال کرد.

فقط فراداده مرجع، نه نقل‌قول حساب، نه قیمت تضمین‌شده و نه سقف هزینه. اعتبار منابع، اعتبار Felo نیست. هزینه‌های نهایی تابع سوابق صورت‌حساب Felo است.

## Related links

- [این مقاله مرکز راهنمایی](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [زبان نشانه‌گذاری markdown](<https://en.wikipedia.org/wiki/Markdown>)

## 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": {
          "keyword": {
            "type": "string",
            "description": "<em>keyword</em><br><strong>فیلد الزامی</strong><br>می‌توانید <strong>حداکثر 2000 کاراکتر</strong> در فیلد <code>keyword</code> تعیین کنید<br>همه %## رمزگشایی می‌شوند (همچنین کاراکتر ‘+’ به فاصله رمزگشایی می‌شود)<br>اگر لازم است از کاراکتر “%” در <code>keyword</code> استفاده کنید، آن را به‌صورت “%25” بنویسید;<br>اگر لازم است از کاراکتر “+” در <code>keyword</code> استفاده کنید، آن را به‌صورت “%2B” بنویسید<p>درباره قواعد و محدودیت‌های فیلدهای <code>keyword</code> و <code>keywords</code> در APIهای DataForSEO در این مقاله مرکز راهنمایی بیشتر بدانید"
          },
          "location_name": {
            "type": "string",
            "description": "<em>نام کامل موقعیت موتور جستجو</em><br><strong>فیلد الزامی اگر تعیین نکنید</strong> <code>location_code</code><br><strong>اگر از این فیلد استفاده کنید، نیازی به تعیین <code>location_code</code> نیست</strong><br>می‌توانید فهرست موقعیت‌های موجود موتور جستجو را همراه با <code>location_name</code> آن‌ها با ارسال یک درخواست جداگانه به <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations</code> دریافت کنید<br>مثال:<br><code class=\"long-string\">United States</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>کد موقعیت موتور جستجو</em><br><strong>فیلد الزامی اگر تعیین نکنید</strong> <code>location_name</code><br><strong>اگر از این فیلد استفاده کنید، نیازی به تعیین <code>location_name</code> نیست</strong><br>می‌توانید فهرست موقعیت‌های موجود موتورهای جستجو را همراه با <code>location_code</code> آن‌ها با ارسال یک درخواست جداگانه به <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations</code> دریافت کنید<br>مثال:<br><code class=\"long-string\">2840</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>نام کامل زبان موتور جستجو</em><br><strong>فیلد الزامی اگر <code>language_code</code> را تعیین نکنید;</strong><br>اگر از این فیلد استفاده کنید، نیازی به تعیین <code>language_code</code> نیست;<br>می‌توانید فهرست زبان‌های موجود موتور جستجو را همراه با <code>language_name</code> آن‌ها با ارسال یک درخواست جداگانه به <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages</code> دریافت کنید"
          },
          "language_code": {
            "type": "string",
            "description": "<em>کد زبان موتور جستجو</em><br><strong>فیلد الزامی اگر <code>language_name</code> را تعیین نکنید;</strong><br>اگر از این فیلد استفاده کنید، نیازی به تعیین <code>language_name</code> نیست;<br>می‌توانید فهرست زبان‌های موجود موتور جستجو را همراه با <code>language_code</code> آن‌ها با ارسال یک درخواست جداگانه به <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages</code> دریافت کنید"
          },
          "force_web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>اجبار عامل هوش مصنوعی به استفاده از جستجوی وب</em><br>فیلد اختیاری<br>وقتی فعال باشد، مدل هوش مصنوعی موظف است به اطلاعات روز وب دسترسی پیدا کند و به آن‌ها استناد کند;<br>مقدار پیش‌فرض: <code>false</code>;<br><strong>توجه:</strong> حتی اگر پارامتر روی <code>true</code> تنظیم شود، تضمینی برای استناد به منابع وب در پاسخ وجود ندارد"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>شناسه وظیفه تعریف‌شده توسط کاربر</em><br>فیلد اختیاری<br><em>محدودیت کاراکتر 255 است</em><br>می‌توانید از این پارامتر برای شناسایی وظیفه و تطبیق آن با نتیجه استفاده کنید<br>مقدار <code>tag</code> مشخص‌شده را در شیء <code>data</code> پاسخ پیدا می‌کنید"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "keyword": "albert einstein"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "keyword": "albert einstein"
    }
  ]
}
```

## Responses

### 200 — عملیات موفق

Headers:
- `X-Request-Id` (string) — شناسه درخواست برای درج هنگام تماس با پشتیبانی Felo.

**application/json**

Schema: object | null

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

### 400 — درخواست پردازش نشد. پارامترهای درخواست را بررسی کنید.

### 401 — یک کلید API معتبر Felo لازم است.

### 402 — درخواست ادامه نمی‌یابد چون یک الزام صورت‌حساب برآورده نشده است.

### 403 — حساب مجاز به انجام این عملیات نیست.

### 429 — به سقف درخواست یا هزینه رسیده‌اید.

### 502 — سرویس نتوانست درخواست را کامل کند.

### 503 — سرویس API یا صورت‌حساب موقتاً در دسترس نیست.

### 504 — سرویس هنگام پردازش درخواست به پایان مهلت رسید.

### default — پاسخ خطا؛ پاسخ‌های عبوری بالادست ممکن است از قالب‌های ارائه‌دهنده استفاده کنند

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResponseInfo`

```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_AiOptimizationChatGptLlmScraperLiveAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>آرایه‌ای از وظایف</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>کلمه کلیدی دریافت‌شده در آرایه POST<br></em><strong>کلمه کلیدی با %## رمزگشایی‌شده بازگردانده می‌شود (نماد + به فاصله رمزگشایی می‌شود)</strong>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>کد مکان در آرایه POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>کد زبان در آرایه POST</em>"
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نسخه مدل را نشان می‌دهد</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نشانی URL مستقیم نتایج موتور جستجو<br></em>می‌توانید از آن استفاده کنید تا مطمئن شوید نتایج دقیقی ارائه کرده‌ایم"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاریخ و زمانی که نتیجه دریافت شده است</em><br>در قالب UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>مثال:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>محتوای عنصر در قالب markdown</em><br>محتوای نتیجه قالب‌بندی‌شده با زبان نشانه‌گذاری markdown"
    },
    "search_results": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ChatgptSearchResult"
          }
        ]
      },
      "description": "<em>آرایه نتایج جستجو</em><br>همه خروجی‌های جستجوی وب که مدل هنگام جستجوی اطلاعات بازیابی کرده است، شامل تکرارها و ورودی‌های استفاده‌نشده"
    },
    "sources": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_SourceInfo"
          }
        ]
      },
      "description": "<em>آرایه‌ای از منابع</em><br>منابعی که مدل واقعاً در پاسخ نهایی خود به آن‌ها استناد یا اتکا کرده است"
    },
    "fan_out_queries": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>آرایه‌ای از پرس‌وجوهای انشعابی</em><br>حاوی پرس‌وجوهای جستجوی مرتبط مشتق‌شده از پرس‌وجوی اصلی برای ارائه پاسخ جامع‌تر است"
    },
    "brand_entities": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ChatGptBrandEntity"
          }
        ]
      },
      "description": "<em>آرایه‌ای از موجودیت‌های برند</em><br>حاوی اطلاعاتی درباره برندهای ذکرشده در پاسخ است"
    },
    "se_results_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> مجموع تعداد نتایج</em>",
      "format": "int64"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>انواع نتایج جستجو</em><br>حاوی انواع نتایج جستجو (<code>items</code>) یافت‌شده در SERP است.<br>انواع آیتم ممکن:<br><code>chat_gpt_text</code>، <code>chat_gpt_table</code>، <code>chat_gpt_navigation_list</code>، <code>chat_gpt_images</code>، <code>chat_gpt_local_businesses</code>، <code>chat_gpt_products</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد نتایج بازگردانده‌شده در آرایه <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseChatGptLlmScraperElementItem"
          }
        ]
      },
      "description": "<em>بلوک‌های نتایج ChatGPT</em>"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedTaskInfo`

```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_AiOptimizationChatGptLlmScraperLiveAdvancedResultInfo"
              }
            ]
          },
          "description": "<em>آرایه‌ای از نتایج</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseChatGptLlmScraperElementItem

`#/components/schemas/Response36Afe1097B20_BaseChatGptLlmScraperElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع عنصر"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>رتبه گروهی در SERP</em><br>موقعیت درون گروهی از عناصر با مقادیر <code>type</code> یکسان<br>موقعیت عناصر با مقادیر <code>type</code> متفاوت از <code>rank_group</code> حذف می‌شود"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>رتبه مطلق در SERP</em><br>موقعیت مطلق در میان همه عناصر"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "chat_gpt_text": "#/components/schemas/Response36Afe1097B20_ChatGptTextElementItem",
      "chat_gpt_table": "#/components/schemas/Response36Afe1097B20_ChatGptTableElementItem",
      "chat_gpt_navigation_list": "#/components/schemas/Response36Afe1097B20_ChatGptNavigationListElementItem",
      "chat_gpt_images": "#/components/schemas/Response36Afe1097B20_ChatGptImagesElementItem",
      "chat_gpt_products": "#/components/schemas/Response36Afe1097B20_ChatGptProductsElementItem",
      "chat_gpt_local_businesses": "#/components/schemas/Response36Afe1097B20_ChatGptLocalBusinessesElementItem",
      "chat_gpt_ad": "#/components/schemas/Response36Afe1097B20_ChatGptAdElementItem"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "نسخه فعلی API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "کد وضعیت عمومی\nفهرست کامل کدهای پاسخ را اینجا پیدا می‌کنید"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "پیام اطلاعاتی عمومی\nفهرست کامل پیام‌های اطلاعاتی عمومی را اینجا پیدا می‌کنید"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "زمان کل اجرا، بر حسب ثانیه"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "هزینه کل وظایف، دلار آمریکا",
      "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": "کد وضعیت وظیفه\nتوسط DataForSEO تولید می‌شود و می‌تواند در بازه زیر باشد: 10000-60000\nفهرست کامل کدهای پاسخ را اینجا پیدا می‌کنید"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "پیام اطلاعاتی وظیفه\nفهرست کامل پیام‌های اطلاعاتی عمومی را اینجا پیدا می‌کنید"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "زمان اجرا، ثانیه"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "هزینه کل وظایف، دلار آمریکا",
      "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 تعیین کرده‌اید"
    }
  }
}
```

### Response36Afe1097B20_ChatGptBrandEntity

`#/components/schemas/Response36Afe1097B20_ChatGptBrandEntity`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع عنصر"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نام برند</em>"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>دسته برند</em>"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نام برند در قالب markdown</em><br>شامل نام برند قالب‌بندی‌شده به زبان نشانه‌گذاری markdown است"
    },
    "urls": {
      "type": [
        "object",
        "null"
      ],
      "description": "<em> آرایه‌ای از نشانی‌های URL و دامنه‌های مرتبط با برند</em>"
    }
  }
}
```

### Response36Afe1097B20_ChatgptSearchResult

`#/components/schemas/Response36Afe1097B20_ChatgptSearchResult`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع عنصر"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نشانی URL نتیجه</em>"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>دامنه نتیجه</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>عنوان نتیجه</em>"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>توضیح نتیجه</em>"
    },
    "breadcrumb": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>مسیر پیمایش (breadcrumb)</em>"
    }
  }
}
```

### Response36Afe1097B20_SourceInfo

`#/components/schemas/Response36Afe1097B20_SourceInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع عنصر"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>عنوان منبع</em>"
    },
    "snippet": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>توضیحات منبع</em>"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>دامنه منبع در SERP</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نشانی URL منبع</em>"
    },
    "thumbnail": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تصویر بندانگشتی منبع</em>"
    },
    "source_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نام منبع</em>"
    },
    "publication_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاریخ و زمان انتشار نتیجه</em><br>در قالب: “year-month-date:minutes:UTC_difference_hours:UTC_difference_minutes”<br>مثال:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>محتوای عنصر در قالب markdown</em><br>محتوای نتیجه قالب‌بندی‌شده با زبان نشانه‌گذاری markdown"
    }
  }
}
```
