Xiaohongshu (RedNote) note search API

Search Xiaohongshu notes by terms: title, text, author, engagement counts, images, and a link that opens. Each says whether it is a brand partnership note on record. By relevance, newest, most liked, most commented or most saved; video or image notes only; published in the last day, week or half year. Up to 20 items a call; $0.0200 per call. Errors and timeouts are not charged.

GEThttps://api.dataxapi.com/v1/xiaohongshu/notes/search
Also known asrednote searchxhs search notesIn Chinese: 小红书笔记搜索 API
Price$0.0200/ call · Errors and timeouts are not charged
Returns20 a pagea page, with a cursor for the next
When a call failsRetried for youon the same route, or a backup route; never charged
StatusLive status30-day availability 100%

Try it

Change a value and the request on the right follows.
Run · $0.0200

Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 5 calls.

The first 6 rows of a response recorded 2026-10-12 18:43 UTC.
FieldValue
typeimage
published_at2026-05-17 05:25 UTC
metrics.likes48
metrics.comments21
metrics.shares5
metrics.favorites10
curl -G "https://api.dataxapi.com/v1/xiaohongshu/notes/search" \
  --data-urlencode "query=咖啡" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
  "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"
        },
        "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.verified": "capability",
      "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.

Size as sent: 21.5 KB in the standard view (9.5 KB compact, 21.9 KB full).

{
  "code": "ok",
  "request_id": "d50c391b-4bb0-4b40-a910-1e573bd40251",
  "data": { "items": [] },
  "page": {
    "next_cursor": null,
    "cursor_expires_at": null,
    "has_more": false,
    "returned": 0
  },
  "warnings": [],
  "meta": {
    "capability": "xiaohongshu.notes.search",
    "result_status": "empty",
    "fetched_at": "2026-10-12T18:43:26.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "lang": "capability",
      "metrics.views": "platform",
      "metrics.reposts": "platform",
      "author.verified": "capability",
      "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 recording of 2026-10-12 18:43 UTC, edited by hand to show this case. The request ID and balance are made up.

Size as sent: 683 B in the standard view (683 B compact, 683 B full).

This recorded response is 51k tokens as the platform's own JSON, 10k as DataXAPI's JSON, and 3,600 as an AI reads it through DataXAPI's MCP server: 93% fewer (counted 2026-11-06).

This example as a JSON file

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

dx = DataXAPI()  # reads DATAXAPI_API_KEY
result = dx.xiaohongshu.notes.search(query="咖啡")
print(result["data"]["items"])
// npm i @dataxapi/sdk
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.

Parameters

querytextrequired

Search terms. Example: 咖啡.

sorttext

Sort order: relevance, newest, most liked, most commented, most saved. Values: relevance (default), latest, popular, most_comments, most_favorites. Example: relevance.

typetext

Video notes only (video) or image notes only (image); both when left out. Values: video, image. Example: video.

published_withintext

Only those published in the last day, week or half year. Values: day, week, half_year. Example: week.

cursortext

Cursor returned by the previous page. Pass page.next_cursor of the page before, unchanged. Each page is charged as a call of its own.

viewtext

How much of each item to return. All three cost the same. Values: compact, standard (default), full.

fieldslist of text

Return only these fields. Each by its path, such as author.name.

Known limits

Returned fields

data.items is a list of post objects. Stable: fields are only ever added.

idtextcompact

ID; pass it unchanged to the get endpoint

urllinkcompact

Link that opens the post

typetextcompact

Content formatvideoimagetextarticle

titletextcompact

Title

On this platform: The title as the result card shows it, without emoji

texttextcompact

Body text

On this platform: The excerpt the result card shows, not the whole text; the note itself has all of it

Long text: the compact view keeps the first 500 characters and says so in warnings.

langtextstandardNot provided here

Language of the text

Show all 35 fields →
published_attimecompact

When it was published

authorobjectcompact

Author

author.idtextcompact

Author's account ID

author.usernametextcompact

Author's handle

author.nametextcompact

Author's display name

author.avatar_urllinkstandard

Author's avatar

author.verifiedyes/nostandardNot provided here

Whether the author is verified

author.followersintegerstandardNot provided here

Author's follower count

metricsobjectcompact

Engagement counts

metrics.likesintegercompact

Likes

metrics.commentsintegercompact

Comments

metrics.sharesintegercompact

Shares

metrics.favoritesintegercompact

Saves

metrics.viewsintegercompactThe platform has none

Views

metrics.repostsintegercompactThe platform has none

Reposts

imageslist of linkstandard

Image addresses

hashtagslist of textstandardNot provided here

Hashtags, without the #

mentionslist of objectstandardNot provided here

Accounts mentioned in the text

mentions[].idtextstandardNot provided here

Account ID

mentions[].usernametextstandardNot provided here

Handle

mentions[].nametextstandardNot provided here

Display name

is_pinnedyes/nostandardNot provided here

Whether the author pinned it

post_idtextcompactThe platform has none

ID of the thread's root post when this is a reply; otherwise null

parent_idtextcompactThe platform has none

ID of the item it replies to directly; otherwise null

root_idtextcompactThe platform has none

ID of the first-level reply its thread hangs under

ext.is_sponsoredyes/nofull

Whether it is a brand partnership note the platform has on record (报备, marked as a partnership in the app); the brand is not given here

approximatelist of objectcompact

Which numbers of this item are approximate or lower bounds; absent when all are exact

approximate[].fieldtextcompact

Path of the field, such as metrics.views

approximate[].kindtextcompact

Approximate, or a lower boundapproximatelower_bound

Typical size of one item: compact 601 B, standard 1.4 KB, full 1.4 KB (measured on the response recorded 2026-10-12 18:43 UTC).

What this endpoint cannot give

langNot provided here
author.verifiedNot provided here
author.followersNot provided here
metrics.viewsThe platform has none
metrics.repostsThe platform has none
hashtagsNot provided here
mentionsNot provided here
mentions[].idNot provided here
mentions[].usernameNot provided here
mentions[].nameNot provided here
is_pinnedNot provided here
post_idThe platform has none
parent_idThe platform has none
root_idThe platform has none

When you are charged

A result with data$0.0200, once per call
Invalid parameters, a failure or a timeoutnot charged
CaseCharged
Each further pagecharged as a call of its own
The most one call can cost$0.0200 (send X-Max-Price to refuse anything above your own limit)

Prices as read 2026-11-19 19:50 UTC, under price book 19, in effect since 2026-11-17 18:04 UTC; the Playground reads the price in force before a run.

Errors

What this endpoint can answer with; codes all endpoints share are on the full list.

HTTPCodeMeaningCharged
400invalid_paramsA parameter is invalidRetry: After a fixNo
400cursor_mismatchThe cursor was issued for another endpoint or other parametersRetry: After a fixNo
402insufficient_balanceThe balance is too lowRetry: After a fixNo
410cursor_expiredThe cursor expired; start again from the first pageRetry: NoNo
502upstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNo
504timeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNo

All error codes →

Questions

How much does the Xiaohongshu (RedNote) note search API cost?

$0.0200 per call. The most one call can cost is $0.0200.

When am I not charged?

Errors and timeouts are not charged.

How many items does one call return, and how do I get the next page?

20 items a page. The page size is the platform's; limit is not accepted. For the next page pass page.next_cursor as cursor; a cursor is valid for 1 hour. page.has_more is false on the last page.

30-day availability

100% of the time over the last 30 days, this endpoint was serving calls: at least one of its routes was taking them, so it was neither paused nor down.

A failed call is not charged.

Every endpoint's state now, and each incident with whether anyone was charged: the status page →

The same thing on other platforms

All 30 Xiaohongshu (RedNote) endpoints

Xiaohongshu (RedNote) endpoints
Xiaohongshu PGY endpoints
Xiaohongshu Shop endpoints

Use it in your AI

Copy this prompt

Your API key is built in, so there is nothing to configure.

Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_…; use it for every DataXAPI call.
Sign in to copy it with your key

No account yet? Sign-up takes an email and no card, and a failed call is never charged.

then paste

Paste it into your agent

It reads the page the prompt points to and connects itself.

Your agent
Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_••••; use it for every DataXAPI call.
DataXAPI connected · 5 tools ready
now try it

Now ask something

Use one of these, or your own words.

Read https://dataxapi.com/apis/xiaohongshu/notes/search.md and help me use the DataXAPI endpoint xiaohongshu.notes.search (Xiaohongshu (RedNote) note search).
Prefer to set it up by hand?
dataxapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the DataXAPI MCP server and the base skill. The key is read from DATAXAPI_API_KEY; none is written into a file.MCP server: https://api.dataxapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call xiaohongshu.notes.search.Other clients →
Ask with this pageSends the Markdown version
Brief for an AIEverything needed to call it, as text
Show the text
Use the DataXAPI endpoint xiaohongshu.notes.search (Xiaohongshu (RedNote) note search). Search Xiaohongshu notes by terms: title, text, author, engagement counts, images, and a link that opens. Each says whether it is a brand partnership note on record. By relevance, newest, most liked, most commented or most saved; video or image notes only; published in the last day, week or half year.
Call GET https://api.dataxapi.com/v1/xiaohongshu/notes/search with the header "Authorization: Bearer $DATAXAPI_API_KEY". Read the key from the environment variable DATAXAPI_API_KEY; never write it into code.
Parameters:
- query (required): Search terms. Example: 咖啡.
- sort: Sort order: relevance, newest, most liked, most commented, most saved. Values: relevance (default), latest, popular, most_comments, most_favorites. Example: relevance.
- type: Video notes only (video) or image notes only (image); both when left out. Values: video, image. Example: video.
- published_within: Only those published in the last day, week or half year. Values: day, week, half_year. Example: week.
- cursor: Cursor returned by the previous page. Pass page.next_cursor of the page before, unchanged. Each page is charged as a call of its own.
- view: How much of each item to return. All three cost the same. Values: compact, standard (default), full.
- fields: Return only these fields. Each by its path, such as author.name.
Price: $0.0200 per call. Errors and timeouts are not charged.
The answer is JSON: data.items holds post; meta.billing.amount is what this call was charged.
Example:
curl -G "https://api.dataxapi.com/v1/xiaohongshu/notes/search" \
  --data-urlencode "query=咖啡" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
Full reference in Markdown: https://dataxapi.com/apis/xiaohongshu/notes/search.md

Names and identifiers

In Chinese
小红书笔记搜索 API
Endpoint ID
xiaohongshu.notes.search
Endpoint
GET /v1/xiaohongshu/notes/search
Last checked 2026-11-19 19:50 UTC.View the Markdown versionopenapi.jsonllms.txt

Start with one key.

237 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free