# Alibaba — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for ready-to-ship products on Alibaba.com with full pagination support to browse inventory, pricing, and product details across multiple pages. Quickly discover available items without waiting for manufacturing timelines.

**Category:** Marketplaces | **Website:** [www.alibaba.com/trade/search?SearchText=7+inch+1024x600+ips+rgb&ready_ship=Y](https://www.alibaba.com/trade/search?SearchText=7+inch+1024x600+ips+rgb&ready_ship=Y) | **Docs:** [parse.bot/marketplace/dcad1f19-115b-4aae-9abb-96f02a27af43/alibaba-com-api](https://parse.bot/marketplace/dcad1f19-115b-4aae-9abb-96f02a27af43/alibaba-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-alibaba-com-api-dcad1f19/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product

Fetch full product details from an Alibaba.com product page by product ID. Returns pricing tiers, specifications, images, supplier info, and review data. The product_id can be obtained from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Alibaba product ID (numeric string, e.g. '1601144593280'). Obtainable from search_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-alibaba-com-api-dcad1f19/get_product \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### search_products

Search Alibaba.com for Ready to Ship products. All results are pre-filtered to Ready to Ship inventory. Returns product listings with pricing, supplier info, and service badges. Results are auto-iterated across pages (48 products per page).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |
| `query` | string | Yes | Search keywords describing the product (e.g. '7 inch 1024x600 ips rgb'). |
| `sort` | string | No | Sort order for results. Omitted returns relevance-sorted results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-alibaba-com-api-dcad1f19/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","sort":"<string>"}'
```
