# Taobao Suggest API Documentation

<p>Return public autocomplete keywords and their weights for a query. This endpoint is an aid for building search queries. It never returns product ids, so a suggested keyword must not be passed to the item endpoint. Failed requests are never charged.</p>

- **Documentation:** [https://scrappa.co/docs/taobao-api/taobao_suggest](https://scrappa.co/docs/taobao-api/taobao_suggest)
- **API group:** Taobao API
- **Endpoint:** `GET https://scrappa.co/api/taobao/suggest`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Keywords to complete. |

## Example response

```json
{
    "data": {
        "query": "phone",
        "suggestions": [
            {
                "weight": 1000,
                "keyword": "phone case"
            }
        ],
        "is_product_id_source": false
    },
    "meta": {
        "billable": true,
        "endpoint_family": "suggest"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query is required. Not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
