# Xiaohongshu on Onekey > 6 endpoints for Xiaohongshu (0 stable, 6 beta), 2 to 3 credits each. Category: Social networks. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Access: 6 of 6 endpoints are marked "needs a pack" or "may need a pack": free-grant credits reach only the open fetch path; a verified email and a purchased pack unlock the rest. Page: https://onekey.dev/platforms/xiaohongshu Reference (Markdown): https://onekey.dev/docs/api/xiaohongshu.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 6 mapped Xiaohongshu endpoints return each: - `author.username` (string): 5 - `engagement.likes` (integer): 5 - `content.createdAt` (ISO 8601 date): 4 - `content.id` (string): 4 - `content.text` (string): 4 - `engagement.comments` (integer): 4 - `engagement.views` (integer): 4 - `media.thumbnailUrl` (URL): 4 - `content.title` (string): 3 - `content.url` (URL): 3 - `engagement.shares` (integer): 3 - `author.avatarUrl` (URL): 2 - `author.bio` (string): 1 - `author.contentCount` (integer): 1 - `author.displayName` (string): 1 - `author.followers` (integer): 1 - `author.following` (integer): 1 - `author.id` (string): 1 - `author.url` (URL): 1 - `author.verified` (boolean): 1 - `entity.id` (string): 1 - `entity.name` (string): 1 - `entity.url` (URL): 1 - plus 4 platform-specific fields under `ext.` ## Endpoints ### xiaohongshu.post Get a Xiaohongshu note. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: one record. - Request: `GET https://api.onekey.dev/v1/xiaohongshu/post?url=https%3A%2F%2Fwww.xiaohongshu.com%2Fexplore%2F64a1b2c3d4e5f60012345678` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, required): Url (URL) - Fields returned: `content.id`, `content.url`, `content.title`, `content.text`, `content.createdAt`, `engagement.likes`, `engagement.comments`, `engagement.shares`, `engagement.views`, `media.thumbnailUrl`, `author.username` - Reference: https://onekey.dev/docs/api/xiaohongshu/post.md ### xiaohongshu.post_comments Get Xiaohongshu note comments. - Price: 3 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/xiaohongshu/post_comments?url=https%3A%2F%2Fwww.xiaohongshu.com%2Fexplore%2F64a1b2c3d4e5f60012345678` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, required): Url (URL) - `cursor` (string, optional): Opaque cursor from a previous response's `pagination.next_cursor`. Omit for the first page. - Fields returned: `content.id`, `content.text`, `content.createdAt`, `engagement.likes`, `engagement.comments`, `author.username`, `author.avatarUrl` - Reference: https://onekey.dev/docs/api/xiaohongshu/post_comments.md ### xiaohongshu.profile Get a Xiaohongshu creator. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: one record. - Request: `GET https://api.onekey.dev/v1/xiaohongshu/profile?url=https%3A%2F%2Fwww.xiaohongshu.com%2Fexplore%2F64a1b2c3d4e5f60012345678` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, optional): Url (URL) - `user_id` (string, optional): Xiaohongshu user id (alternative to url) - Fields returned: `author.id`, `author.username`, `author.displayName`, `author.bio`, `author.followers`, `author.following`, `author.contentCount`, `author.verified`, `author.avatarUrl`, `author.url` - Reference: https://onekey.dev/docs/api/xiaohongshu/profile.md ### xiaohongshu.profile_posts List a Xiaohongshu creator's notes. - Price: 3 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/xiaohongshu/profile_posts?url=https%3A%2F%2Fwww.xiaohongshu.com%2Fexplore%2F64a1b2c3d4e5f60012345678` with header `x-api-key: YOUR_API_KEY` - Parameters: - `url` (string, optional): Url (URL) - `user_id` (string, optional): Xiaohongshu user id (alternative to url) - `cursor` (string, optional): Opaque cursor from a previous response's `pagination.next_cursor`. Omit for the first page. - Fields returned: `content.id`, `content.url`, `content.title`, `content.text`, `content.createdAt`, `engagement.likes`, `engagement.comments`, `engagement.shares`, `engagement.views`, `media.thumbnailUrl`, `author.username` - Reference: https://onekey.dev/docs/api/xiaohongshu/profile_posts.md ### xiaohongshu.search Search Xiaohongshu notes. - Price: 3 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/xiaohongshu/search?query=coffee` with header `x-api-key: YOUR_API_KEY` - Parameters: - `query` (string, required): Query - `cursor` (string, optional): Opaque cursor from a previous response's `pagination.next_cursor`. Omit for the first page. - Fields returned: `content.id`, `content.url`, `content.title`, `content.text`, `content.createdAt`, `engagement.likes`, `engagement.comments`, `engagement.shares`, `engagement.views`, `media.thumbnailUrl`, `author.username` - Reference: https://onekey.dev/docs/api/xiaohongshu/search.md ### xiaohongshu.trending Xiaohongshu hot-search board. - Price: 3 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/xiaohongshu/trending` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name`, `entity.url`, `engagement.views`, `engagement.likes`, `media.thumbnailUrl`, `ext.rank`, `ext.postCount`, `ext.hotValue`, `ext.ctr` - Reference: https://onekey.dev/docs/api/xiaohongshu/trending.md ## Sample request ```bash curl "https://api.onekey.dev/v1/xiaohongshu/post?url=https%3A%2F%2Fwww.xiaohongshu.com%2Fexplore%2F64a1b2c3d4e5f60012345678" \ -H "x-api-key: YOUR_API_KEY" ```