评论分析API
    评论分析API
    • 获取Amazon商品的评论信息
      GET
    • 批量对商品评论信息打标
      POST
    • 获取Amazon商品评论分析结果
      GET

      批量对商品评论信息打标

      开发中
      POST
      /voc/reviews/tags
      批量对商品评论信息打标,只支持电商场景的评论信息。

      请求参数

      Body 参数application/json
      category
      string 
      必需
      Amazon类目路径,多级类目用/分隔,例如:Tools & Home Improvement / Safety & Security / Home Security Systems / Video Doorbells
      示例值:
      Tools & Home Improvement
      reviews
      array[string]
      评论信息列表
      必需
      示例
      {
          "category": "Video Games / PlayStation 4 / Accessories / Headsets",
          "reviews": [
              "I loved the headphones when I first purchased them. I’m not sure how they got broken but my 6 year old has found a way to make it to where nothing can be heard out of them."
          ]
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/voc/reviews/tags' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "category": "Video Games / PlayStation 4 / Accessories / Headsets",
          "reviews": [
              "I loved the headphones when I first purchased them. I’m not sure how they got broken but my 6 year old has found a way to make it to where nothing can be heard out of them."
          ]
      }'

      返回响应

      🟢200成功
      application/json
      Body
      code
      string 
      状态码
      必需
      msg
      string 
      错误信息
      可选
      data
      array [object {2}] 
      数据结果
      可选
      text
      string 
      原始评论信息
      必需
      tags
      array [object {6}] 
      标签列表
      可选
      示例
      {
          "code": 200,
          "msg": "success",
          "data": [
              {
                  "text": "I would have to say that I am very disappointed on this product. After reviewing all the reviews I found it ideal to order one because, after all black goes with everything, especially from working out you wont be able to see the stains. Now I have to say that when I placed it on my Fitbit Versa I was having trouble putting it on and after all the pin broke and the pin was left inside. Idk if it's because it's not from the manufacturer but I was overall disappointed.",
                  "tags": [
                      {
                          "tag": "Customer Service",
                          "sentiment": 0,
                          "startOffset": 65,
                          "endOffset": 134,
                          "tagType": "reason",
                          "subTag": "Positive Reviews"
                      },
                      {
                          "tag": "Defective Pin",
                          "sentiment": -1,
                          "startOffset": 336,
                          "endOffset": 388,
                          "tagType": "cons",
                          "subTag": "Defective Pin"
                      }
                  ]
              }
          ]
      }
      上一页
      获取Amazon商品的评论信息
      下一页
      获取Amazon商品评论分析结果
      Built with