Shopee API endpoint
Returns Shopee search autocomplete suggestions for a keyword prefix from the credential-free `api/v4/search/search_suggestion` JSON. Public, credential-free endpoint.
/shopee/suggestPublic endpoint. Credential-free: no cookie, login or af-ac-enc-dat
anti-content header is required. Backed by Shopee's
api/v4/search/search_suggestion JSON, fetched over a browser-impersonated
HTTP profile because Shopee rejects a bare Go/Mozilla/5.0 client with
error 90309999.
Query parameters:
region (optional, default my) — one of my, sg, id, th, vn, ph, tw, br, mx, co, cl.keyword (required) — search keyword prefix.Response is a de-duplicated list of suggestion strings, taken from the upstream
data.queries[].text list.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| region | string | No | Shopee region: my, sg, id, th, vn, ph, tw, br, mx, co, cl (default my) Allowed values: my, sg, id, th, vn, ph, tw, br, mx, co, cl. | my | |
| keyword | string | Yes | Search keyword prefix | head | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/shopee/suggest?region=my&keyword=head" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"region": "my",
"keyword": "head",
"suggestions": [
"headphones",
"headphones wireless",
"headset"
]
}
}Request schema
No body schema
Response schema
#/definitions/shopee.suggestResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | shopee.SuggestResponse | No | ||||
| data.keyword | string | No | head | |||
| data.region | string | No | my | |||
| data.suggestions | array | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/shopee/suggest?region=my&keyword=head" \
-H "x-api-key: $CRAWLORA_API_KEY"