统计数据接口


获取作品统计数据

  • 接口描述:根据作品ID获取作品的pv、uv、获奖情况等统计数据。
  • 接口地址:/api/v1/preview/statistic/pageView?token=TOKEN
  • 请求方式:GET
  • 传参方式:
  • 参数列表:
    参数名 是否必须 参数类型 说明
    creationId Long 作品ID
    type int 1:只查询作品总数,日期参数不必填,4:查询总数以及对应区间段的总数以及列表
    startDay String 查询开始日期、例:2021-12-01
    endDay String 查询截止日期、例:2021-12-01
  • 代码示例:
    {
      "success": true,
      "code": 200,
      "msg": "操作成功",
      "obj": {
          "creationId": 17188,
          "pvTotal": 15,
          "uvTotal": 12,
          "likeTotal": 0,
          "appJumpTotal": 0,
          "shareTotal": 0,
          "pvDur": 15,
          "uvDur": 12,
          "likeDur": 0,
          "shareDur": 0,
          "appJumpDur": 0,
          "formDur": 0
          "formTotal": 0
          "pvList": [0, 0, 0, 0, 0, 1, 2, 9, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
          "uvList": [0, 0, 0, 0, 0, 1, 1, 8, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
          "shareList": [0, 0, 0, 0, 0, 1, 1, 8, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
          "formList": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
          "likeList": null,
          "timeList": ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"],
          "appJumpList": null,
          "winList": null,
          "cashList": null
      },
      "map": null,
      "list": null
    }
    
  • 返回参数:
    参数 参数类型 说明
    creationId Long 作品ID
    pvTotal Long 总PV
    uvTotal int 总UV
    likeTotal
    appJumpTotal
    shareTotal int 总分享数
    pvDur int 区间pv数
    uvDur int 区间uv数
    likeDur
    shareDur int 区间分享数
    formDur int 区间表单数
    formTotal int 总表单数
    appJumpDur
    pvList Array PV数据
    uvList Array UV数据
    shareList Array 分享数据
    formList Array 分享数据
    likeList
    timeList Array 时间,今日昨日为24小时制,其他为日期
    appJumpList
    winList
    cashList

获取作品设备统计数据

  • 接口描述:根据作品ID获取作品的访问设备统计数据。
  • 接口地址:/api/v1/preview/statistic/device?token=TOKEN
  • 请求方式:GET
  • 传参方式:
  • 参数列表:
    参数名 是否必须 参数类型 说明
    creationId Long 作品ID
  • 代码示例:
    {
      "success": true,
      "code": 200,
      "msg": "操作成功",
      "obj": {
          "list": [{
              "name": "iOS",
              "value": 36,
              "sort": null,
              "type": null
          }, {
              "name": "PC",
              "value": 1,
              "sort": null,
              "type": null
          }],
          "total": 37
      },
      "map": null,
      "list": null
    }
    
  • 返回参数:
    参数 参数类型 说明
    list Array 设备统计集合
    total Integer
    name String 设备类型名称
    value Integer 设备数量
    sort
    type

获取作品地域统计数据

  • 接口描述:根据作品ID获取作品的访问地域统计数据。

  • 接口地址:/api/v1/preview/statistic/region?token=TOKEN

  • 请求方式:GET

  • 传参方式:

  • 参数列表:

    参数名 是否必须 参数类型 说明
    creationId Long 作品ID
    type int 1:查询城市。默认为查询省
  • 代码示例:

    {
      "success": true,
      "code": 200,
      "msg": "操作成功",
      "obj": {
          "abroad": 0,
          "total": 37,
          "other": 0,
          "list": [{
              "name": "北京",
              "value": 23,
              "sort": null,
              "type": null
          }, {
              "name": "四川",
              "value": 14,
              "sort": null,
              "type": null
          }],
          "island": 37
      },
      "map": null,
      "list": null
    }
    
  • 返回参数:

    参数 参数类型 说明
    abroad int 海外汇总
    total int 总数
    other int 其他
    list Array 地域统计集合
    island int 中国
    list
    name String 省份或者城市名称
    value Integer 省份或者城市数量
    sort
    type

will 2023年8月28日 10:49 3578 收藏文档