Discover/Xiaohongshu API
live

Xiaohongshu APIxiaohongshu.com

Access Xiaohongshu note content and user profiles via API. Returns post text, images, video, tags, engagement stats, follower counts, and bios.

Endpoint health
verified 10h ago
get_note_detail
get_user_profile
1/2 passing latest checkself-healing
Endpoints
2
Updated
26d ago

What is the Xiaohongshu API?

The Xiaohongshu API provides two endpoints for retrieving public content from China's Little Red Book platform: get_note_detail and get_user_profile. A single note detail response surfaces 11 fields including title, description, images, video metadata, interaction stats (likes, collects, comments, shares), tags, and the author's location. The user profile endpoint returns follower and following counts, bio, avatar, gender, and profile tags.

Try it
The note/post ID, a 24-character hex string.
Per-note security token unique to each note. Cannot be reused across different notes. Obtained from feed data or share links for the specific note.
api.parse.bot/scraper/112e2db4-437f-4511-96f5-f0f62d23a010/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/112e2db4-437f-4511-96f5-f0f62d23a010/get_note_detail?note_id=641ae75d0000000013031c27&xsec_token=ABT8T8RWGBbr54coTFB8akFqALRtAqAmE1k1Z3_GvW86s%3D' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace xiaohongshu-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Xiaohongshu (小红书) SDK — fetch notes and user profiles."""
from parse_apis.xiaohongshu____api import Xiaohongshu, NoteNotFound

client = Xiaohongshu()

# Fetch a note by ID (requires its per-note xsec_token from feed/share links)
note = client.notes.get(
    note_id="641ae75d0000000013031c27",
    xsec_token="ABT8T8RWGBbr54coTFB8akFqALRtAqAmE1k1Z3_GvW86s=",
)
print(note.title, note.type, note.interact_info.liked_count)

# Access nested resources: author info and images
print(note.user.nickname, note.user.avatar)
for img in note.images[:2]:
    print(img.url, img.width, img.height)

# Fetch the note author's full profile
profile = client.userprofiles.get(user_id=note.user.user_id)
print(profile.nickname, profile.fans, profile.ip_location)
for tag in profile.tags:
    print(tag.type, tag.name)

# Handle a note that doesn't exist or has an expired token
try:
    client.notes.get(note_id="000000000000000000000000", xsec_token="invalid")
except NoteNotFound as exc:
    print(f"Note not found: {exc.note_id}")

print("exercised: notes.get / userprofiles.get / NoteNotFound error handling")
All endpoints · 2 totalmissing one? ·

Fetches a single note full content by its ID. Returns title, description, images, video (when present), tags, author info, and interaction stats. Requires both note_id and xsec_token. The token is per-note and cannot be reused across different notes. Video notes include stream URL, duration, and resolution; image notes include an ordered image list with dimensions.

Input
ParamTypeDescription
note_idrequiredstringThe note/post ID, a 24-character hex string.
xsec_tokenrequiredstringPer-note security token unique to each note. Cannot be reused across different notes. Obtained from feed data or share links for the specific note.
Response
{
  "type": "object",
  "fields": {
    "tags": "array of objects with id, name, type",
    "time": "integer (creation timestamp in milliseconds)",
    "type": "string (normal or video)",
    "user": "object with user_id, nickname, avatar",
    "title": "string",
    "video": "object with duration, url, format, width, height (present only for video notes)",
    "images": "array of objects with url, width, height, file_id",
    "note_id": "string",
    "description": "string (post body text)",
    "ip_location": "string (author location at time of posting)",
    "interact_info": "object with liked_count, collected_count, comment_count, share_count (all strings, may use Chinese units)",
    "last_update_time": "integer (last update timestamp in milliseconds)"
  }
}

About the Xiaohongshu API

Note Detail

The get_note_detail endpoint accepts two required parameters: note_id and xsec_token. The xsec_token is a per-note security token tied specifically to the note being requested — it is not reusable across different notes and must be obtained separately for each one. The response distinguishes between note types via the type field (normal or video). For video notes, a video object is included with duration, url, format, width, and height. Image notes return an images array of objects with url, width, height, and file_id. Both types include tags (each with id, name, and type), a time timestamp in milliseconds, and an ip_location string indicating the poster's reported region.

User Profile

The get_user_profile endpoint takes a user_id and returns a profile object containing nickname, description (bio), avatar URL, gender (0 for male, 1 for female), red_id (the platform's human-readable username), follows and fans counts as strings, ip_location, and a tags array of profile tags that may include type, name, and icon fields. Follower and following counts are returned as strings rather than integers, consistent with how the platform displays large numbers.

Coverage and Constraints

Both endpoints cover publicly accessible content. Search functionality and post creation are not available through this API. The xsec_token requirement for get_note_detail means callers must supply a valid token per note — tokens cannot be generated client-side or reused. Note IDs and their corresponding tokens are typically found in note URLs shared from the platform.

Reliability & maintenanceVerified

The Xiaohongshu API is a managed, monitored endpoint for xiaohongshu.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when xiaohongshu.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official xiaohongshu.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
10h ago
Latest check
1/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Tracking engagement metrics (likes, collects, comments) on specific Xiaohongshu notes over time
  • Extracting product-related tags and descriptions from Little Red Book posts for market research
  • Building creator profiles by combining follower counts, bio text, and avatar from get_user_profile
  • Aggregating image and video assets from notes by type for content analysis
  • Monitoring ip_location fields to map regional content distribution across notes
  • Enriching influencer databases with Xiaohongshu fan counts, follows, and profile tags
  • Identifying trending topic tags on notes by collecting the tags array across multiple note IDs
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Xiaohongshu have an official developer API?+
Xiaohongshu does not offer a publicly documented developer API for accessing note or user profile data. The platform is primarily closed to third-party programmatic access.
What does get_note_detail return for video posts versus image posts?+
For video notes (type: 'video'), the response includes a video object with duration, url, format, width, and height. For standard image notes (type: 'normal'), that object is absent and the images array contains one or more objects with url, width, height, and file_id. Both types return the same core fields: title, description, tags, time, user, ip_location, and interaction stats.
Why does get_note_detail require an xsec_token in addition to the note_id?+
Xiaohongshu attaches a unique security token to each note. This token is specific to the individual note and is not valid for any other note ID. Callers must supply the correct xsec_token paired with each note_id; a mismatched or reused token will not return data.
Does the API return comment content or a list of commenters on a note?+
No. The get_note_detail endpoint returns a comment count as part of the interaction stats, but individual comment text and commenter details are not included in the response. The API covers note-level content and aggregate counts. You can fork it on Parse and revise to add a comment-listing endpoint if that data is needed.
Is search — finding notes by keyword or hashtag — available through this API?+
Search is not currently available. The API covers direct note retrieval by ID via get_note_detail and profile lookup by ID via get_user_profile. You can fork it on Parse and revise to add a search endpoint that accepts keyword or tag inputs.
Page content last updated . Spec covers 2 endpoints from xiaohongshu.com.
Related APIs in Social MediaSee all →
x.com API
Retrieve posts and profile information from X (Twitter) user timelines by specifying a username. Access live post data, engagement metrics, and user profile details for any public account.
ximalaya.com API
Browse Ximalaya's audio content by exploring categories and albums, retrieving detailed album information and track listings, viewing user profiles, and reading user comments. Search for albums and discover audio content organized by category with complete metadata.
toutiao.com API
Browse personalized news feeds, discover trending articles and hot topics, search content across categories, view detailed articles with comments, and explore author profiles on Toutiao. Access video feeds and stay updated with the latest news and trending stories all in one place.
hoyolab.com API
Access character wikis, view player profiles, and browse community posts across Genshin Impact, Honkai: Star Rail, and Zenless Zone Zero. Search and discover game content, character details, and what other players are sharing in real-time.
tiktok.com API
Retrieve detailed information about any public TikTok video including captions, media URLs, view counts, likes, and shares, plus access all comments posted on that video. Perfect for analyzing trending content, monitoring video performance, or building applications that need TikTok video data.
juejin.cn API
Browse Juejin’s recommended article feed, search articles by keyword, and fetch full article details (including markdown/HTML content) by article ID.
qq.com API
Access the latest news, articles, stock indices, and sports schedules from QQ.com's homepage, and search across multiple news categories to stay informed on hot topics and evening reports. Get real-time data including homepage content, images, links, and live sports schedules all from one unified service.
jjwxc.net API
Access detailed information about novels from Jinjiang Literature City, including metadata, chapter lists, full chapter content, author profiles, and search capabilities. Discover trending novels through rankings or find specific titles using powerful search features.