Information you can get with this API.
Review ratings – star ratings and review countsReview content – detailed customer reviews and commentsReviewer information – reviewer name, purchase verification, etc.Review images – photos uploaded by customersReview timestamps – when reviews were postedReview helpfulness – likes and helpful votes| API Name | Shopee Item Ratings |
|---|---|
| Method | GET |
| API URL | http://api.noxapi.com/shopee/item_ratings |
| 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 |
item_id |
integer | Product ID | true |
shop_id |
integer | Shop ID | true |
page |
integer | Page number for pagination (default: 0) | false |
page_size |
integer | Number of reviews per page (default: 20, max: 100) | false |
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.noxapi.com/shopee/item_ratings?apiToken=xxxxxx&site=my&item_id=9385530978&shop_id=140500145&page=0&page_size=20",
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": {
"item_id": 22342619928,
"rating_summary": {
"rating_star": 4.7,
"rating_count": [0, 0, 0, 0, 0],
"rcount_with_context": 2735,
"rcount_with_image": 1205,
"rcount_with_media": 0
},
"ratings": [
{
"userid": 123456789,
"shopid": 454052120,
"orderid": 987654321,
"itemid": 22342619928,
"cmtid": 1234567890,
"ctime": 1703123456,
"rating": 5,
"comment": "Great product! Works perfectly as described.",
"images": [
"https://cf.shopee.com.my/file/example1.jpg",
"https://cf.shopee.com.my/file/example2.jpg"
],
"is_anonymous": false,
"author_username": "customer123",
"author_portrait": "https://cf.shopee.com.my/file/avatar.jpg",
"author_shopid": 0,
"is_reply": false,
"reply": null,
"reply_time": null,
"like_count": 5,
"is_liked": false
}
],
"has_more": true,
"next_offset": 20
}
}
# 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.