本接口总调用:0次·今日调用:0次
接口地址: https://api.suyanw.cn/api/xhs.php
返回格式: 请看返回示例
请求方式: GET
请求示例: https://api.suyanw.cn/api/xhs.php?url=http://xhslink.com/a/Hbb4EgXJaOggb
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
url | 是 | string | 视频/图文链接 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
code | integer | 返回的状态码 |
data | object | 返回的数据/数据对象 |
msg | string | 返回的消息 |
time | string | 请求时间 |
type | string | 类型 |
author | string | 作者 |
author_id | string | 作者ID |
title | string | 作品标题 |
desc | string | 作品介绍 |
avatar | string | 作者头像 |
cover | string | 缩略图 |
url | string | 无水印链接 |
返回示例:
{"code":200,"msg":"解析成功","time":"2025-07-14 21:25:43","api_source":"官方API网:https://api.suyanw.cn/","data":{"type":"video","author":"装修设计-小爽","author_id":"5c3c5412000000000702d69d","title":"颜色搭配","desc":"#装修[话题]# #室内设计[话题]#","avatar":"https://sns-avatar-qc.xhscdn.com/avatar/5c3c5ea4f84d7d00014855c2.jpg","cover":"https://sns-webpic-qc.xhscdn.com/110/0/01e43906106b716200100001877ec0082f_0.webp","url":"http://sns-video-qc.xhscdn.com/stream/110/258/01e43906106b716201037003877ec02300_258.mp4?sign=6f91e1ff4e22d7b2d6526e408680bfd7&t=6879a297"}}
错误码格式说明:
名称 | 类型 | 说明 |
---|---|---|
200 | string | 返回的状态码(成功) |
500 | string | 返回的状态码(失败) |
代码示例:
无