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

AliExpress Product Shipping API Documentation

GET https://scrappa.co/api/aliexpress/product/shipping

AliExpress Product Shipping API Documentation Get every shipping option of one product for a destination country: method, fee, free shipping flag and threshold, estimated delivery window, warehouse country, guaranteed delivery days, delay compensation, free return and cash on delivery. Currency and language follow the market of the request, so they can differ between calls. Failed requests are never charged.

AliExpress Product Shipping API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/aliexpress/product/shipping
Auth header
x-api-key
Cost
1 credit/request
product_id = 1234567890
Response preview
200 OK
{
    "data": {
        "options": [
            {
                "fee": 1.99,
                "method": "CAINIAO_FULFILLMENT_STD",
                "is_free": false,
                "currency": "USD",
                "free_return": false,
                "formatted_fee": "US $1.99",
                "cash_on_delivery": false,
                "ship_from_country": "CN",
                "delay_compensation": "US $1.15",
                "estimated_delivery": "Oct 24 - 27",
...

Parameters

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

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

product_id string Required

AliExpress product number of 6 to 20 digits, e.g. 3256812407941674. Take it from the product_id of a search result.

Example value 1234567890
country string Optional

Two-letter destination country code, e.g. DE. Defaults to US.

Example value US

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": {
        "options": [
            {
                "fee": 1.99,
                "method": "CAINIAO_FULFILLMENT_STD",
                "is_free": false,
                "currency": "USD",
                "free_return": false,
                "formatted_fee": "US $1.99",
                "cash_on_delivery": false,
                "ship_from_country": "CN",
                "delay_compensation": "US $1.15",
                "estimated_delivery": "Oct 24 - 27",
                "free_shipping_threshold": "US $10.00",
                "guaranteed_delivery_days": 90
            }
        ],
        "product_id": "3256812407941674",
        "ship_to_country": "DE"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "shipping"
    },
    "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": {
        "country": [
            "The country must be a two-letter destination country code, e.g. DE."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

AliExpress could not be reached. Retry after a short pause. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "AliExpress 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.