# Xiaohongshu API

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.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "xiaohongshu", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/xiaohongshu-api](https://everyinfra.com/en/xiaohongshu-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): 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_type` (optional): Filters returned notes by content type, such as image/text or video. Use the allowed values listed for the current action. One of: all, image, video.
  - `date_range` (optional): 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. One of: any_time, last_1_year, last_24_hours, last_30_days, last_6_months, last_7_days.
  - `page_token` (optional): 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.
  - `sort` (optional): 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. One of: most_collected, most_commented, most_liked, newest, relevance.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/search](https://everyinfra.com/en/xiaohongshu-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/search.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `user_id` (required): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/profile](https://everyinfra.com/en/xiaohongshu-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/profile.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `user_id` (required): 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_token` (optional): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/user_posts](https://everyinfra.com/en/xiaohongshu-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/user_posts.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/note](https://everyinfra.com/en/xiaohongshu-api/note?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/note.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: id, url, video_url, duration_sec, duration_seconds, video_width, video_height, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/video](https://everyinfra.com/en/xiaohongshu-api/video?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/video.md)

### 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`.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `url` (required): 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_token` (optional): 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.
  - `sort` (optional): 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. One of: default, most_liked, newest.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/comments](https://everyinfra.com/en/xiaohongshu-api/comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/comments.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests (each element in urls counts as one call)
- Each 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.
- Parameters:
  - `urls` (required): 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.
  - `sort` (optional): 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. One of: default, most_liked, newest.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/comments_batch](https://everyinfra.com/en/xiaohongshu-api/comments_batch?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/comments_batch.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `url` (required): 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_id` (required): 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_token` (optional): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/sub_comments](https://everyinfra.com/en/xiaohongshu-api/sub_comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/sub_comments.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): A keyword for finding accounts, such as coffee, a brand name or a topic. It returns users (creators and brand accounts), not notes.
  - `follower_range` (optional): 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. One of: 100_to_1k, 10k_to_100k, 1k_to_10k, over_100k, under_100.
  - `page_token` (optional): 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_type` (optional): Filters accounts in search_users by type: general (regular user), verified_individual (verified person) or business (verified business). Omit it for no limit. One of: business, general, verified_individual.
- Returns fields: user_id, nickname, red_id, avatar_url, url, follower_count, is_verified, verification_type, next_page_token, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/search_users](https://everyinfra.com/en/xiaohongshu-api/search_users?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/search_users.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `topic_id` (required): 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_token` (optional): 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.
  - `sort` (optional): 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. One of: newest, popular.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/hashtag](https://everyinfra.com/en/xiaohongshu-api/hashtag?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/hashtag.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests (every 20 rows count as one call)
- 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.
- Returns fields: id, url, title, author_name, is_video, image_url, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/trending](https://everyinfra.com/en/xiaohongshu-api/trending?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/trending.md)

### 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`.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): 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_token` (optional): 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`.
- Returns fields: id, title, url, price, original_price, currency, image_url, sold_count, in_stock, shop_id, shop_name, next_page_token, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/product_search](https://everyinfra.com/en/xiaohongshu-api/product_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/product_search.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `product_id` (required): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/product_detail](https://everyinfra.com/en/xiaohongshu-api/product_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/product_detail.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `product_id` (required): 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_token` (optional): 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`.
  - `sort` (optional): Review order: `default` (the store's default ranking, the same as omitting it) or `newest` (newest first). Keep the same value while paging. One of: default, newest.
- Returns fields: id, product_id, text, rating, rating_scale, service_rating, logistics_rating, like_count, reply_count, images, tags, sku, posted_date, next_page_token, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/reviews](https://everyinfra.com/en/xiaohongshu-api/reviews?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/reviews.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each 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.
- Parameters:
  - `user_id` (required): 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_token` (optional): 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`.
- Returns fields: user_id, nickname, avatar_url, url, follower_count, note_count, of_user, next_page_token, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/followers_list](https://everyinfra.com/en/xiaohongshu-api/followers_list?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/followers_list.md)

### 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.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: note_id, url, location_text, city, poi_name, poi_ids, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/note_location](https://everyinfra.com/en/xiaohongshu-api/note_location?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/note_location.md)

### 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.
- Sync delivery · Price: $16 per 1,000 requests
- Each 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.
- Parameters:
  - `keyword` (required): 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_token` (optional): 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`.
- Returns fields: rank, id, url, title, is_video, collect_count, view_count, posted_at, images, is_ad, author_id, author_name, author_follower_count, platform
- Capability page: [https://everyinfra.com/en/xiaohongshu-api/pgy_content_square](https://everyinfra.com/en/xiaohongshu-api/pgy_content_square?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/xiaohongshu-api/pgy_content_square.md)

## 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.

### Does Xiaohongshu have an official API?

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.

Official sources (checked 2026-10-16): [Xiaohongshu e-commerce open platform: API permission packages](https://open.xiaohongshu.com/document/developer/file/33) · [Xiaohongshu e-commerce open platform](https://open.xiaohongshu.com/)

### Do I need a Xiaohongshu developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a Xiaohongshu developer app, apply for Xiaohongshu API access or sign in with a Xiaohongshu account, and the actions return public Xiaohongshu data only.

### How much does the Xiaohongshu API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### 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.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=xiaohongshu
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
