检索

产品口碑:评价列表 + 评分聚合

尽调 / 选品场景:拉某产品的用户评价与评分分布。典型组合链:searchProducts 找到产品 → getProduct 看介绍 → getProductRatings 看真实口碑(平均分、1-5 星分布、逐条评价), agent 可据此替用户汇总「值不值得用 / 值不值得聊合作」的判断依据。 summary.avg 为平均分(保留 1 位小数),summary.distribution 为各星级条数。

get/v1/products/{id}/ratings

Request

  • Base URL: https://api.opcmenu.com
  • URL: https://api.opcmenu.com/v1/products/{id}/ratings
  • Auth: none declared

Path parameters

idstring required

产品 id

Query parameters

sort'recent' | 'helpful'

排序:recent=最新(默认);helpful=最有用(按「有用」票数)

limitinteger

返回条数,默认 20,最多 50

cursorstring

分页游标(上一页返回的 nextCursor)

Response

评价列表与聚合摘要

okboolean

Example response

{
  "data": {
    "summary": {
      "targetType": "PRODUCT"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.