API 文档xiaohongshuData蒲公英内容广场(热门内容榜单)
蒲公英内容广场(热门内容榜单)
接口用途
- 复刻蒲公英「学内容 → 创意灵感 → 内容广场」:**不需要任何 ID**,直接查「现在什么内容在火」
- 与其它接口方向相反 —— 其余接口都要先有博主/笔记 ID,本接口是入口式的,
- 拿到榜单后可以顺着笔记里的博主 ID 再去调博主侧接口深挖
POST
/openapi/api/v1/xiaohongshu/pgy/get_content_square价格:价格暂不可用 · 实际扣费按免费额度及账户折扣结算
鉴权
所有 API 请求都需要 Bearer 项目 Token,请在 Authorization 请求头中传入
Authorization header
Authorization: Bearer YOUR_API_TOKEN请求参数
| 参数名 | 位置 / 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| biz_type | body / integer | 是 |
| |
| page_num | body / integer | 否 |
| |
| page_size | body / integer | 否 |
| |
| search_word | body / string | 否 |
| |
| order_by | body / string | 否 |
| |
| date_range | body / integer | 否 |
| |
| sub_biz_type | body / integer | null | 否 |
| |
| category | body / string | null | 否 |
| |
| industry | body / string | null | 否 |
| |
| note_type | body / integer | null | 否 |
| |
| content_type | body / integer | null | 否 |
| |
| theme | body / string | null | 否 |
| |
| author_type | body / integer | null | 否 |
| |
| placement | body / integer | null | 否 |
| |
| marketing_target | body / integer | null | 否 |
| |
| price | body / unknown | null | 否 |
| |
| fans | body / unknown | null | 否 |
|
调用示例
curl -X POST "https://api.trmesh.com/openapi/api/v1/xiaohongshu/pgy/get_content_square" \ -H "Authorization: Bearer sdc_your_project_token"
返回字段
- noteList[]: 命中的笔记。每条含 noteInfo(title 标题、noteType 类型、
- noteLink 笔记链接、noteImages 封面、readNum 阅读、likeNum 点赞、favNum 收藏、
- cmtNum 评论、videoDuration 视频时长、notePublishTime 发布时间)与博主信息
- total: 该榜的条数,恒为 **100**
- pageInfoDto: 数据服务分页回执,其中 totalPage 恒为 0,**不可用**
| 字段名 | 类型 | 说明 | 示例 |
|---|---|---|---|
| noteList[] | unknown |
| |
| total | unknown |
| |
| pageInfoDto | unknown |
|
公共响应外层
响应状态、请求标识和数据等公共字段
| 字段名 | 类型 | 说明 | 示例 |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
错误码与限流说明
除了成功返回,这里也说明鉴权失败、限流和数据服务异常时的标准行为
| 状态码 | 含义 | 说明 |
|---|---|---|
| 200 | 成功 | 请求处理完成,返回标准结果包裹。 |
| 401 | 未授权 | 缺少令牌、令牌无效或登录状态已失效。 |
| 429 | 触发限流 | 请求速率超过令牌、用户或套餐的限制。 |
| 502 | 服务暂不可用 | 网关未获取到可用结果,建议稍后重试。 |