# 获取朋友圈详情

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /wxworkapi/message/exchange:
    post:
      summary: 获取朋友圈详情
      deprecated: false
      description: "请求示例\n\n```\n{\n    \"type\": \"robot.moment.detail\",\n    \"messageId\": \"2025030202101123456112\",\n    \"sids\": [\n        \"7446708909151244406\"\n    ],\n    \"robotKey\": \"0620cddfeb6a42b9a1a9395e0e869b11\"\n}\n```\n\n| 名称       | 类型    | 必须 | 描述                                           |\n|------------|---------|------|------------------------------------------------|\n| type       | String  | 是   | robot.moment.detail                            |\n| robotKey   | String  | 是   | 机器人robotKey                                 |\n| messageld  | String  | 是   | 消息id                                         |\n| sids       | Long[]  | 是   | 朋友圈sid（数组），一次最多支持10条查询         |\n\n\n回调示例\n\n```\n{\n\t\"msg\": \"OK\",\n\t\"isSendFromMac\": 1,\n\t\"dts\": 1749021169471,\n\t\"bizType\": 5,\n\t\"code\": 0,\n\t\"os\": \"android\",\n\t\"messageId\": \"2025030202101123456112\",\n\t\"sendTimeTs\": 1749021169,\n\t\"type\": \"robot.moment.detail\",\n\t\"sendTime\": \"2025-06-04 15:12:49\",\n\t\"sids\": [\"7446708909151244406\", \"7428596961555597636\"],\n\t\"srcChannel\": \"exchangeApi\",\n\t\"robotKey\": \"0620cddfeb6a42b9a1a9395e0e869b11\",\n\t\"snsDetails\": [{\n\t\t\"linkInfo\": {\n\t\t\t\"contentUrl\": \"https://www.baidu.com\",\n\t\t\t\"wxfinder\": {},\n\t\t\t\"title\": \"百度一下\"\n\t\t},\n\t\t\"flag\": 0,\n\t\t\"visibleType\": 1,\n\t\t\"updateTime\": 1733822028791,\n\t\t\"postId\": \"CAMQy4zgugYY6/iT256AgAMgsdKNlQY=\",\n\t\t\"type\": 0,\n\t\t\"xidList\": \"[]\",\n\t\t\"content\": \"2024-12-10 17:13:47今天是个好日子！\",\n\t\t\"sid\": 7446708909151244406,\n\t\t\"authorVid\": 1688858104495211,\n\t\t\"taskSid\": 0,\n\t\t\"poiInfo\": {},\n\t\t\"time\": 1733822028,\n\t\t\"seq\": 1733822028791\n\t}, {\n\t\t\"linkInfo\": {\n\t\t\t\"wxfinder\": {}\n\t\t},\n\t\t\"flag\": 0,\n\t\t\"visibleType\": 1,\n\t\t\"updateTime\": 1729605012495,\n\t\t\"postId\": \"CAMQlNveuAYY6/iT256AgAMg/Oue7A8=\",\n\t\t\"type\": 0,\n\t\t\"xidList\": \"[]\",\n\t\t\"content\": \"10.22-22\",\n\t\t\"sid\": 7428596961555597636,\n\t\t\"authorVid\": 1688858104495211,\n\t\t\"taskSid\": 0,\n\t\t\"poiInfo\": {},\n\t\t\"time\": 1729605012,\n\t\t\"seq\": 1729605012495\n\t}],\n\t\"statUpSend\": 1749021169487,\n\t\"robotType\": 2,\n\t\"robotBizType\": 5\n}\n```\n\n| 名称         | 类型    | 必须 | 描述                                      |\n|--------------|---------|------|-------------------------------------------|\n| code         | Integer | 是   | 是否成功，0成功，非0失败                  |\n| msg          | String  | 否   | 错误消息                                  |\n| snsDetails   | Object[] |      | 朋友圈数据                                |\n\nsnsDetails数据结构          \n| 名称         | 类型    | 必须 | 描述                                      |\n|--------------|---------|------|-------------------------------------------|\n| authorVid    | Long    | 是   | 发布者wxid                               |\n| postId       | Long    | 是   | 朋友圈标识id                              |\n| type         | Integer | 是   | 类型，目前测试都是0                       |\n| content      | String  | 是   | 文本内容                                  |\n| time         | Integer | 是   | 发布时间戳，单位：秒                      |\n| updateTime   | Long    | 是   | 更新时间戳，单位：毫秒                    |\n| seq          | Long    | 是   | 时间标识，与updateTime一致，单位：毫秒    |\n| sid          | Long    | 是   | 朋友圈id                                  |\n| visibleType  | Int     | 是   | 是否可见，1-可见，其他不可见              |\n| xidList      | Long[]  | 否   | 可见id列表                                |\n| poilInfo     | Object  | 否   | 位置信息                                  |\n| linkInfo     | Object  | 否   | 链接信息                                  |\n| mediaList    | Object[]| 否   | 媒体列表信息                              |\n| commentList  | Object[]| 否   | 评论列表                                  |\n| likeList     | Object[]| 否   | 点赞列表                                  |\n\npoiInfo数据结构\n| 名称       | 类型   | 必须 | 描述   |\n|------------|--------|------|--------|\n| city       | String | 否   | 城市   |\n| latitude   | String | 否   | 纬度   |\n| longitude  | String | 否   | 经度   |\n| poiAddress | String | 否   | 地址   |\n\n\nlinkInfo数据结构\n| 名称      | 类型   | 必须 | 描述           |\n|-----------|--------|------|----------------|\n| contentUrl| String | 否   | 链接url        |\n| title     | String | 否   | 链接标题       |\n| wxfinder  | Object | 否   | 视频号数据信息 |\n\n\nmediaList数据结构\n| 名称    | 类型    | 必须 | 描述                     |\n|---------|---------|------|--------------------------|\n| type    | String  | 否   | 1 图片 2 视频            |\n| fileid  | String  | 否   | 企微侧资源地址标识       |\n| width   | Integer | 否   | 宽度                     |\n| height  | Integer | 否   | 高度                     |\n| size    | Integer | 否   | 资源大小，单位：字节     |\n| videoLen| Integer | 否   | 视频时长，单位：秒       |\n\n\ncommentList数据结构\n| 名称          | 类型   | 必须 | 描述                |\n|---------------|--------|------|---------------------|\n| sid           | Long   | 是   | 朋友圈sid           |\n| postid        | String | 是   | 朋友圈postid        |\n| comment       | String | 是   | 评论内容            |\n| commentid     | Long   | 是   | 评论id              |\n| refCommentid  | Long   | 否   | 被评论的评论id      |\n| refXid        | Long   | 否   | 被评论的用户id      |\n| fromId        | Long   | 是   | 发评论的用户id      |\n| time          | Long   | 是   | 时间戳              |\n\nlikeList数据结构\n| 名称   | 类型   | 必须 | 描述         |\n|--------|--------|------|--------------|\n| sid    | Long   | 是   | 朋友圈sid    |\n| postid | String | 否   | 朋友圈postid |\n| time   | Long   | 是   | 时间戳       |\n| xid    | Long   | 是   | 点赞用户id   |"
      tags:
        - 企微机器人/bot-朋友圈
      parameters:
        - name: acttype
          in: query
          description: ''
          required: false
          example: moment_ditail
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 企微机器人/bot-朋友圈
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6148098/apis/api-407842554-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://www.example.com
    description: 测试环境
security: []

```
