FeedMCP

Data APIs / Xiaohongshu (RedNote)

PGY keyword overview API

A keyword on Xiaohongshu over 30 days: search index, notes, creators, impressions, reads and engagements, with change on the previous period.

Item Value
Endpoint GET https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/metrics
ID xiaohongshu.pgy.keywords.metrics
Price $0.04 / call
Returns One Stats object
Auth Authorization: Bearer $FEEDMCP_API_KEY

Parameters

Name Type Required Description
keyword string yes Keyword

Every endpoint also takes view=full to include the platform's raw data as raw, at the same price.

Returned fields

data.item is one Stats object, with the same fields on every platform:

Field Type Description
platform string Platform
subject_id string Whose figures these are: creator ID or keyword
period string | null Period covered; for day-by-day lists, the day (YYYY-MM-DD)
metrics object The figures, named on each endpoint page; rates are 0–1 and money is CNY

When you are charged

$0.04 per call that returns data. Not found, no data, bad parameters, platform errors and timeouts are free.

Each answer carries meta.billing: what this call cost and the balance left.

Request

cURL

curl "https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/metrics?keyword=%E9%9C%B2%E8%90%A5" \
  -H "Authorization: Bearer $FEEDMCP_API_KEY"

Python

import os, requests

r = requests.get(
    "https://api.feedmcp.com/v1/xiaohongshu/pgy/keywords/metrics",
    params={"keyword": "露营"},
    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/keywords/metrics?keyword=%E9%9C%B2%E8%90%A5", {
  headers: { Authorization: `Bearer ${process.env.FEEDMCP_API_KEY}` },
});
console.log(await res.json());

MCP

From an AI with FeedMCP installed, the call tool:

{
  "endpoint": "xiaohongshu.pgy.keywords.metrics",
  "params": {
    "keyword": "露营"
  },
  "max_price": "0.04"
}

Response

The data below is made up; the shape is the real one.

{
  "code": "ok",
  "request_id": "req_7Qm2kXb9TzLp",
  "data": {
    "item": {
      "platform": "xiaohongshu",
      "subject_id": "露营",
      "period": "近 30 天",
      "metrics": {
        "search_index": 1247360,
        "search_index_change": -0.301,
        "notes": 255734,
        "notes_change": -0.124,
        "creators": 159155,
        "creators_change": null,
        "impressions": 4811119897,
        "impressions_change": null,
        "reads": 759326284,
        "reads_change": null,
        "engagements": 30063467,
        "engagements_change": null,
        "likes": 22945400,
        "saves": 5693217,
        "comments": 1424850,
        "shares": 3183593,
        "follows": null
      }
    }
  },
  "page": null,
  "warnings": [],
  "meta": {
    "endpoint": "xiaohongshu.pgy.keywords.metrics",
    "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"
    }
  }
}

Errors are described in Errors: each says whether you were charged (charged) and whether to retry (retry).

Other Xiaohongshu (RedNote) endpoints

Questions

How much does the PGY keyword overview endpoint cost?

$0.04 per call that returns data. Not found, no data, bad parameters, platform errors and timeouts are free.

Do I need a platform account?

No. Only public data is read.

A note ID is the part after /explore/ in a note link; a share link (xhslink.com) works too.

How do I use it from an AI?

Install the MCP server and ask; your AI calls xiaohongshu.pgy.keywords.metrics.