# E-commerce Tools API - Parse product link to ID

## API Overview

- Platform name
- Product ID

## API URL

`POST https://api.tmapi.io/tools/parse/url`

## Request Parameters

### Body

> Content-Type: application/json

| Field | Type | Explanation | Required |
| --- | --- | --- | --- |
| url | string | product url | true |

> Support for parsing urls of taobao,tmall,jd,vip,pinduoduo,1688,aliexpress,lazada,shopee and other platforms.[object Object]Support direct parse of short url shared by Taobao App,e.g:[object Object][object Object]

## 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 POST 'https://api.tmapi.io/tools/parse/url?apiToken=xxxxxx' \
+  --header 'Content-Type: application/json' \
+  --data-raw '{
  "url": "https://detail.tmall.com/item.htm?id=688361462703"
}'

```

## Response Example

```json

{
  "code": 200,
  "msg": "success",
  "data": {
    "plat": "taobao",
    "id": "24599296306"
  }
}

```