Xiaohongshu (RedNote) User Profile API (V3)
GET
API health status
24h health
24h avg latency
Last checked
Healthy Available Limited Mostly unavailable No data
Healthy
Loading health status...
24h trend
30d trend
Retrieves a Xiaohongshu (RedNote) user profile from a user ID or supported profile URL. Use it to support creator discovery, account research, and reviewing a known profile before related content analysis.
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
token | query | string | Yes | - | Access token for this API service. |
userId | query | string | Yes | - | A 24- or 29-character Xiaohongshu user ID or a profile URL containing /user/profile/. |
Code Samples
bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE'text
I want to use the "User Profile (V3)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE
API Endpoint: BASE_URL + /api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/xiaohongshu-rednote/user-profile-v3-en.json
Parameters:
- token (query): Access token for this API service. (Required)
- userId (query): A 24- or 29-character Xiaohongshu user ID or a profile URL containing /user/profile/. (Required)
Return format: safely handle JSON or text according to the actual Content-Type.
Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
- 0: Success
- 100: Invalid or Inactive Token
- 301: Collection Failed. Please Retry.
- 302: Rate Limit Exceeded
- 303: Daily Quota Exceeded
- 400: Invalid Parameters
- 500: Internal Server Error
- 600: Permission Denied
- 601: Insufficient Balance
- 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.
Please help me write a script in my preferred programming language to call this API and handle the response.python
import requests
BASE_URL = "https://api.justoneapi.com" # Provided by OpenAPI servers
url = BASE_URL + "/api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
content_type = response.headers.get("content-type", "").lower()
if "json" in content_type:
try:
print(response.json())
except ValueError:
print(response.text)
elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
print(response.text)
else:
with open("response.bin", "wb") as output:
output.write(response.content)
print(f"Saved {len(response.content)} bytes to response.bin")js
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE";
const response = await fetch(url, {
method: "GET",
signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
const contentType = (response.headers.get("content-type") || "").toLowerCase();
const mediaType = contentType.split(";", 1)[0].trim();
const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
if (textual) {
const responseText = new TextDecoder().decode(responseBytes);
let data = responseText;
if (contentType.includes("json")) {
try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
}
console.log(data);
} else {
console.log(`Received ${responseBytes.byteLength} binary bytes`);
}
}java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
public class Main {
public static void main(String[] args) throws Exception {
final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
final String url = BASE_URL + "/api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE";
HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
HttpRequest.Builder builder = HttpRequest.newBuilder()
.uri(URI.create(url))
.timeout(Duration.ofSeconds(120))
.method("GET", HttpRequest.BodyPublishers.noBody());
HttpRequest request = builder.build();
HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
System.out.println(response.statusCode());
String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
String mediaType = contentType.split(";", 2)[0].trim();
if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
System.out.println(new String(response.body(), StandardCharsets.UTF_8));
} else {
Files.write(Path.of("response.bin"), response.body());
System.out.println("Saved " + response.body().length + " bytes to response.bin");
}
}
}go
package main
import (
"fmt"
"io"
"os"
"strings"
"net/http"
"time"
)
const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers
func main() {
client := &http.Client{Timeout: 120 * time.Second}
url := BASE_URL + "/api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE"
req, _ := http.NewRequest("GET", url, nil)
resp, _ := client.Do(req)
defer resp.Body.Close()
fmt.Println(resp.StatusCode)
bodyBytes, _ := io.ReadAll(resp.Body)
contentType := strings.ToLower(resp.Header.Get("Content-Type"))
mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
fmt.Println(string(bodyBytes))
} else {
os.WriteFile("response.bin", bodyBytes, 0600)
fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
}
}php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/xiaohongshu/get-user/v3?token=YOUR_API_KEY&userId=VALUE';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
echo $response;
} else {
file_put_contents('response.bin', $response);
echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}Response Fields
Key fields in a successful response (code = 0).
Profile information10 fields
data
Fields returned when the response contains a Xiaohongshu user profile object.
| Field | Type | Description |
|---|---|---|
userid | string | The internal Xiaohongshu user ID for the profile. |
red_id | string | The Xiaohongshu account ID shown on the profile. |
nickname | string | The user's profile display name. |
desc | string | The profile biography as returned by Xiaohongshu. |
gender | integer | The gender code reported by Xiaohongshu for the profile. |
location | string | The location text displayed in the profile. |
ip_location | string | The IP location label reported by Xiaohongshu. |
images | string | The smaller variant of the profile avatar URL. |
imageb | string | The larger variant of the profile avatar URL. |
user_role_type | integer | The Xiaohongshu account role type code. |
Followers and engagement17 fields
data
| Field | Type | Description |
|---|---|---|
follows | integer | The number of accounts the profile follows, as reported by Xiaohongshu. |
fans | integer | The number of followers reported for the profile. |
liked | integer | The number of likes received by the profile, as reported by Xiaohongshu. |
collected | integer | The number of saves received by the profile, as reported by Xiaohongshu. |
ndiscovery | integer | The number of published notes reported for the profile. |
atme_notes_num | integer | The number of notes reported to mention the profile. |
note_num_stat | object | Published note and received engagement counts reported for the profile. |
note_num_stat.posted | integer | The reported number of published notes. |
note_num_stat.liked | integer | The reported number of likes received. |
note_num_stat.collected | integer | The reported number of saves received. |
interactions | array | The labeled interaction statistics shown by Xiaohongshu for the profile. |
interactions[] | object | A labeled profile interaction statistic. |
interactions[].type | string | The platform code for the statistic, such as follows, fans, or interaction. |
interactions[].name | string | The platform display label for the statistic. |
interactions[].count | integer | The platform-reported statistic. The interaction entry labeled 'likes and saves received' combines those two counts. |
interactions[].is_private | boolean | Whether the platform marks this statistic as private. |
interactions[].toast | string | The display message associated with the statistic, which can be empty. |
Saves by this account9 fields
data
| Field | Type | Description |
|---|---|---|
collected_notes_num | integer | The count of notes saved by the profile. |
collected_tags_num | integer | The count of tags saved by the profile. |
collected_poi_num | integer | The count of places saved by the profile. |
collected_product_num | integer | The count of products saved by the profile. |
collected_brand_num | integer | The count of brands saved by the profile. |
collected_book_num | integer | The count of books saved by the profile. |
collected_movie_num | integer | The count of movies saved by the profile. |
nboards | integer | The count of collection boards reported for the profile. |
default_collection_tab | string | The default collection tab identifier. |
Verification and identity12 fields
data
| Field | Type | Description |
|---|---|---|
red_official_verified | boolean | The official verification flag returned with this profile response. |
red_official_verify_type | integer | The official verification type code reported for the profile. |
red_official_verify_content | string | The display text returned for the profile's official verification. |
red_official_verify_base_info | string | The basic official verification information returned as text. |
red_official_verify_arrow | integer | The code returned for the official verification entry arrow. |
red_official_full_name | string | The full name associated with the profile's official verification, when returned. |
show_red_official_verify_icon | boolean | Whether the platform indicates that the official verification icon should be shown. |
identity_label_migrated | boolean | The platform's migration flag for profile identity labels. |
real_name_info | string | The real-name information text returned by the platform, which can be empty. |
real_name_deep_target | integer | The platform destination code for the real-name entry. |
identity_deeplink | string | The Xiaohongshu app deep link for the profile identity entry. |
sec_account_deeplink | string | The Xiaohongshu app deep link returned for the account security entry. |
Brand and shop information34 fields
data
| Field | Type | Description |
|---|---|---|
brand_account_info | object | Brand profile metadata, when returned. |
brand_account_info.account_type_name | string | The brand account type label. |
brand_account_info.trade_type_first_name | string | The top-level industry category label for the brand account. |
brand_account_info.topics | array | Topics featured by the brand profile. |
brand_account_info.topics[] | object | A featured brand topic entry. |
brand_account_info.topics[].id | string | The ID of the featured topic. |
brand_account_info.topics[].name | string | The display name of the featured topic. |
brand_account_info.topics[].link | string | The link associated with the featured topic. |
brand_account_info.topics[].sub_title | string | The display subtitle for the topic. |
brand_account_info.conversions | array | Action entries on the brand profile, when available. |
brand_account_info.conversions[] | object | An action entry on the brand profile. |
brand_account_info.conversions[].id | string | The ID of the brand action entry. |
brand_account_info.conversions[].name | string | The display name of the brand action. |
brand_account_info.conversions[].icon | string | The icon URL for the brand action. |
brand_account_info.conversions[].link | string | The destination link for the brand action. |
brand_account_info.conversions[].is_shop | boolean | Whether this brand action is marked as a shop entry. |
brand_account_info.conversions[].is_red_shop | boolean | Whether this brand action is marked as a Xiaohongshu shop entry. |
brand_account_info.conversions[].sub_title | string | The subtitle shown for the brand action. |
buyer_info | object | Metadata for the buyer-related tab on the profile, when returned. |
buyer_info.tab_name | string | The display name of the buyer-related tab. |
buyer_info.choice_id | string | The selection ID in the buyer profile metadata. |
buyer_info.extra_map | object | Additional configuration for the buyer-related profile entry. |
buyer_info.extra_map.curationGoodsSearch | string | The platform-provided curated product search value, returned as a string. |
seller_info | object | Seller and shop-tab information for the profile, when returned. |
seller_info.store_id | string | The store ID associated with the seller profile. |
seller_info.tab_goods_name | string | The goods tab display name. |
seller_info.tab_goods_api_version | integer | The platform version number for the goods tab. |
seller_info.tab_code_names | array | The tab codes returned in seller metadata. |
seller_info.tab_code_names[] | string | A seller tab code. |
seller_info.is_tab_goods_first | boolean | Whether the goods tab is displayed first. |
seller_info.can_process_coupon | boolean | Whether the platform indicates support for coupon processing. |
seller_info.display_modules | object | Display module settings for the seller profile. |
seller_info.display_modules.official | boolean | The display flag for the seller's official module. |
customer_service_link | string | The customer-service entry link, when available. |
Biography, avatar, and tags37 fields
data
| Field | Type | Description |
|---|---|---|
desc_at_users | array | Accounts mentioned in the profile biography. |
desc_at_users[] | object | An account mentioned in the biography. |
desc_at_users[].id | string | The internal Xiaohongshu ID of the mentioned account. |
desc_at_users[].nickname | string | The display name returned for the mentioned account. |
user_desc_info | object | Biography content and display metadata. |
user_desc_info.desc | string | The profile biography in the biography display object. |
user_desc_info.desc_at_users | array | Accounts mentioned in the biography display object. |
user_desc_info.desc_at_users[] | object | A mentioned account in the biography display object. |
user_desc_info.desc_at_users[].user_id | string | The internal Xiaohongshu ID of the mentioned account. |
user_desc_info.desc_at_users[].nickname | string | The display name returned for the mentioned account. |
user_desc_info.desc_with_placeholder | string | Biography content with any placeholders used by the platform display. |
user_desc_info.desc_keywords_switch | boolean | Whether the biography keyword display feature is enabled. |
avatar_like_status | boolean | Whether the platform marks the profile avatar as liked in the current viewing context. |
avatar_handle_entry_list | array | Avatar action entries when available. The array can be empty. |
avatar_pendant | object | Avatar decoration indicators returned by the platform. |
avatar_pendant.current_user_pendant | boolean | Whether the current avatar has a platform decoration. |
avatar_pendant.current_user_pet | boolean | Whether the current avatar has a platform pet decoration. |
banner_info | object | Information about the profile banner. |
banner_info.image | string | The profile banner image URL. |
banner_info.bg_color | string | The background color value used for the profile banner. |
banner_info.like_status | boolean | Whether the platform marks the profile banner as liked in the current viewing context. |
remark_name | string | The remark or alias for the profile in the viewing context, which can be empty. |
level | object | Xiaohongshu level information for the profile. |
level.image | string | The icon image returned for the profile level. |
level.image_link | string | The link associated with the profile level image. |
level.level_name | string | The display name returned for the profile level. |
level.number | integer | The numeric level value reported for the profile. |
red_club_info | object | Membership details reported for Xiaohongshu Red Club. |
red_club_info.red_club | boolean | Whether Xiaohongshu reports Red Club membership. |
red_club_info.red_club_level | integer | The Red Club membership level code. |
red_club_info.red_club_url | string | The link associated with the Red Club entry. |
red_club_info.redclubscore | integer | The Red Club score reported for the profile. |
tags | array | Profile tag labels and icons returned by the platform. |
tags[] | object | A tag associated with the profile. |
tags[].tag_type | string | The platform code for the tag type. |
tags[].icon | string | The icon URL for the tag, when returned. |
tags[].name | string | The display name of the tag, when returned. |
Sharing links12 fields
data
| Field | Type | Description |
|---|---|---|
share_link | string | The link for sharing the profile. |
share_info | object | Profile share title, text, and any store link. |
share_info.content | string | The description text for sharing the profile. |
share_info.title | string | The title for sharing the profile. |
share_info.store_link | string | The store link supplied in the sharing metadata. |
share_info_v2 | object | The alternate share metadata object returned with the profile. |
share_info_v2.content | string | The description text in the alternate sharing metadata. |
share_info_v2.title | string | The title in the alternate sharing metadata. |
share_info_v2.ecom_title | string | The commerce share title, when returned. |
share_info_v2.ecom_content | string | The commerce share description, when returned. |
share_info_v2.ecom_share_link | string | The commerce share link, when returned. |
community_rule_url | string | The link to Xiaohongshu's community rules. |
Profile display settings49 fields
data
| Field | Type | Description |
|---|---|---|
location_jump | boolean | Whether the platform enables opening the location entry from the profile. |
zhong_tong_bar_info | object | Action-bar information returned for the profile. |
zhong_tong_bar_info.conversions | array | The action entries in the profile action bar. |
zhong_tong_bar_info.conversions[] | object | A profile action-bar entry. |
zhong_tong_bar_info.conversions[].id | string | The ID of the action-bar entry. |
zhong_tong_bar_info.conversions[].name | string | The display name of the action-bar entry. |
zhong_tong_bar_info.conversions[].sub_title | string | The display subtitle for the action-bar entry. |
zhong_tong_bar_info.conversions[].icon | string | The icon URL for the action-bar entry. |
zhong_tong_bar_info.conversions[].link | string | The destination link for the action-bar entry. |
recommend_info | string | The platform recommendation display text, which can be empty. |
recommend_info_icon | string | The icon reference associated with recommendation display text. |
is_recommend_level_illegal | boolean | The platform flag for a recommendation level restriction. |
show_extra_info_button | boolean | Whether the extra-information button is shown in the profile interface. |
hula_tabs | object | The profile tab configuration reported by the platform. |
hula_tabs.andr_tab_padding_start | integer | The Android tab layout padding value at the start. |
hula_tabs.andr_tab_padding_end | integer | The Android tab layout padding value at the end. |
hula_tabs.all_show_tab_config | array | The tab entries configured for the profile. |
hula_tabs.all_show_tab_config[] | object | An entry in the profile tab configuration. |
hula_tabs.all_show_tab_config[].tab_id | string | The identifier of the profile tab. |
hula_tabs.all_show_tab_config[].tab_name | string | The tab's display name. |
hula_tabs.all_show_tab_config[].tab_index_weight | integer | The platform sort weight for the profile tab. |
hula_tabs.all_show_tab_config[].is_show_lock | boolean | Whether a lock icon should be shown on the tab. |
tab_visible | object | Visibility indicators for tabs on the profile. |
tab_visible.note | boolean | Whether the notes tab is shown. |
tab_visible.collect | boolean | Whether the collection tab is shown. |
tab_visible.like | boolean | Whether the likes tab is shown. |
tab_visible.atme | boolean | Whether the mentions tab is shown. |
tab_visible.goods | boolean | Whether the goods tab is shown. |
tab_visible.hotel | boolean | Whether the hotel tab is shown. |
tab_visible.buyer | boolean | Whether the buyer tab is shown. |
tab_visible.seed | boolean | Whether Xiaohongshu shows the Seed tab. |
tab_public | object | Public visibility indicators for selected profile sections. |
tab_public.collection | boolean | Whether the collection section is marked public. |
tab_public.collection_note | boolean | Whether saved notes are marked public. |
tab_public.collection_board | boolean | Whether collection boards are marked public. |
tab_public.seed | boolean | Whether the Seed tab is marked public. |
user_widget_switch | boolean | Whether the profile widget feature is enabled. |
user_page_widgets_info | object | Widget configuration returned for the profile page. |
user_page_widgets_info.normal_widget_list | array | General widgets configured for the profile. |
user_page_widgets_info.normal_widget_list[] | object | A widget on the profile page. |
user_page_widgets_info.normal_widget_list[].widget_id | string | The ID of the widget. |
user_page_widgets_info.normal_widget_list[].widget_name | string | The widget's display name. |
user_page_widgets_info.normal_widget_list[].widget_size | integer | The size code returned for the widget. |
user_page_widgets_info.normal_widget_list[].template_id | string | The ID of the widget's display template. |
user_page_widgets_info.normal_widget_list[].render_type | integer | The platform render type code for the widget. |
user_page_widgets_info.normal_widget_list[].business_id | string | The identifier of the object associated with the widget. |
user_page_widgets_info.normal_widget_list[].business_type | string | The platform type code for the object associated with the widget. |
user_page_widgets_info.normal_widget_list[].widget_data_content | string | The serialized content of the widget, returned as a string. |
user_page_widgets_info.shop_widget_list | array | The shop widgets configured for the profile. The array can be empty. |
Relationship and visibility7 fields
data
| Field | Type | Description |
|---|---|---|
fstatus | string | The follow relationship status code or label returned with the profile. |
blocking | boolean | The platform's flag for a blocking relationship in the current response context. |
blocked | boolean | The platform's flag for blocked relationship status in the current response context. |
block_view_from_user | boolean | The platform's block-view indicator for views from the profile user. |
block_view_to_user | boolean | The platform's block-view indicator for views toward the profile user. |
mute_view_to_user | boolean | The platform's mute-view indicator for views toward the profile user. |
is_login_user_pro_account | boolean | The professional account flag for the platform's viewing context. |
Response metadata4 fields
data
| Field | Type | Description |
|---|---|---|
result | object | The result metadata contained in the Xiaohongshu profile payload. |
result.success | boolean | The success flag in the platform profile payload. |
result.code | integer | The status code in the platform profile payload. |
result.message | string | The status message in the platform profile payload. |
Response Example
Loading the response example...