FeedMCP

数据接口 / 小红书

蒲公英博主每日数据 API

一个博主最近 30 天每天的曝光、阅读、互动,以及 CPM、CPE、CPV。

项目 值
地址 GET https://api.feedmcp.com/v1/xiaohongshu/pgy/creators/costs/history
ID xiaohongshu.pgy.creators.costs.history
价格 $0.04 / 次
返回 一页 数据指标对象列表
认证 Authorization: Bearer $FEEDMCP_API_KEY

每天一条:impressions 曝光、reads 阅读、engagements 互动、cpm、cpe、cpv(元)。

参数

参数 类型 必填 说明
id string 是 博主的小红书用户 ID(主页链接 /profile/ 后面那串),也可以传主页链接

所有接口还支持 view=full:在返回里附上平台的原始数据(raw),价格不变。

返回字段

data.items 是一组「数据指标」对象,所有平台字段相同:

字段 类型 说明
platform string 平台
subject_id string 这组数据属于谁:达人 ID 或关键词
period string | null 统计周期;按天列出的数据是那一天(YYYY-MM-DD)
metrics object 指标,名字见每个接口页;比例都是 0–1,金额都是人民币元

什么时候扣费

成功取到数据一次 $0.04。对象不存在、没取到数据、参数错误、平台出错、超时都不收费。

每次返回的 meta.billing 里写着这次扣了多少、还剩多少余额。

调用示例

cURL

curl "https://api.feedmcp.com/v1/xiaohongshu/pgy/creators/costs/history?id=612722f1000000000101d7ec" \
  -H "Authorization: Bearer $FEEDMCP_API_KEY"

Python

import os, requests

r = requests.get(
    "https://api.feedmcp.com/v1/xiaohongshu/pgy/creators/costs/history",
    params={"id": "612722f1000000000101d7ec"},
    headers={"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"},
    timeout=30,
)
print(r.json())

JavaScript

const res = await fetch("https://api.feedmcp.com/v1/xiaohongshu/pgy/creators/costs/history?id=612722f1000000000101d7ec", {
  headers: { Authorization: `Bearer ${process.env.FEEDMCP_API_KEY}` },
});
console.log(await res.json());

MCP

在装好 FeedMCP 的 AI 里,调用 call 工具:

{
  "endpoint": "xiaohongshu.pgy.creators.costs.history",
  "params": {
    "id": "612722f1000000000101d7ec"
  },
  "max_price": "0.04"
}

返回示例

示例数据是虚构的,格式和真实返回一致。

{
  "code": "ok",
  "request_id": "req_7Qm2kXb9TzLp",
  "data": {
    "items": [
      {
        "platform": "xiaohongshu",
        "subject_id": "612722f1000000000101d7ec",
        "period": "2026-10-22",
        "metrics": {
          "impressions": 33108,
          "reads": 4960,
          "engagements": 402,
          "cpm": 105.7,
          "cpe": 8.7,
          "cpv": 1.9
        }
      },
      {
        "platform": "xiaohongshu",
        "subject_id": "612722f1000000000101d7ec",
        "period": "2026-10-23",
        "metrics": {
          "impressions": 33191,
          "reads": 4961,
          "engagements": 402,
          "cpm": 105.4,
          "cpe": 8.7,
          "cpv": 1.9
        }
      }
    ]
  },
  "page": {
    "next_cursor": null,
    "has_more": false
  },
  "warnings": [],
  "meta": {
    "endpoint": "xiaohongshu.pgy.creators.costs.history",
    "platform": "xiaohongshu",
    "fetched_at": "2026-11-19T08:00:00.000Z",
    "source": "FeedMCP",
    "catalog_revision": "d09a736bd39e8b3f",
    "billing": {
      "charged": true,
      "amount": "0.04",
      "currency": "USD",
      "balance": "9.98"
    }
  }
}

出错时的格式见 错误码:每个错误都写明扣没扣钱(charged)和能不能重试(retry)。

小红书的其他接口

常见问题

蒲公英博主每日数据接口多少钱?

成功取到数据一次 $0.04。对象不存在、没取到数据、参数错误、平台出错、超时都不收费。

需要平台账号吗?

不需要,只取公开数据。

ID 或链接怎么找?

笔记 ID 是笔记链接 /explore/ 后面那一串;也可以直接传分享链接(xhslink.com)。

怎么取更多条?

返回里有 page.next_cursor 时,把它作为 cursor 参数传回来取下一页。每一页单独计费。

怎么在 AI 里用?

装好 MCP 后直接说你要什么,AI 会调用 xiaohongshu.pgy.creators.costs.history。