# Получение расширенного результата Gemini LLM Scraper по id

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/ai_optimization/gemini/llm_scraper/task_get/advanced/{id}`

**Tags:** DataForSEO

Получает поставленный в очередь скрейпинг Gemini по `id` в разобранном виде. Та же структура, что у `post_dataforseo_ai_gemini_llm_scraper_live`. Упаковано в конверт DataForSEO: данные в `tasks[0].result`, результат в `tasks[0].status_code` — отклонённый запрос всё равно возвращает HTTP 200.

### Справочная информация о цене

- Тарификация: по заявленной стоимости ответа.
- Ориентировочная стоимость запроса: 0.012 USD.
- Справочный коэффициент клиента: 1.0. Не применяйте его повторно к уже рассчитанной сумме клиента.

Только справочные метаданные, а не предложение для аккаунта, гарантированная цена или лимит расходов. Кредиты ресурсов — не кредиты Felo. Окончательные списания определяются записями биллинга Felo.

## Base URL

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

## Authentication

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

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string | <em>идентификатор задачи</em><br><a href="https://en.wikipedia.org/wiki/Universally_unique_identifier">универсальный уникальный идентификатор (UUID)</a><br><strong>уникальный идентификатор задачи в нашей системе</strong><br>в течение <strong>30 дней</strong> вы сможете в любое время запросить по нему результаты задачи |

## Responses

### 200 — Успешная операция

Headers:
- `X-Request-Id` (string) — Идентификатор запроса, который нужно указать при обращении в поддержку Felo.

**application/json**

Schema: object | null

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

### 400 — Запрос не удалось обработать. Проверьте параметры запроса.

### 401 — Требуется действительный API-ключ Felo.

### 402 — Запрос не может быть выполнен: не выполнено требование биллинга.

### 403 — Аккаунту не разрешено выполнять эту операцию.

### 429 — Достигнут лимит запросов или расходов.

### 502 — Сервис не смог выполнить запрос.

### 503 — API или сервис биллинга временно недоступны.

### 504 — Истекло время ожидания обработки запроса.

### default — Ответ с ошибкой; сквозные ответы upstream могут использовать форматы провайдера

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResponseInfo`

```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_AiOptimizationGeminiLlmScraperTaskGetAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>массив задач</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResultInfo`

```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>"
    },
    "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>содержимое результата, отформатированное на <a href=\"https://en.wikipedia.org/wiki/Markdown\" target=\"_blank\">языке разметки markdown</a>"
    },
    "sources": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_SourceInfo"
          }
        ]
      },
      "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>gemini_text</code>, <code>gemini_table</code>, <code>gemini_images</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_BaseGeminiLlmScraperElementItem"
          }
        ]
      },
      "description": "<em>элементы, содержащиеся в элементе</em>"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedTaskInfo`

```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_AiOptimizationGeminiLlmScraperTaskGetAdvancedResultInfo"
              }
            ]
          },
          "description": "<em>массив результатов</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseGeminiLlmScraperElementItem

`#/components/schemas/Response36Afe1097B20_BaseGeminiLlmScraperElementItem`

```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>абсолютная позиция среди всех элементов в SERP"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>содержимое элемента в формате markdown</em><br>содержимое результата, отформатированное на <a href=\"https://en.wikipedia.org/wiki/Markdown\" target=\"_blank\">языке разметки markdown</a>"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "gemini_text": "#/components/schemas/Response36Afe1097B20_GeminiTextElementItem",
      "gemini_table": "#/components/schemas/Response36Afe1097B20_GeminiTableElementItem",
      "gemini_images": "#/components/schemas/Response36Afe1097B20_GeminiImagesElementItem"
    }
  }
}
```

### 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": "общая стоимость задач, 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": "код состояния задачи\nформируется DataForSEO, может находиться в диапазоне 10000-60000\nПолный список кодов ответа можно найти здесь."
    },
    "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-запросе"
    }
  }
}
```

### 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>содержимое результата, отформатированное на <a href=\"https://en.wikipedia.org/wiki/Markdown\" target=\"_blank\">языке разметки markdown</a>"
    }
  }
}
```
