# Search products (v1)

Search AliExpress products by keyword. Returns 60 products per page with price, rating and sales, in English with USD prices. Use `product_id` from a result to get the product's details.

- Platform: AliExpress
- Request: `GET https://api.toolzerhub.com/v1/aliexpress/search`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/aliexpress/search/get-aliexpress-search

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `query` | query | yes | string | Search text, matched the way AliExpress's own search box matches it. |
| `page` | query | no | integer | 1-indexed page, 60 products per page, up to page 60. Pages are real pagination, but the order inside a page can shift slightly between calls, so de-duplicate by items[].product_id when collecting several pages. Default: 1. |
| `sort` | query | no | enum: best_match, orders, price_asc, price_desc | best_match (AliExpress's default), orders (most sold first), price_asc or price_desc. Default: best_match. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/aliexpress/search?query=<query>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
