# 1688 API - Get 1688 sales statistics data

## API Overview

- Get product historical sales trend
- Get product historical price trend

## API URL

`GET https://api.tmapi.io/1688/item/statistics/sales`

## Request Parameters

### Query

| Field | Type | Explanation | Required |
| --- | --- | --- | --- |
| item_id | integer | Product ID | true |
| spec_id | string | sku spec id | false |

## Security Auth

> Please go to [Console-Account Center](https://console.tmapi.io/account/center) to get your apiToken.

> Add your apiToken to the request parameters. Please refer to the examples below.

## Request Example

```bash

curl --request GET 'https://api.tmapi.io/1688/item/statistics/sales?apiToken=xxxxxx&item_id=652702302959'

```

## Response Example

```json

{
  "code": 200,
  "msg": "success",
  "data": {
    "publish_time": "2024-06-27 09:22:26",
    "sales_quantity_30days": 3985,
    "sales_quantity_total": "1.5万+",
    "order_quantity_total": "3500+",
    "sales_trend": [
      {
        "date": "2025-06-24",
        "sales_quantity": 136,
        "order_quantity": 12
      },
      {
        "date": "2025-06-25",
        "sales_quantity": 157,
        "order_quantity": 35
      },
      {
        "date": "2025-06-26",
        "sales_quantity": 351,
        "order_quantity": 56
      },
      {
        "date": "2025-06-27",
        "sales_quantity": 32,
        "order_quantity": 27
      },
      {
        "date": "2025-06-28",
        "sales_quantity": 145,
        "order_quantity": 50
      },
      {
        "date": "2025-06-29",
        "sales_quantity": 33,
        "order_quantity": 19
      },
      {
        "date": "2025-06-30",
        "sales_quantity": 65,
        "order_quantity": 40
      },
      {
        "date": "2025-07-01",
        "sales_quantity": 44,
        "order_quantity": 25
      },
      {
        "date": "2025-07-02",
        "sales_quantity": 63,
        "order_quantity": 22
      },
      {
        "date": "2025-07-03",
        "sales_quantity": 43,
        "order_quantity": 36
      },
      {
        "date": "2025-07-04",
        "sales_quantity": 71,
        "order_quantity": 41
      },
      {
        "date": "2025-07-05",
        "sales_quantity": 57,
        "order_quantity": 28
      },
      {
        "date": "2025-07-06",
        "sales_quantity": 34,
        "order_quantity": 23
      },
      {
        "date": "2025-07-07",
        "sales_quantity": 129,
        "order_quantity": 50
      },
      {
        "date": "2025-07-08",
        "sales_quantity": 58,
        "order_quantity": 22
      },
      {
        "date": "2025-07-09",
        "sales_quantity": 58,
        "order_quantity": 34
      },
      {
        "date": "2025-07-10",
        "sales_quantity": 80,
        "order_quantity": 24
      },
      {
        "date": "2025-07-11",
        "sales_quantity": 559,
        "order_quantity": 29
      },
      {
        "date": "2025-07-12",
        "sales_quantity": 96,
        "order_quantity": 49
      },
      {
        "date": "2025-07-13",
        "sales_quantity": 32,
        "order_quantity": 26
      },
      {
        "date": "2025-07-14",
        "sales_quantity": 1188,
        "order_quantity": 34
      },
      {
        "date": "2025-07-15",
        "sales_quantity": 38,
        "order_quantity": 24
      },
      {
        "date": "2025-07-16",
        "sales_quantity": 37,
        "order_quantity": 18
      },
      {
        "date": "2025-07-17",
        "sales_quantity": 69,
        "order_quantity": 36
      },
      {
        "date": "2025-07-18",
        "sales_quantity": 60,
        "order_quantity": 35
      },
      {
        "date": "2025-07-19",
        "sales_quantity": 90,
        "order_quantity": 43
      },
      {
        "date": "2025-07-20",
        "sales_quantity": 77,
        "order_quantity": 43
      },
      {
        "date": "2025-07-21",
        "sales_quantity": 78,
        "order_quantity": 38
      },
      {
        "date": "2025-07-22",
        "sales_quantity": 61,
        "order_quantity": 37
      },
      {
        "date": "2025-07-23",
        "sales_quantity": 44,
        "order_quantity": 31
      }
    ],
    "price_trend": [
      {
        "date": "2025-06-24",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-06-25",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-06-26",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-06-27",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-06-28",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-06-29",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-06-30",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-01",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-02",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-03",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-04",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-05",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-06",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-07",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-08",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-09",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-10",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-11",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-12",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-13",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-14",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-15",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-16",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-17",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-18",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-19",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-20",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-21",
        "price_min": "11.0",
        "price_max": "11.0"
      },
      {
        "date": "2025-07-22",
        "price_min": "11.0",
        "price_max": "11.0"
      }
    ]
  }
}

```