Skip to content
Scrappa Get API key
Alibaba API 1 credit / request

Alibaba Product API Documentation

GET https://scrappa.co/api/alibaba/product

Alibaba Product API Documentation 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.

Alibaba Product API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/alibaba/product
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "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"
        },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

2 optional filters available.

id string Optional

Alibaba product number of 6 to 20 digits, from a search result.

Example value 1234567890
url string Optional
Open example

An alibaba.com product link. Use this or id.

Example value https://example.com/product

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "id": [
            "This value is invalid."
        ]
    },
    "message": "The request validation failed"
}
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.

{
    "meta": {
        "billable": false,
        "retryable": true
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Alibaba is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.