# Taobao Product Search API

> Search Taobao and Tmall products by keyword with titles, prices, images, sales and shop info. Sort by sales or price, filter to Tmall only and by price range.

Source: https://www.sandbase.ai/model/taobao/search/items
API reference: https://www.sandbase.ai/model/taobao/search/items/docs

## Facts

- Provider: Taobao
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/taobao/search/items`
- Price: $0.04 per call
- Capabilities: api, taobao, ecommerce
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/taobao/search/items` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `keyword` | string | yes |  |
| `sort` | string | no | _sale, _bid, bid, _coefp |
| `tmall` | boolean | no |  |
| `startPrice` | string | no |  |
| `endPrice` | string | no |  |
| `page` | integer | no |  |

## FAQ

### How do I use the Taobao Product Search API?

Send a POST request to https://api.sandbase.ai/v1/api/taobao/search/items with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Taobao Product Search API cost?

$0.04 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Taobao Product Search API accept?

Required: keyword (string). Optional: sort (one of _sale, _bid, bid, _coefp), tmall (boolean), startPrice (string), endPrice (string) and page (integer). The Parameters table and the Playground on this page list every field.

### What does the Taobao Product Search API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Taobao developer account or API key?

No. Taobao Product Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Taobao API access separately.

## README

### Taobao Product Search API

Search Taobao and Tmall products by keyword with titles, prices, images, sales and shop info. Sort by sales or price, filter to Tmall only and by price range.

The response is the platform's original data structure.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "taobao/search/items", "keyword": "蓝牙耳机"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `keyword` | string | Yes | Search keyword. |
| `sort` | string | No | Sort order for the result set. |
| `tmall` | boolean | No | Whether to filter results to Tmall only. |
| `startPrice` | string | No | Minimum price filter (inclusive). |
| `endPrice` | string | No | Maximum price filter (inclusive). |
| `page` | integer | No | Page number for pagination. |
