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

AliExpress Autocomplete API Documentation

GET https://scrappa.co/api/aliexpress/autocomplete

AliExpress Autocomplete API Documentation Get the search suggestions AliExpress shows while a shopper types. Pass the first letters of a keyword and read the suggestions list. Use the suggestions as query values for the search endpoint. Currency and language follow the market of the request, so they can differ between calls. Failed requests are never charged.

AliExpress Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/aliexpress/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "phone",
        "suggestions": [
            "phone case",
            "phones mobile"
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}

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.

query string Required

Keyword prefix, e.g. phone.

Example value coffee shops

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": {
        "query": "phone",
        "suggestions": [
            "phone case",
            "phones mobile"
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "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": {
        "query": [
            "A query prefix is required, e.g. phone."
        ]
    },
    "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.