Temu 评论搜索
10 点 / 次GET
/api/v2/data/temu/review/search请求参数
15 个参数
Query 参数
modestring分页模式可选值:
page页码分页默认cursor游标分页查前几页或跳到指定页时用页码分页(mode=page),例如 page=3。批量读取多页时用游标分页(mode=cursor),按顺序接着查。游标模式的 page 固定为 1,首次省略 cursor,续页传上次返回的 cursor,直到 hasMore=false。
cursorstring分页游标siteIdinteger站点 ID示例:
48pageinteger页码页码从 1 开始,最多查询前 10,000 条(page × size ≤ 10,000)。
sizeinteger每页数量每页最多 200 条。
goodsIdstring商品 IDskuIdstringSKU IDscoreMininteger评论评分下限scoreMaxinteger评论评分上限helpfulMininteger有用数下限helpfulMaxinteger有用数上限commentTimeMinstring最早评论时间ISO 8601 带时区时间,毫秒可选,如 2026-11-17T00:00:00+08:00。
commentTimeMaxstring最晚评论时间ISO 8601 带时区时间,毫秒可选,如 2026-11-17T23:59:59.999+08:00。
sortstring排序字段可选值:
commentTime评论时间默认helpful有用数score评分createTime采集时间orderstring排序方向可选值:
asc升序desc降序默认请求示例代码
import { createHmac, createHash, randomBytes } from "node:crypto";
const baseUrl = "";
const path = "/api/v2/data/temu/review/search";
const appKey = process.env.GB_APP_KEY;
const appSecret = process.env.GB_APP_SECRET;
if (!appKey || !appSecret) throw new Error("请设置 GB_APP_KEY 和 GB_APP_SECRET");
const params = {};
const timestamp = String(Math.floor(Date.now() / 1000));
const nonce = randomBytes(16).toString("hex");
const query = new URLSearchParams(params).toString();
const canonical = ["GET", path, query, timestamp, nonce].join("\n");
const signature = createHmac("sha256", appSecret).update(canonical).digest("base64");
const headers = {
"X-GB-App-Key": appKey,
"X-GB-Timestamp": timestamp,
"X-GB-Nonce": nonce,
"X-GB-Signature": signature,
};
const response = await fetch(baseUrl + path + (query ? "?" + query : ""), {
method: "GET",
headers,
});
console.log(response.status, await response.text());返回响应
200 OK
application/json
codeinteger业务状态码;0 表示成功,非 0 表示失败。msgstring错误或提示信息;成功时可能不返回。dataobject业务数据对象;仅对应当前请求模式的字段会出现。totalinteger符合条件的总记录数;游标模式不返回。listTemuGoodsCommentItemResponse[]评论搜索结果对象列表。idstring数据记录 ID;区别于平台商品、类目或店铺 ID。reviewIdstring平台评论 ID。commentstring评论内容。scoreinteger评分。goodsIdstring平台商品 ID。skuIdstring商品规格 SKU ID。specsstring商品规格描述。picturesstring[]图片地址列表。videostring视频地址。helpfulinteger评论获得的有用票数。commentTimestring评论发表时间;ISO 8601 带时区时间,毫秒可选,如 2026-11-17T00:00:00+08:00。createTimestring记录创建时间;ISO 8601 带时区时间,毫秒可选,如 2026-11-17T00:00:00+08:00。siteIdinteger平台站点 ID。cursorstring下一页游标;无后续数据时可能为空。hasMoreboolean是否还有下一页。结构实例
{
"code": 0,
"msg": "string",
"data": {
"total": 0,
"list": [
{
"id": "string",
"reviewId": "string",
"comment": "string",
"score": 0,
"goodsId": "string",
"skuId": "string",
"specs": "string",
"pictures": [
"string"
],
"video": "string",
"helpful": 0,
"commentTime": "2026-11-17T00:00:00+08:00",
"createTime": "2026-11-17T00:00:00+08:00",
"siteId": 0
}
],
"cursor": "string",
"hasMore": true
}
}