Information you can get with this API.
Product listings – search results with product detailsProduct prices – current pricing and discountsProduct ratings – star ratings and review countsShop information – seller details and shop ratingsProduct images – main product photosSearch filters – category, price range, location filtersSorting options – by price, rating, sales, newest| API Name | Shopee Product Search |
|---|---|
| Method | GET |
| API URL | http://api.noxapi.com/shopee/search_items |
| 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 | Search keywords for products | true |
page |
integer | Page number for pagination (default: 0) | false |
page_size |
integer | Number of items per page (default: 20, max: 100) | false |
sort_by |
string | Sort by: relevancy, price_asc, price_desc, sales, newest |
false |
category_id |
integer | Filter by category ID | false |
price_min |
float | Minimum price filter | false |
price_max |
float | Maximum price filter | false |
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.noxapi.com/shopee/search_items?apiToken=xxxxxx&site=my&keyword=vacuum%20cleaner&page=0&page_size=20&sort_by=relevancy",
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 cleaner",
"total_count": 15420,
"items": [
{
"item_id": 22342619928,
"shop_id": 454052120,
"title": "4in1 Vakum Super Cordless Car Vacuum Cleaner 15000Pa Mini Vacuum Cleaner",
"main_image": "https://cf.shopee.com.my/file/my-11134207-7r98p-lllrdqt4ibfo1c",
"price": "26.0",
"price_min": "26.0",
"price_max": "26.0",
"currency": "MYR",
"rating_star": 4.7,
"sold_count": 6067,
"comment_count": 2735,
"shop_info": {
"shop_id": 454052120,
"shop_name": "BEST DIY Official Store",
"shop_location": "Selangor",
"shopee_verified": true,
"is_official_shop": false,
"is_preferred_plus_seller": true
},
"category_id": "100177",
"brand": null,
"is_pre_order": false,
"has_lowest_price_guarantee": false
}
],
"has_more": true,
"next_offset": 20,
"search_filters": {
"categories": [
{
"catid": 100177,
"display_name": "Vacuum Cleaners & Floor Care Appliances",
"count": 1250
}
],
"price_ranges": [
{
"min": 0,
"max": 50,
"count": 8500
},
{
"min": 50,
"max": 100,
"count": 4200
}
]
}
}
}
# 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.