# Отримати результати Google Shopping Sellers за id

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/merchant/google/sellers/task_get/advanced/{id}`

**Tags:** DataForSEO

Відповідь обгорнуто в конверт DataForSEO: дані в `tasks[0].result`, результат у `tasks[0].status_code` — відхилений запит усе одно повертає HTTP 200. Це подання для порівняння цін; сам товар — `get_dataforseo_merchant_google_product_info_fetch`.

### Довідкові ціни

- Тарифікація: вартість відповіді за даними постачальника.
- Довідкова оцінка запиту: USD 0.012.
- Довідковий множник для клієнта: 1.0. Не застосовуйте його повторно до вже розрахованої суми клієнта.

Лише довідкові метадані, а не котирування для облікового запису, гарантована ціна чи ліміт витрат. Кредити ресурсів — це не кредити Felo. Остаточні списання здійснюються за записами білінгу Felo.

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)
- [цьому посібнику довідкового центру](<https://dataforseo.com/help-center/product-id-google-shopping>)
- [XPath](<https://en.wikipedia.org/wiki/XPath>)
- [Google Shopping Sellers Ad URL](<https://docs.dataforseo.com/v3/merchant/google/sellers/ad_url/>)
- [ISO](<https://en.wikipedia.org/wiki/ISO_4217>)

## 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><strong>унікальний ідентифікатор завдання в нашій системі у форматі UUID</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_MerchantGoogleSellersTaskGetAdvancedResponseInfo"
    }
  ]
}
```

### 400 — Не вдалося обробити запит. Перевірте параметри запиту.

### 401 — Потрібен дійсний API-ключ Felo.

### 402 — Запит неможливо виконати: умови білінгу не виконано.

### 403 — Обліковий запис не має дозволу на цю операцію.

### 429 — Досягнуто ліміту запитів або витрат.

### 502 — Служба не змогла виконати запит.

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

### 504 — Час очікування обробки запиту вичерпано.

### default — Відповідь із помилкою; наскрізні відповіді апстріму можуть використовувати формати постачальника

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseMerchantGoogleShoppingSellersElementItem

`#/components/schemas/Response36Afe1097B20_BaseMerchantGoogleShoppingSellersElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "тип елемента"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>позиція в групі елементів з однаковими значеннями <code>type</code></em><br>позиції елементів з іншими значеннями <code>type</code> виключаються з <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> абсолютний ранг у SERP</em><br>абсолютна позиція серед усіх елементів, знайдених у Google Shopping SERP"
    },
    "position": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>вирівнювання елемента в Google Shopping SERP</em><br>можливі значення:<br><code>left</code>, <code>right</code>"
    },
    "xpath": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>XPath елемента</em>"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>домен у SERP</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>назва товару</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL-переадресація Google Shopping на сторінку товару на сайті продавця</em><br>якщо ви хочете отримати URL оголошення, що веде на сторінку товару на сайті продавця, зверніться до ендпоінта Google Shopping Sellers Ad URL"
    },
    "details": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>подробиці та спеціальні пропозиції</em><br>якщо подробиць немає, значення буде <code>null</code>"
    },
    "base_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>ціна товару без урахування податку та доставки</em>"
    },
    "tax": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>сума податку</em><br>податок вказується як фактична сума грошей, а не як відсоток"
    },
    "shipping_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>вартість доставки товару</em>"
    },
    "total_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>ціна товару з урахуванням податку та доставки</em>",
      "format": "int64"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>валюта у форматі ISO</em><br>приклад:<br><code>USD</code>"
    },
    "seller_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>назва продавця</em><br>назва компанії, яка розмістила відповідний товар у Google Shopping"
    },
    "shop_ad_aclk": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>унікальний параметр реферального переходу за оголошенням</em><br>за допомогою цього параметра можна отримати URL оголошення в Google Shopping Sellers Ad URL"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "shops_list": "#/components/schemas/Response36Afe1097B20_GoogleShoppingSellersShopsListElementItem",
      "buy_on_google": "#/components/schemas/Response36Afe1097B20_GoogleShoppingSellersBuyOnGoogleElementItem"
    }
  }
}
```

### 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_MerchantGoogleSellersTaskGetAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_MerchantGoogleSellersTaskGetAdvancedResponseInfo`

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

### Response36Afe1097B20_MerchantGoogleSellersTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_MerchantGoogleSellersTaskGetAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "product_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em><code>product_id</code>, отриманий у масиві POST</em><br>докладніше про параметр — у цьому посібнику довідкового центру"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "тип елемента"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>домен пошукової системи в масиві POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>код місцеположення в масиві POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>код мови в масиві POST</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>прямий URL до результатів Google Shopping</em><br>його можна використовувати, щоб переконатися, що ми надали точні результати"
    },
    "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>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>назва товару</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL сторінки товару</em>"
    },
    "image_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL зображення товару</em>"
    },
    "rating": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_RatingInfo"
        }
      ],
      "description": "<em>рейтинг товару</em><br>показник популярності товару на основі відгуків про товар"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>типи результатів пошуку, знайдених у Google Shopping SERP</em><br>містить типи всіх результатів пошуку (<code>items</code>), знайдених у поверненому SERP<br>можливі типи елементів:<br><code>shops_list</code>, <code>buy_on_google</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_BaseMerchantGoogleShoppingSellersElementItem"
          }
        ]
      },
      "description": "<em>елементи в SERP</em>"
    }
  }
}
```

### Response36Afe1097B20_MerchantGoogleSellersTaskGetAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_MerchantGoogleSellersTaskGetAdvancedTaskInfo`

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

### Response36Afe1097B20_RatingInfo

`#/components/schemas/Response36Afe1097B20_RatingInfo`

```json
{
  "properties": {
    "rating_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "тип рейтингу\nтут можна знайти такі елементи: Max5, Percents, CustomMax"
    },
    "value": {
      "type": [
        "number",
        "null"
      ],
      "description": "значення рейтингу",
      "format": "double"
    },
    "votes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "кількість відгуків",
      "format": "int64"
    },
    "rating_max": {
      "type": [
        "integer",
        "null"
      ],
      "description": "максимальне значення для rating_type"
    }
  }
}
```
