Xiaohongshu API

Get Xiaohongshu notes, users, comments, products and the Pugongying content square as JSON with one EveryInfra API key, from $5.56 per 1,000 calls.

All you need is one API key, no Xiaohongshu account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.

  • Failed calls and empty results are not charged.
  • No Xiaohongshu login needed.
  • 17 endpoints, one key.

Real sample values for one note

POST /api/v1/social params {"url":"https://www.xiaohongshu.com/explore/6aa7a3f600000000110335f8?xsec_token=YByFNzoKupps8B3qI774Gx7XGxfHpq4QWEvxU4zsD8454%3D"}

Values from real sample calls for the same note, captured October 15, 2026 – November 7, 2026 (UTC); each box links to that endpoint.

Platform availability

24h health
Normal
Normal

Last 30 days

Available capabilities

Read notes, author profiles, and threaded comments using keywords and post URLs to organize topic research and user feedback.

Use note URLs for details and comments. Comments need a valid xsec_token from recent search results.

Notes and search

  • SearchNormal

    Find Xiaohongshu notes on a topic, 20 per page.

    search$5.56 per 1,000 calls

  • Read one Xiaohongshu note in full.

    note$5.56 per 1,000 calls

  • Fetch the playback link and duration for one Xiaohongshu video note from the same URL that note accepts.

    video$5.56 per 1,000 calls

  • HashtagNormal

    Browse the notes on one Xiaohongshu topic page, newest or most popular first.

    hashtag$5.56 per 1,000 calls

  • TrendingHealthy · health 100%

    See a sample of the notes Xiaohongshu is recommending right now, up to 30, with title, author, image and video flag.

    trending$5.56 per 1,000 callsEvery 20 rows count as one call

  • Read the place a Xiaohongshu note is tagged with, by note link or share link.

    note_location$5.56 per 1,000 calls

Users

  • ProfilesHealthy · health 96%

    Look up a Xiaohongshu account.

    profile$5.56 per 1,000 calls

  • List the notes a Xiaohongshu creator has published, 20 per page.

    user_posts$5.56 per 1,000 calls

  • User searchAvailable · health 80%

    Find Xiaohongshu creators and brand accounts by keyword, 20 per page.

    search_users$5.56 per 1,000 calls

  • List the followers of a Xiaohongshu account by its 24-character user_id or profile link.

    followers_list$5.56 per 1,000 calls

Comments

  • CommentsNormal

    Pull top-level comments on a Xiaohongshu note, 15 per page, with text, likes, IP location, commenter, reply count and author or AI-account flags.

    comments$5.56 per 1,000 calls

  • Collect comments from 1 to 20 Xiaohongshu notes in one call.

    comments_batch$5.56 per 1,000 callsEach element in urls counts as one call

  • Comment repliesHealthy · health 100%

    Read the replies under one comment on a Xiaohongshu note, 10 per page.

    sub_comments$5.56 per 1,000 calls

Products

  • Search products in the Xiaohongshu store by keyword.

    product_search$5.56 per 1,000 calls

  • Read one product from the Xiaohongshu store by its 24-character ID or goods-detail link.

    product_detail$5.56 per 1,000 calls

  • ReviewsNormal

    Read buyer reviews of a Xiaohongshu store product by its 24-character product_id, in default or newest order.

    reviews$5.56 per 1,000 calls

Pugongying

  • Search by keyword for notes in the content square of Pugongying, Xiaohongshu's brand–creator marketplace.

    pgy_content_square$16 per 1,000 calls

Xiaohongshu API pricing

6 questions to ask before choosing a data API for Xiaohongshu

Does Xiaohongshu have an official API, and how is it different from this one?

Xiaohongshu's official open platforms serve merchants, e-commerce software vendors, mini-program developers and content-sharing partners. Its e-commerce platform exposes product, order, after-sales and logistics data for stores that authorize an app; its published documentation does not describe an API for searching notes or reading other users' notes and comments. With one EveryInfra API key, you can read public Xiaohongshu data in the same request format as other platforms, without applying for Xiaohongshu developer access.

Official sources: Xiaohongshu e-commerce open platform: API permission packages · Xiaohongshu e-commerce open platform · Checked

Do I need to log in to Xiaohongshu or provide a cookie to make calls?

No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.

How is it billed? Are failed requests charged? Is there a free trial?

Billing is per request, from $5.56 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged; when urls has several links, each link counts as one request. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.

Can I connect this Xiaohongshu API to Claude or Cursor?

Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server/xiaohongshu. An agent can search Xiaohongshu content, read comments and look up accounts on its own.

What compliance points apply when using Xiaohongshu data?

The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.

What Xiaohongshu data can I get?

Available Xiaohongshu capabilities (17): Search, Profiles, Posts by user, Note details, Video details, Comments, Comments from multiple URLs, Comment replies, User search, Hashtag, Trending, Product search, Product details, Reviews, Follower list, Note location, Pugongying note search. The parameters and response fields of each capability are in the API reference on this page.

Use cases

  • Note topics and content analysis

    Read notes by keyword or topic, compare titles, likes, saves and comments, then read the full text.

    Usessearchhashtagnote

  • Creator screening and account monitoring

    Search creators by keyword, read their profiles, then see which notes they post.

    Usessearch_usersprofileuser_posts

  • Comment and sentiment analysis

    Read a note's comments and expand the replies under a comment; read the first page of comments for many notes at once.

    Usescommentssub_commentscomments_batch

  • Product research

    Search mall products, read one product's price, parameters and shop rating, then read the buyer reviews.

    Usesproduct_searchproduct_detailreviews

  • Audience and location

    Read an account's followers, or the place tagged on a note.

    Usesfollowers_listnote_location

  • Sampling popular content

    Read the notes the discover page recommends right now, or the notes the Pugongying content square ranks by popularity.

    Usestrendingpgy_content_square

Xiaohongshu Open Platform and Deeplink documentation vs EveryInfra

How Xiaohongshu's official documentation and EveryInfra compare on what is open, what you need to connect and the page entries:

ComparedXiaohongshu Open Platform and Deeplink documentationEveryInfra
What is openOnly the basic user information scope (basic_info) is open for now. More capabilities will open in later versions.Notes, users, comments, products and the Pugongying content square: 17 endpoints in all.
Access you needThe documentation says to go to the management center and submit the app owner, name, icon, platform, scopes and other details. Then you wait about 1 to 3 working days for review.One EveryInfra API key in the Authorization: Bearer header. You don't need to submit an app or log in to Xiaohongshu.
Page entriesIn the Deeplink documentation, an image-and-text note is "xhsdiscover://item/<note_id>", a user home page is "xhsdiscover://user/<user_id>" and a product is "xhsdiscover://page/goods/<goods_id>".note, profile and product_detail take the same note, user and product identifiers and return the data on those pages.

The Xiaohongshu Open Platform documentation and the Deeplink documentation are in Chinese. The table shows a translation, checked against the pages on 2026-11-21. Update dates of the Open Platform pages are in the sources; the Deeplink page shows no update date. Official sources: Quick start (updated 2026-03-29) · Deeplink

What does each Xiaohongshu action accept?

Parameter table for all 17 actions

Sync delivery for every action.

ActionRequiredOptionalLimitPer 1,000Blank rows: $5.56Response fields
search

Search

Find Xiaohongshu notes on a topic, 20 per page. Get title, body excerpt, like, save, comment and share counts, author and publish time. Narrow by content type, sort and date range. For the next page, send next_page_token back as page_token. Search text is an excerpt, not the full note.

keywordcontent_type, date_range, page_token, sortEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.id · url · title · text · like_count · collect_count · comment_count · share_count · posted_at · image_url · author_name · author_id · avatar_url · author_url · is_video · next_page_token · video_url · duration_sec · duration_seconds · platform · poi_id · poi_name · images · is_goods_note · is_cooperation_note · author_is_verified · updated_at · author_red_id · video_width · video_height
profile

Profiles

Look up a Xiaohongshu account. Get nickname, Xiaohongshu ID, bio, IP location, verification and exact follower, following, post, like and save counts. Pass the ID from a /user/profile/ link, the link itself or a commenter's author_id. Counts that are not shown come back null, not zero.

user_id——user_id · nickname · red_id · url · bio · follower_count · following_count · like_collect_count · post_count · gender · ip_location · avatar_url · is_verified · tags · like_count · collect_count · real_name_info · verification_type · verification_text · location · platform
user_posts

Posts by user

List the notes a Xiaohongshu creator has published, 20 per page. Pinned notes come first, then the rest from newest to oldest. Get excerpt, counts and video links. Use page_token for more. Links here carry no access token, and text is an excerpt. Call note for a browser-ready link and the full body.

user_idpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.id · url · title · text · like_count · collect_count · comment_count · share_count · posted_at · image_url · author_name · author_id · avatar_url · author_url · is_video · next_page_token · video_url · duration_sec · duration_seconds · platform · images · is_goods_note · is_pinned · ip_location
note

Note details

Read one Xiaohongshu note in full. Get body, every image in order, topics, mentioned users, engagement counts and IP location. Coordinates come back when the images carry them. Pass the complete note link with xsec_token intact. The video play link and the comments need separate video and comments calls.

url——id · url · title · text · like_count · collect_count · comment_count · share_count · posted_at · ip_location · author_name · author_id · is_video · avatar_url · author_url · platform · images · tags · topics · mentioned_users · lat · lng · has_goods · is_cooperation_note · author_red_id · author_is_verified · language · updated_at · like_count_estimated · collect_count_estimated · comment_count_estimated · share_count_estimated · cover_url · duration_sec · duration_seconds · is_live_photo
video

Video details

Fetch the playback link and duration for one Xiaohongshu video note from the same URL that note accepts. The signed link expires, so download it soon. Image notes come back empty and are refunded.

url——id · url · video_url · duration_sec · duration_seconds · video_width · video_height · platform
comments

Comments

Pull top-level comments on a Xiaohongshu note, 15 per page, with text, likes, IP location, commenter, reply count and author or AI-account flags. Order them with sort, page with page_token, and read the replies themselves through sub_comments.

urlpage_token, sortEach call returns one page of up to 15 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.id · text · like_count · posted_at · posted_date · ip_location · author_name · author_id · sub_comment_count · note_id · note_url · next_page_token · images · is_author · author_avatar_url · author_red_id · author_is_ai_agent · mentioned_users · comment_tags · sub_comments · platform
comments_batch

Comments from multiple URLs

Collect comments from 1 to 20 Xiaohongshu notes in one call. Each row has its note_id and note_url, so threads stay separate. Every link needs a valid note ID and xsec_token. A note that fails is reported as missed, not as having zero comments.

urlssortEach call returns one page of up to 15 comments for each note, with no next_page_token; to read further, page one note at a time with comments. limit is accepted and has no effect.$5.56 per 1,000 requestsEach element in urls counts as one callid · text · like_count · posted_at · posted_date · ip_location · author_name · author_id · sub_comment_count · note_id · note_url · next_page_token · images · is_author · author_avatar_url · author_red_id · author_is_ai_agent · mentioned_users · comment_tags · sub_comments · platform
sub_comments

Comment replies

Read the replies under one comment on a Xiaohongshu note, 10 per page. Get text, likes, IP location and who each reply answers. Pass the note link with a comment_id from the comments results. Use reply_to_id to rebuild the thread.

url, comment_idpage_tokenEach call returns one page of up to 10 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.id · text · like_count · posted_at · posted_date · ip_location · author_name · author_id · reply_to_id · reply_to_author_name · reply_to_author_id · next_page_token · images · is_author · author_avatar_url · author_red_id · author_is_ai_agent · mentioned_users · comment_tags · platform
search_users

User search

Find Xiaohongshu creators and brand accounts by keyword, 20 per page. Get nickname, Xiaohongshu ID, follower count and verification type. Filter by follower_range or user_type. Follower counts approximate the rounded list figures, so call profile for exact numbers.

keywordfollower_range, page_token, user_typeEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.user_id · nickname · red_id · avatar_url · url · follower_count · is_verified · verification_type · next_page_token · platform
hashtag

Hashtag

Browse the notes on one Xiaohongshu topic page, newest or most popular first. Get full text, all images, engagement counts and video details. Pass a 24-character topic_id or topic link. Pages hold up to 20 notes, and only a missing next_page_token marks the end.

topic_idpage_token, sortEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.id · url · title · text · like_count · collect_count · comment_count · share_count · posted_at · image_url · author_name · author_id · avatar_url · author_url · is_video · next_page_token · video_url · duration_sec · duration_seconds · platform · images
trending

Trending

See a sample of the notes Xiaohongshu is recommending right now, up to 30, with title, author, image and video flag. The selection changes on every load, and list position neither explains the algorithm nor builds a history.

—Catalog values: defaultLimit=20, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$5.56 per 1,000 requestsEvery 20 rows count as one callid · url · title · author_name · is_video · image_url · platform
product_search

Product search

Search products in the Xiaohongshu store by keyword. Each product has title, price, list price, currency, units sold when the page shows them, stock status, image and shop. A page usually holds 19 products (18 to 20 seen); page with next_page_token. These are store products, not notes, and each id works in product_detail.

keywordpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.id · title · url · price · original_price · currency · image_url · sold_count · in_stock · shop_id · shop_name · next_page_token · platform
product_detail

Product details

Read one product from the Xiaohongshu store by its 24-character ID or goods-detail link. Get price and list price, category, variant, stock, units sold (a lower bound when the page shows a rounded figure), main and detail images, product attributes, and the shop's rating when it has one, total sales, follower count and linked Xiaohongshu account.

product_id——id · title · url · price · original_price · currency · in_stock · category · sold_count · variant_name · image_urls · detail_image_urls · attributes · shop_id · shop_name · shop_rating · shop_sold_count · shop_user_id · shop_follower_count · platform
reviews

Reviews

Read buyer reviews of a Xiaohongshu store product by its 24-character product_id, in default or newest order. Each review has full text, a 5-point rating, service and delivery ratings, helpful votes, reply count, buyer photos, review tags, the variant bought and the review date. Reviewer IDs, names and avatars are never returned. Up to 20 per page.

product_idpage_token, sortEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.id · product_id · text · rating · rating_scale · service_rating · logistics_rating · like_count · reply_count · images · tags · sku · posted_date · next_page_token · platform
followers_list

Follower list

List the followers of a Xiaohongshu account by its 24-character user_id or profile link. Each follower has user_id, nickname, avatar, profile link, follower count and note count. A page usually holds 19 to 20 people; page with next_page_token. Many accounts hide their follower list, and then the call fails and is refunded.

user_idpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.user_id · nickname · avatar_url · url · follower_count · note_count · of_user · next_page_token · platform
note_location

Note location

Read the place a Xiaohongshu note is tagged with, by note link or share link. Get the location text as shown, the city, the place name and the place IDs. A note with no tagged place returns an empty result.

url——note_id · url · location_text · city · poi_name · poi_ids · platform
pgy_content_square

Pugongying note search

Search by keyword for notes in the content square of Pugongying, Xiaohongshu's brand–creator marketplace. Results are sorted by popularity with no time filter, so notes from the last month or two may appear. Each note has rank, reads, saves, publish time, an ad flag and the author's followers. 20 per page and at most 100 rows per search.

keywordpage_tokenEach call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect.$16 per 1,000 requestsrank · id · url · title · is_video · collect_count · view_count · posted_at · images · is_ad · author_id · author_name · author_follower_count · platform
What each action's parameters mean (17 actions)

Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.

Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.

What do the Xiaohongshu search parameters mean?

Find Xiaohongshu notes on a topic, 20 per page. Get title, body excerpt, like, save, comment and share counts, author and publish time. Narrow by content type, sort and date range. For the next page, send next_page_token back as page_token. Search text is an excerpt, not the full note.

Full API reference: parameters, code samples, response example and health
keywordRequired
Specifies the query string used to search Xiaohongshu note content (e.g., "sensitive skin sunscreen") in the search action. Searches note text, not user IDs.
content_typeOptional
Filters returned notes by content type, such as image/text or video. Use the allowed values listed for the current action.
Allowed values:allimagevideo
Xiaohongshu: Image-Text and Video Note Entry Points — Xiaohongshu public deeplink documentation separately lists image-text notes, video notes, and note comment pages. This reference only cites distinctions between content types; app redirect parameters in the documentation cannot be passed directly to this endpoint. · Checked
date_rangeOptional
Filters notes by publish time: any_time (no limit, the same as omitting it), last_24_hours (the past 24 hours), last_7_days (the past 7 days), last_30_days (the past month), last_6_months (the past six months) or last_1_year (the past year). With last_30_days and last_1_year a page can hold fewer than 20 notes, and a page with none is not charged; add sort=newest for fuller pages. These two values work in synchronous calls only. Keep the same value while paging.
Allowed values:any_timelast_1_yearlast_24_hourslast_30_dayslast_6_monthslast_7_days
page_tokenOptional
Pagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page. Each page is one call, billed per request.
sortOptional
Sets the order of note lists in the search action: relevance, newest, most_liked, most_commented or most_collected. Use only the allowed values listed for the action.
Allowed values:most_collectedmost_commentedmost_likednewestrelevance

What do the Xiaohongshu profile parameters mean?

Look up a Xiaohongshu account. Get nickname, Xiaohongshu ID, bio, IP location, verification and exact follower, following, post, like and save counts. Pass the ID from a /user/profile/ link, the link itself or a commenter's author_id. Counts that are not shown come back null, not zero.

Full API reference: parameters, code samples, response example and health
user_idRequired
Specifies the Xiaohongshu user ID (the identifier following /user/profile/ in the URL) or full profile URL for the profile and user_posts actions. The author_id returned by the comment actions also works. Used to fetch profile details or published notes; does not accept username display names.

What do the Xiaohongshu user_posts parameters mean?

List the notes a Xiaohongshu creator has published, 20 per page. Pinned notes come first, then the rest from newest to oldest. Get excerpt, counts and video links. Use page_token for more. Links here carry no access token, and text is an excerpt. Call note for a browser-ready link and the full body.

Full API reference: parameters, code samples, response example and health
user_idRequired
Specifies the Xiaohongshu user ID (the identifier following /user/profile/ in the URL) or full profile URL for the profile and user_posts actions. The author_id returned by the comment actions also works. Used to fetch profile details or published notes; does not accept username display names.
page_tokenOptional
Pagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page. Each page is one call, billed per request.

What do the Xiaohongshu note parameters mean?

Read one Xiaohongshu note in full. Get body, every image in order, topics, mentioned users, engagement counts and IP location. Coordinates come back when the images carry them. Pass the complete note link with xsec_token intact. The video play link and the comments need separate video and comments calls.

Full API reference: parameters, code samples, response example and health
urlRequired
A note link (/explore/<note ID> or /discovery/item/<note ID>), a Xiaohongshu share link, or the 24-character note ID on its own. If you use the full link from search results, keep query parameters such as xsec_token.

What do the Xiaohongshu video parameters mean?

Fetch the playback link and duration for one Xiaohongshu video note from the same URL that note accepts. The signed link expires, so download it soon. Image notes come back empty and are refunded.

Full API reference: parameters, code samples, response example and health
urlRequired
Specifies the full Xiaohongshu note URL, formatted as /explore/<note_id> or /discovery/item/<note_id>. Use recent search URLs that retain query parameters like xsec_token. The sub_comments action requires both this url and a valid comment_id.

What do the Xiaohongshu comments parameters mean?

Pull top-level comments on a Xiaohongshu note, 15 per page, with text, likes, IP location, commenter, reply count and author or AI-account flags. Order them with sort, page with page_token, and read the replies themselves through sub_comments.

Full API reference: parameters, code samples, response example and health
urlRequired
Specifies the full Xiaohongshu note URL, formatted as /explore/<note_id> or /discovery/item/<note_id>. Use recent search URLs that retain query parameters like xsec_token. The sub_comments action requires both this url and a valid comment_id.
page_tokenOptional
Pagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page. Each page is one call, billed per request.
sortOptional
Comment order: default follows the platform's own order (the same as omitting it), newest puts the latest comments first, and most_liked puts the most-liked first. Keep the same value while paging; with a different value, the previous next_page_token no longer applies. default is the platform's recommended order and is re-ranked on every request, so when rankings shift, paging skips or repeats some comments; newest orders by time and pages consistently, though for some notes the platform returns only the most recent part. A page without next_page_token only means the platform reported no next page, not that every comment has been returned. With default, running through all the pages from the start several times and merging by comment id recovers some of the missed ones.
Allowed values:defaultmost_likednewest

What do the Xiaohongshu comments_batch parameters mean?

Collect comments from 1 to 20 Xiaohongshu notes in one call. Each row has its note_id and note_url, so threads stay separate. Every link needs a valid note ID and xsec_token. A note that fails is reported as missed, not as having zero comments.

Full API reference: parameters, code samples, response example and health
urlsRequired
Specifies an array of 1 to 20 Xiaohongshu note URLs for the comments_batch action. Each URL must contain a valid note ID and an xsec_token. Billing is per target note; check partial or missed response fields if some notes fail rather than assuming zero comments exist.
sortOptional
Comment order for every note in the request: default follows the platform's own order (the same as omitting it), newest puts the latest comments first, and most_liked puts the most-liked first.
Allowed values:defaultmost_likednewest

What do the Xiaohongshu sub_comments parameters mean?

Read the replies under one comment on a Xiaohongshu note, 10 per page. Get text, likes, IP location and who each reply answers. Pass the note link with a comment_id from the comments results. Use reply_to_id to rebuild the thread.

Full API reference: parameters, code samples, response example and health
urlRequired
Specifies the full Xiaohongshu note URL, formatted as /explore/<note_id> or /discovery/item/<note_id>. Use recent search URLs that retain query parameters like xsec_token. The sub_comments action requires both this url and a valid comment_id.
comment_idRequired
Specifies the parent comment ID to retrieve sub-replies for in the sub_comments action. Obtain this ID from the comments response for the same note and pair it with the corresponding url. It is not a note ID or user ID.
page_tokenOptional
Pagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page. Each page is one call, billed per request.

What do the Xiaohongshu search_users parameters mean?

Find Xiaohongshu creators and brand accounts by keyword, 20 per page. Get nickname, Xiaohongshu ID, follower count and verification type. Filter by follower_range or user_type. Follower counts approximate the rounded list figures, so call profile for exact numbers.

Full API reference: parameters, code samples, response example and health
keywordRequired
A keyword for finding accounts, such as coffee, a brand name or a topic. It returns users (creators and brand accounts), not notes.
follower_rangeOptional
Filters accounts in search_users by follower count: under_100, 100_to_1k, 1k_to_10k, 10k_to_100k or over_100k. Omit it for no limit.
Allowed values:100_to_1k10k_to_100k1k_to_10kover_100kunder_100
page_tokenOptional
Pagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page. Each page is one call, billed per request.
user_typeOptional
Filters accounts in search_users by type: general (regular user), verified_individual (verified person) or business (verified business). Omit it for no limit.
Allowed values:businessgeneralverified_individual

What do the Xiaohongshu hashtag parameters mean?

Browse the notes on one Xiaohongshu topic page, newest or most popular first. Get full text, all images, engagement counts and video details. Pass a 24-character topic_id or topic link. Pages hold up to 20 notes, and only a missing next_page_token marks the end.

Full API reference: parameters, code samples, response example and health
topic_idRequired
The topic page ID for hashtag (24 characters), or a topic page link such as https://www.xiaohongshu.com/page/topics/<ID>, an app topic link or a Xiaohongshu short share link. The topics[].topic_id values returned by note work directly. It is not the ID of a note's tag object or the topic name.
page_tokenOptional
Pagination cursor for the comments, sub_comments, search, user_posts, search_users and hashtag actions: pass back the next_page_token value from a row of the previous response to fetch the next page; omit it to start from the first page. Each page is one call, billed per request.
sortOptional
Order of the topic's notes: newest puts the latest first (the same as omitting it) and popular puts the most popular first. Keep the same value while paging.
Allowed values:newestpopular

What do the Xiaohongshu trending parameters mean?

See a sample of the notes Xiaohongshu is recommending right now, up to 30, with title, author, image and video flag. The selection changes on every load, and list position neither explains the algorithm nor builds a history.

Full API reference: parameters, code samples, response example and health

This action has no business parameters. Send only the platform and action identifiers.

What do the Xiaohongshu product_search parameters mean?

Search products in the Xiaohongshu store by keyword. Each product has title, price, list price, currency, units sold when the page shows them, stock status, image and shop. A page usually holds 19 products (18 to 20 seen); page with next_page_token. These are store products, not notes, and each id works in product_detail.

Full API reference: parameters, code samples, response example and health
keywordRequired
A product search term for the Xiaohongshu store, such as sunscreen. It returns products (SKUs), not notes; each id works as product_id in product_detail.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. A page usually holds 19 products (18 to 20 seen) and is one call; the store reorders results, so adjacent pages can share a few products, deduplicate by id. Use a token within 24 hours, and the last page has no next_page_token.

What do the Xiaohongshu product_detail parameters mean?

Read one product from the Xiaohongshu store by its 24-character ID or goods-detail link. Get price and list price, category, variant, stock, units sold (a lower bound when the page shows a rounded figure), main and detail images, product attributes, and the shop's rating when it has one, total sales, follower count and linked Xiaohongshu account.

Full API reference: parameters, code samples, response example and health
product_idRequired
The 24-character product ID from a product_search row's id, or a product link https://www.xiaohongshu.com/goods-detail/<ID>. A malformed ID is rejected before any charge.

What do the Xiaohongshu reviews parameters mean?

Read buyer reviews of a Xiaohongshu store product by its 24-character product_id, in default or newest order. Each review has full text, a 5-point rating, service and delivery ratings, helpful votes, reply count, buyer photos, review tags, the variant bought and the review date. Reviewer IDs, names and avatars are never returned. Up to 20 per page.

Full API reference: parameters, code samples, response example and health
product_idRequired
The 24-character product ID from a product_search row's id, or a product link https://www.xiaohongshu.com/goods-detail/<ID>. A malformed ID is rejected before any charge.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. A page holds up to 20 reviews and is one call; the last page has no next_page_token.
sortOptional
Review order: default (the store's default ranking, the same as omitting it) or newest (newest first). Keep the same value while paging.
Allowed values:defaultnewest

What do the Xiaohongshu followers_list parameters mean?

List the followers of a Xiaohongshu account by its 24-character user_id or profile link. Each follower has user_id, nickname, avatar, profile link, follower count and note count. A page usually holds 19 to 20 people; page with next_page_token. Many accounts hide their follower list, and then the call fails and is refunded.

Full API reference: parameters, code samples, response example and health
user_idRequired
Whose followers to list: the 24-character user_id that profile or search_users returns, or a profile link https://www.xiaohongshu.com/user/profile/<ID>. Many accounts hide their follower list; then the call fails and is refunded.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. A page usually holds 19 to 20 people and is one call; the last page has no next_page_token.

What do the Xiaohongshu note_location parameters mean?

Read the place a Xiaohongshu note is tagged with, by note link or share link. Get the location text as shown, the city, the place name and the place IDs. A note with no tagged place returns an empty result.

Full API reference: parameters, code samples, response example and health
urlRequired
A note link (/explore/<note ID> or /discovery/item/<note ID>) or a Xiaohongshu share link. Only the note ID is needed, not the xsec_token; if the link carries one, the returned note link keeps it.

What do the Xiaohongshu pgy_content_square parameters mean?

Search by keyword for notes in the content square of Pugongying, Xiaohongshu's brand–creator marketplace. Results are sorted by popularity with no time filter, so notes from the last month or two may appear. Each note has rank, reads, saves, publish time, an ad flag and the author's followers. 20 per page and at most 100 rows per search.

Full API reference: parameters, code samples, response example and health
keywordRequired
Required: the word to search the content square's notes by, such as coffee. Results are sorted by popularity with no time filter, so notes from the last month or two may appear; note links carry no access token.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds 20 notes and is one call; a search returns at most 100 (5 pages), and the last page has no next_page_token.

How to use the Xiaohongshu API

  1. 01Choose a platform action from the public catalog.
  2. 02Send the platform, action, and required parameters to POST /api/v1/social.
  3. 03Read the result from the response. For an asynchronous action, poll the returned job ID.
  4. 04Store the response fields that your application needs.
xiaohongshu_search.sh
curl -X POST https://api.everyinfra.com/api/v1/social \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"xiaohongshu","action":"search","params":{"keyword":"<keyword>"}}'

Xiaohongshu guides

Worked examples and methods built on these actions. Check the current actions, parameters and fields on this page first; an article's examples and limits do not replace the live catalog.

Build

Xiaohongshu Comments API: Batch Scraping RedNote Comments from Note Lists to Verifiable Results

Step-by-step integration of Xiaohongshu comments_batch: preparing complete note URLs, distinguishing URL count from comment count, identifying partial and missed results, deduplicating by note, and handling empty results, retries, and target billing.

Read the article
Blog

Xiaohongshu Data Analysis: Measure Growth with Snapshots, Not Totals

Xiaohongshu data analysis with snapshots: three rounds of live API reads on Nov 15, 2026 show entry-point gaps, hidden ID times, net growth and cost.

Read the article
Build

Unified Data API Getting Started: From Capability Catalog to First Available Result

Access multi-platform data using platform, action, and params: read the capability catalog, complete minimal requests, handle asynchronous tasks, partial results, and billing, and establish traceable data records.

Read the article

Xiaohongshu API questions

What can I retrieve with the Xiaohongshu API?

Set platform to xiaohongshu. The current catalog lists search, profiles, posts by user, note details, video details, and more. These action names identify different Xiaohongshu objects or views; they are not interchangeable search modes.

Which input starts the Xiaohongshu search request?

Specifies the query string used to search Xiaohongshu note content (e.g., "sensitive skin sunscreen") in the search action. Searches note text, not user IDs. Send it as keyword inside params.

Which fields can Xiaohongshu search return?

Its declared schema includes title, text, like_count, and collect_count. A declared field can still be absent from an individual record, and every other action has its own field list.

Does every Xiaohongshu action return immediately?

Actions labeled asynchronous return a job ID you poll. comments_batch runs synchronously only: it reads everything it returns (every target of a batch, or every SKU of a product) within the same call, and a request with "mode": "async" gets a 422 before anything is charged. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

Google Analytics needs consent. Privacy