Information you can get with this API.
Search suggestions – autocomplete suggestions for search queriesPopular keywords – trending search termsCategory suggestions – related category recommendationsBrand suggestions – popular brand namesSearch history – recent search termsRelated queries – similar search suggestions| API Name | Shopee Search Hints |
|---|---|
| Method | GET |
| API URL | http://api.noxapi.com/shopee/search_hints |
| Security Auth |
apiToken (lấy tại Console - Account Center)
Thêm apiToken vào query parameters khi gọi API.
|
| Field | Type | Explanation | Required |
|---|---|---|---|
site |
string |
Region name abbreviation.
Optional values: my, th, ph, id, vn, sg, tw, br, mx, co, cl.
Default: my.
|
false |
keyword |
string | Partial search keyword to get suggestions | true |
limit |
integer | Number of suggestions to return (default: 10, max: 50) | false |
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.noxapi.com/shopee/search_hints?apiToken=xxxxxx&site=my&keyword=vacuum&limit=10",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
node
index.js
python
app.py
java
Main.java
go
run main.go
{
"code": 200,
"msg": "success",
"data": {
"keyword": "vacuum",
"suggestions": [
{
"text": "vacuum cleaner",
"type": "product",
"count": 15420,
"category": "Home Appliances"
},
{
"text": "vacuum bag",
"type": "product",
"count": 1250,
"category": "Home Appliances"
},
{
"text": "vacuum hose",
"type": "product",
"count": 890,
"category": "Home Appliances"
},
{
"text": "vacuum filter",
"type": "product",
"count": 2100,
"category": "Home Appliances"
},
{
"text": "vacuum storage bag",
"type": "product",
"count": 450,
"category": "Home Appliances"
}
],
"popular_keywords": [
"vacuum cleaner cordless",
"vacuum cleaner robot",
"vacuum cleaner handheld",
"vacuum cleaner bagless",
"vacuum cleaner wet dry"
],
"related_categories": [
{
"catid": 100177,
"display_name": "Vacuum Cleaners & Floor Care Appliances",
"count": 12500
},
{
"catid": 100038,
"display_name": "Small Household Appliances",
"count": 8500
}
],
"brand_suggestions": [
"Dyson",
"Shark",
"Hoover",
"Bissell",
"Eureka"
]
}
}
# Failed to fetch data. Please retry or contact support.
# Invalid request parameters.
# Subscription expired or insufficient balance.
# Request timed out. Please retry with a 60s timeout.
# Internal server error. Please contact support.
# Concurrency limit exceeded. Please reduce request rate.