For AI
E-commerceCreators

Xiaohongshu (RedNote) API

Also known as小红书红书小红薯

21 endpoints read Xiaohongshu (RedNote): notes, images, topics, users, comments, trends, PGY, Xiaohongshu Shop. From $0.0200 a call. No Xiaohongshu login and no cookie; a failed call is free.

Endpoints21 endpointsin 8 groups, one response shape
PriceFrom $0.0200per call. Failed calls are free
When an upstream failsRetried for youChecked every day with real calls · 4 days on record
DataFetched liveboards are 10-minute snapshots

One call, as it came back

A recorded call, fields already tidied up: ready for an AI or a spreadsheet.
Recorded
GET/v1/xiaohongshu/notes/search$0.0200
FieldValue
typeimage
published_at2026-05-17 05:25 UTC
author.verifiedfalse
metrics.likes48
metrics.comments21
metrics.shares5
metrics.favorites10

The first 7 rows of a response recorded 2026-10-12 18:43 UTC.

Run it in the Playground · $0.0200
Recorded response
{
  "code": "ok",
  "request_id": "d2403177-e4f6-4d04-99eb-afce599b4c31",
  "data": {
    "items": [
      {
        "id": "67d5e2be00000000d803d22d",
        "url": "https://www.xiaohongshu.com/explore/67d5e2be00000000d803d22d",
        "type": "image",
        "title": "实测一个月咖啡,结论有点意外",
        "text": "把咖啡从头到尾讲清楚,看完少走弯路",
        "published_at": "2026-05-17T05:25:25.000Z",
        "author": {
          "id": "6130783200000000883b2a1e",
          "username": "coffee_lab_sh",
          "name": "山野咖啡馆",
          "avatar_url": "https://sns-avatar-qc.xhscdn.com/avatar/610f17040000000049dd4887.jpg",
          "verified": false
        },
        "metrics": {
          "likes": 48,
          "comments": 21,
          "shares": 5,
          "favorites": 10
        },
        "images": [
          "https://sns-webpic-qc.xhscdn.com/20261010/2d7c7c32da67d3c3d839!nd_dft_wlteh_webp_3"
        ]
      },
      // … 14 more
    ]
  },
  "page": {
    "next_cursor": "c1.Ip12-f4dS4HmSDpdPex7WuLPBr1zJAbdhL_Wj8K0",
    "cursor_expires_at": "2026-10-12T19:43:26.000Z",
    "has_more": true,
    "returned": 15
  },
  "warnings": [],
  "meta": {
    "capability": "xiaohongshu.notes.search",
    "result_status": "complete",
    "fetched_at": "2026-10-12T18:43:26.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "lang": "capability",
      "metrics.views": "platform",
      "metrics.reposts": "platform",
      "author.followers": "capability",
      "hashtags": "capability",
      "mentions": "capability",
      "is_pinned": "capability",
      "post_id": "platform",
      "parent_id": "platform",
      "root_id": "platform"
    },
    "billing": {
      "amount": "0.02",
      "currency": "USD",
      "balance_after": "9.98"
    }
  }
}

From a response recorded 2026-10-12 18:43 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

What you can get

Each row is an endpoint: what it returns and what one call costs.

EndpointPathReturnsPrice
Notes3
Xiaohongshu note searchGET/v1/xiaohongshu/notes/searchPost list$0.0200
Xiaohongshu note detailGET/v1/xiaohongshu/notes/getPost$0.0200
Xiaohongshu note commentsGET/v1/xiaohongshu/notes/comments/listComment list$0.0200
Images1
Xiaohongshu image searchGET/v1/xiaohongshu/images/searchPost list$0.0200
Topics2
Xiaohongshu topic detailGET/v1/xiaohongshu/topics/getTopic$0.0200
Xiaohongshu topic notesGET/v1/xiaohongshu/topics/notes/listPost list$0.0200
Users3
Xiaohongshu user searchGET/v1/xiaohongshu/users/searchAccount list$0.0200
Xiaohongshu user profileGET/v1/xiaohongshu/users/getAccount$0.0200
Xiaohongshu user notesGET/v1/xiaohongshu/users/notes/listPost list$0.0200
Comments1
Xiaohongshu comment repliesGET/v1/xiaohongshu/comments/replies/listComment list$0.0200
Xiaohongshu trendsGET/v1/xiaohongshu/trends/listTrend list$0.0200
Xiaohongshu PGY creator searchGET/v1/xiaohongshu/pgy/creators/searchCreator list$0.0400
Xiaohongshu PGY creator audience profileGET/v1/xiaohongshu/pgy/creators/audience/getAudience$0.0400
Xiaohongshu PGY creator detailGET/v1/xiaohongshu/pgy/creators/getCreator$0.0400
Xiaohongshu PGY creator metricsGET/v1/xiaohongshu/pgy/creators/metricsPGY creator metrics$0.0400
Xiaohongshu PGY creator notesGET/v1/xiaohongshu/pgy/creators/notes/listPGY creator note list$0.0400
Xiaohongshu PGY keyword search indexGET/v1/xiaohongshu/pgy/keywords/historyKeyword index history$0.0400
Xiaohongshu PGY related keywordsGET/v1/xiaohongshu/pgy/keywords/relatedRelated keyword list$0.0400
Xiaohongshu product searchGET/v1/xiaohongshu/shop/products/searchProduct list$0.0200
Xiaohongshu product detailGET/v1/xiaohongshu/shop/products/getProduct$0.0200
Xiaohongshu product reviewsGET/v1/xiaohongshu/shop/products/reviews/listReview list$0.0200
Prices are the prices in force. A call that fails, or whose result is uncertain, costs nothing.Xiaohongshu (RedNote) API pricing →Xiaohongshu (RedNote) data in your AI →See live status →

Only on Xiaohongshu

PGY, Xiaohongshu Shop: data that sits behind Xiaohongshu's own dashboards and sign-ins. Here each is one GET.

Xiaohongshu PGY API →

Creator search, rate cards, audience profiles, performance, keyword search index

Xiaohongshu's official creator marketplace (蒲公英, PGY): creator search, rate cards, audience profiles and performance figures, plus keyword search indexes.

One keyword on 2026-07-13 · keyword maskedRecorded
Search index8,876
Notes33,361
Impressions25,229,649
Views4,523,846
Engagements188,216
GET /v1/xiaohongshu/pgy/creators/metrics$0.04007 endpoints · from $0.0400 →
Xiaohongshu Shop API →

Product search, product details, buyer reviews

Public product data of Xiaohongshu's shop: product search, product details and buyer reviews.

GET /v1/xiaohongshu/shop/products/search$0.02003 endpoints · from $0.0200 →
Xiaohongshu topic ideas →

What Xiaohongshu is watching now

The platform's own list at the moment of the call, with its heat figures. The free board page shows it all.

Top 5 · read Oct 21, 2026, 08:05 UTC+8Recorded
1 用AI机器人进行反诈太牛了24.24M
2 田曦薇闫桉红裙黑西装扫楼发糖22.94M
3 贾冰饭点首发地锅鸡贴饼子教程22.82M
4 读书人一声长叹21.64M
5 国考审核被驳回原因大揭秘21M
GET /v1/xiaohongshu/trends/list$0.0200

What people build with it

Ready-made tasks your AI can run on Xiaohongshu data. Each is a few calls under a spending cap.

Ask about Xiaohongshu right inside Claude or Cursor

Add the DataXAPI MCP server and the AI finds the Xiaohongshu endpoint it needs and calls it; answers link back to the source. You pay for the calls it makes.

Xiaohongshu MCP setup →
https://api.dataxapi.com/mcp

Start in three steps

The call shown here is Xiaohongshu note search. Every other Xiaohongshu endpoint is called the same way and answers in the same envelope.

Get a key

Sign in with an emailed code or Google. Free trial, no card needed.

Call it, or let your AI call it

One GET from your code. Or paste this prompt into your agent with your key in it: it sets itself up, then finds and calls these endpoints by itself.

Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_live_…; use it for every DataXAPI call.

Sign in to copy it with your key

Read the same shape every time

Items are in data.items (one object in data.item), the next page in page.next_cursor, the charge in meta.billing.amount. A failed call is not charged.

Read the quickstart →
curl -G "https://api.dataxapi.com/v1/xiaohongshu/notes/search" \
  --data-urlencode "query=咖啡" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
from dataxapi import DataXAPI

dx = DataXAPI()  # reads DATAXAPI_API_KEY
result = dx.xiaohongshu.notes.search(query="咖啡")
print(result["data"]["items"])
import { DataXAPI } from "@dataxapi/sdk";

const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.xiaohongshu.notes.search({ query: "咖啡" });
console.log(result.data.items);
dataxapi call xiaohongshu.notes.search 'query=咖啡'
{
  "mcpServers": {
    "dataxapi": {
      "type": "http",
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DATAXAPI_API_KEY}"
      }
    }
  }
}

Add this to your MCP client, then ask your agent to call xiaohongshu.notes.search.

Edge cases

What the Xiaohongshu endpoints do at their edges, and what to check when a call does not return what you expected.

Page sizes
A list returns 5 to 120 items a page, depending on the endpoint. 10 of the 13 lists go on to a next page: page.next_cursor, passed back as cursor, each page a call of its own. The others return one page only.
Fields it cannot give
17 of the 21 endpoints cannot fill every field of the object they return. Each endpoint's page lists which, and every answer repeats them in meta.unavailable: a missing field is never a silent zero.
A missing object that reads as empty
Xiaohongshu comment replies, Xiaohongshu PGY related keywords, Xiaohongshu topic notes, Xiaohongshu product reviews, Xiaohongshu PGY creator notes: an object that does not exist cannot be told from one with nothing under it, so the answer is an empty result, not a 404, and is charged as an empty result is.
Preview structures
11 endpoints return a preview structure whose fields may still change; the others return a standard object, the same on every platform.
Snapshots
Xiaohongshu trends: a board is a snapshot refreshed every 10 minutes, and meta.fetched_at says when it was taken.
IDs are 24 characters
Notes, users, topics and products are named by 24 hexadecimal characters. A note's link ends in its ID (/explore/<id> or /discovery/item/<id>); short links and share texts are not taken.
Search returns an excerpt
A search result is the card, not the note: its text is an excerpt and its title has lost its emoji. An account's note list gives the first 100 characters. Note detail has the whole text.
A link that opens
Search results carry a link with the access token the website asks for. An account's note list has no link: fetch the note by its ID to get one.
No view counts
Notes come without a view count: the platform does not give one.
The PGY creator ID
PGY endpoints take the creator ID from the PGY creator search. That search matches what creators write about; for terms no creator matches it still returns loosely related creators, not an empty list.

Questions about the Xiaohongshu (RedNote) API

Short answers. The details are on each endpoint's page.

How is the Xiaohongshu (RedNote) API priced?

Per call, no subscription. From $0.0200 to $0.0400 a call; each endpoint's page shows its own price. You are charged when data comes back; a failed call costs nothing.

Do I need a Xiaohongshu account or a cookie?

No. One DataXAPI key is all you hold: no Xiaohongshu login, no cookie, no device to keep alive. The endpoints return publicly visible data only.

Is the data live?

A call fetches from Xiaohongshu at that moment, and meta.fetched_at says when. Xiaohongshu trends: a board is a snapshot refreshed every 10 minutes. A result is kept for 24 hours, so a retry with the same Idempotency-Key is not charged again.

Is an empty result charged?

A list that comes back empty is charged its price: the search was run. Reading one object that does not exist answers not_found and is free.

What happens when Xiaohongshu changes something?

A call that fails is not charged, whatever the reason. An endpoint that is paused answers capability_paused, also free, and GET /v1/catalog/status says what is up right now.

Related

Call Xiaohongshu with one key.

Free trial on sign-up: up to 5 calls at $0.0200. No card. No Xiaohongshu login, no cookie, no subscription. A failed call is free.

Start free