# Alibaba Product API Documentation

<p><strong>Alibaba Product API Documentation</strong> Get one Alibaba product by id or url. The response has the title, images, price range with currency, price tiers, minimum order quantity, rating, sold count, the SKU matrix with per-variant price and stock, specs, shipping hints and supplier information. Prices are numbers plus an ISO currency code. The currency comes from the product page data and the numeric price tiers, so localized prices report UAH or HKD instead of USD. When numeric tiers are absent, the price is read from the same loaded page through JSON-LD product offers, price meta tags or a numeric price range; no second upstream lookup happens. A page without a product title is a failed try: the request is retried and, when all retries fail, returns a retryable 503 that is not charged. The product id passes unchanged into the product endpoint, the supplier subdomain passes unchanged into the supplier endpoint, and failed requests are never charged.</p>

- **Documentation:** [https://scrappa.co/docs/alibaba-api/alibaba_product](https://scrappa.co/docs/alibaba-api/alibaba_product)
- **API group:** Alibaba API
- **Endpoint:** `GET https://scrappa.co/api/alibaba/product`

## 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 |
| --- | --- | --- | --- |
| `id` | string | No | Alibaba product number of 6 to 20 digits, from a search result. |
| `url` | string | No | An alibaba.com product link. Use this or id. |

## Example response

```json
{
    "data": {
        "moq": {
            "text": "Min. order: 100 pieces",
            "unit": "pieces",
            "value": 100
        },
        "url": "https://www.alibaba.com/product-detail/x_1000000000001.html",
        "price": {
            "max": 6.2,
            "min": 5.5,
            "currency": "USD",
            "formatted": "US $5.50-6.20"
        },
        "specs": [
            {
                "name": "Connectivity",
                "value": "Bluetooth"
            }
        ],
        "title": "Wireless Bluetooth Headphones",
        "badges": [],
        "images": [],
        "rating": {
            "count": 120,
            "score": 4.8
        },
        "shipping": {
            "hints": [],
            "ship_from": "China",
            "free_shipping": false
        },
        "supplier": {
            "company_id": "123456789",
            "company_name": "Example Electronics Co."
        },
        "variants": [
            {
                "price": 5.5,
                "stock": 1000,
                "sku_id": "sku-1",
                "options": {
                    "Color": "Black"
                },
                "currency": "USD"
            }
        ],
        "product_id": "1000000000001",
        "sold_count": 539,
        "price_tiers": [
            {
                "price": 5.5,
                "currency": "USD",
                "min_quantity": 100
            }
        ],
        "certifications": [],
        "sku_properties": []
    },
    "meta": {
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | Alibaba could not be reached, or the product page had no title. Retry after a short pause. This response is 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)
