# Lấy kết quả Google Shopping Sellers theo id

**API:** Data API

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

**Tags:** DataForSEO

Được bọc trong phong bì của DataForSEO: dữ liệu ở `tasks[0].result`, kết quả ở `tasks[0].status_code` - yêu cầu bị từ chối vẫn trả về HTTP 200. Đây là góc nhìn so sánh giá; bản thân sản phẩm là `get_dataforseo_merchant_google_product_info_fetch`.

### Tham chiếu giá

- Đo lường: Chi phí phản hồi được báo cáo.
- Ước tính tham chiếu cho mỗi yêu cầu: USD 0.012.
- Hệ số khách hàng tham chiếu: 1.0. Không áp dụng lại cho số tiền khách hàng đã quyết toán.

Chỉ là siêu dữ liệu tham chiếu, không phải báo giá cho tài khoản, mức giá được bảo đảm hay hạn mức chi tiêu. Tín dụng tài nguyên không phải tín dụng Felo. Khoản phí cuối cùng tuân theo bản ghi thanh toán của Felo.

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)
- [hướng dẫn trung tâm trợ giúp này](<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>mã định danh tác vụ</em><br><strong>mã định danh tác vụ duy nhất trong hệ thống của chúng tôi ở định dạng UUID</strong><br>bạn có thể dùng nó trong vòng <strong>30 ngày</strong> để yêu cầu kết quả của tác vụ bất kỳ lúc nào |

## Responses

### 200 — Thao tác thành công

Headers:
- `X-Request-Id` (string) — Mã định danh yêu cầu cần bao gồm khi liên hệ bộ phận hỗ trợ Felo.

**application/json**

Schema: object | null

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

### 400 — Không thể xử lý yêu cầu. Hãy kiểm tra các tham số yêu cầu.

### 401 — Cần có khóa API Felo hợp lệ.

### 402 — Không thể tiếp tục yêu cầu vì chưa đáp ứng yêu cầu thanh toán.

### 403 — Tài khoản không được phép thực hiện thao tác này.

### 429 — Đã đạt giới hạn yêu cầu hoặc giới hạn chi tiêu.

### 502 — Dịch vụ không thể hoàn tất yêu cầu.

### 503 — API hoặc dịch vụ thanh toán tạm thời không khả dụng.

### 504 — Dịch vụ đã hết thời gian chờ khi xử lý yêu cầu.

### default — Phản hồi lỗi; phản hồi chuyển tiếp từ thượng nguồn có thể dùng định dạng của nhà cung cấp

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseMerchantGoogleShoppingSellersElementItem

`#/components/schemas/Response36Afe1097B20_BaseMerchantGoogleShoppingSellersElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "loại phần tử"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>vị trí trong một nhóm phần tử có cùng giá trị <code>type</code></em><br>vị trí của các phần tử có giá trị <code>type</code> khác nhau bị bỏ khỏi <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> thứ hạng tuyệt đối trong SERP</em><br>vị trí tuyệt đối trong tất cả phần tử được tìm thấy trong Google Shopping SERP"
    },
    "position": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>căn chỉnh của phần tử trong Google Shopping SERP</em><br>giá trị khả dụng:<br><code>left</code>, <code>right</code>"
    },
    "xpath": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>XPath của phần tử</em>"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tên miền trong SERP</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tiêu đề sản phẩm</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL Google Shopping chuyển tiếp tới trang sản phẩm trên website của người bán</em><br>nếu bạn muốn lấy URL của quảng cáo chuyển tiếp tới trang sản phẩm trên website của người bán, hãy tham khảo endpoint Google Shopping Sellers Ad URL"
    },
    "details": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>thông tin chi tiết và ưu đãi đặc biệt</em><br>nếu không có thông tin chi tiết, giá trị sẽ là <code>null</code>"
    },
    "base_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>giá sản phẩm chưa gồm thuế và phí vận chuyển</em>"
    },
    "tax": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>số tiền thuế</em><br>thuế được chỉ định là số tiền thực tế, không phải phần trăm"
    },
    "shipping_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>giá vận chuyển sản phẩm</em>"
    },
    "total_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>giá sản phẩm đã gồm thuế và phí vận chuyển</em>",
      "format": "int64"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>đơn vị tiền tệ theo định dạng ISO</em><br>ví dụ:<br><code>USD</code>"
    },
    "seller_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tên của người bán</em><br>tên của công ty đã đặt sản phẩm tương ứng trên Google Shopping"
    },
    "shop_ad_aclk": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tham số giới thiệu nhấp quảng cáo duy nhất</em><br>dùng tham số này, bạn có thể lấy URL của quảng cáo trong 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": "phiên bản hiện tại của API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "mã trạng thái chung; bạn có thể tìm danh sách đầy đủ các mã phản hồi tại đây"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "thông điệp thông tin chung; bạn có thể tìm danh sách đầy đủ các thông điệp thông tin chung tại đây"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "tổng thời gian thực thi, giây"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "tổng chi phí tác vụ, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "số lượng tác vụ trong mảng tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "số lượng tác vụ trong mảng tasks được trả về kèm lỗi",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "mã định danh tác vụ; mã định danh tác vụ duy nhất trong hệ thống của chúng tôi ở định dạng UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "mã trạng thái của tác vụ do DataForSEO tạo; có thể nằm trong khoảng sau: 10000-60000; bạn có thể tìm danh sách đầy đủ các mã phản hồi tại đây"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "thông điệp thông tin của tác vụ; bạn có thể tìm danh sách đầy đủ các thông điệp thông tin chung tại đây"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "thời gian thực thi, giây"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "tổng chi phí tác vụ, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "số phần tử trong mảng kết quả",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Đường dẫn URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "chứa các tham số giống như bạn đã chỉ định trong yêu cầu 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>mảng tác vụ</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_MerchantGoogleSellersTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_MerchantGoogleSellersTaskGetAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "product_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em><code>product_id</code> nhận được trong mảng POST</em><br>tìm hiểu thêm về tham số trong hướng dẫn trung tâm trợ giúp này"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "loại phần tử"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tên miền công cụ tìm kiếm trong mảng POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>mã vị trí trong mảng POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>mã ngôn ngữ trong mảng POST</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL trực tiếp đến kết quả Google Shopping</em><br>bạn có thể dùng URL này để đảm bảo rằng chúng tôi đã cung cấp kết quả chính xác"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ngày và giờ nhận được kết quả</em><br>theo định dạng UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>ví dụ:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tiêu đề của sản phẩm</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL đến trang sản phẩm</em>"
    },
    "image_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL đến hình ảnh sản phẩm</em>"
    },
    "rating": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_RatingInfo"
        }
      ],
      "description": "<em>xếp hạng sản phẩm</em><br>tỷ lệ phổ biến của sản phẩm dựa trên đánh giá sản phẩm"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>các loại kết quả tìm kiếm được tìm thấy trong SERP Google Shopping</em><br>chứa các loại của tất cả kết quả tìm kiếm (<code>items</code>) được tìm thấy trong SERP trả về<br>các loại mục khả dụng:<br><code>shops_list</code>, <code>buy_on_google</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>số kết quả được trả về trong mảng <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseMerchantGoogleShoppingSellersElementItem"
          }
        ]
      },
      "description": "<em>các mục trong 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>mảng kết quả</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_RatingInfo

`#/components/schemas/Response36Afe1097B20_RatingInfo`

```json
{
  "properties": {
    "rating_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "loại xếp hạng\ntại đây bạn có thể tìm thấy các phần tử sau: Max5, Percents, CustomMax"
    },
    "value": {
      "type": [
        "number",
        "null"
      ],
      "description": "giá trị của xếp hạng",
      "format": "double"
    },
    "votes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "số lượng phản hồi",
      "format": "int64"
    },
    "rating_max": {
      "type": [
        "integer",
        "null"
      ],
      "description": "giá trị tối đa cho một rating_type"
    }
  }
}
```
