Skip to content

Xiaohongshu APIs - Note Details (V7)

DEPRECATED

This endpoint is deprecated and may be removed in future versions.

prod-global
GET
/api/xiaohongshu/get-note-detail/v7

Retrieves detailed note data from Xiaohongshu, including the full note description, engagement metrics (likes, comments, collects, shares), and media information.

The response includes media download URLs for images and videos.

Typical use cases:

  • Content analysis and review using full note text
  • Engagement tracking for creators, campaigns, and competitors
  • Collecting media assets (images/videos) for downstream processing or archiving
  • Building datasets for analytics, reporting, and automation

Parameters

NameInTypeRequiredDescription
tokenquerystringYesAccess token for this API service.
noteIdquerystringYesUnique note identifier on Xiaohongshu.

Code Samples

💡 Environment Note

Default samples use https://api.justoneapi.com (prod-global). For users in Mainland China, it is recommended to replace it with http://47.117.133.51:30015 (prod-cn) for better performance. See Environment Guide.

bash
# Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
curl -X GET "https://api.justoneapi.com/api/xiaohongshu/get-note-detail/v7?token=YOUR_API_KEY&noteId=VALUE"
text
I want to use the "Note Details (V7)" API from Just One API.
API Endpoint: https://api.justoneapi.com/api/xiaohongshu/get-note-detail/v7
HTTP Method: GET
Authentication: Append "?token=YOUR_API_KEY" to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/xiaohongshu-apis/note-details-v7-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- noteId (query): Unique note identifier on Xiaohongshu. (Required)

Return format: JSON

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 request timeout to at least 60 seconds.
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

Please help me write a script in my preferred programming language to call this API and handle the response.
python
# Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
import requests

url = "https://api.justoneapi.com/api/xiaohongshu/get-note-detail/v7?token=YOUR_API_KEY&noteId=VALUE"
response = requests.get(url)
print(response.json())
js
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
const response = await fetch("https://api.justoneapi.com/api/xiaohongshu/get-note-detail/v7?token=YOUR_API_KEY&noteId=VALUE", {
  method: "GET"
});
const data = await response.json();
console.log(data);
java
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://api.justoneapi.com/api/xiaohongshu/get-note-detail/v7?token=YOUR_API_KEY&noteId=VALUE"))
            .method("GET", HttpRequest.BodyPublishers.noBody())
            .build();

        HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}
go
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	client := &http.Client{}
	url := "https://api.justoneapi.com/api/xiaohongshu/get-note-detail/v7?token=YOUR_API_KEY&noteId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
php
// Tip: For Mainland China, replace https://api.justoneapi.com with http://47.117.133.51:30015
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.justoneapi.com/api/xiaohongshu/get-note-detail/v7?token=YOUR_API_KEY&noteId=VALUE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
curl_close($ch);
echo $response;

Responses

json
{
  "code": 0,
  "data": [
    {
      "user": {
        "red_official_verify_type": 0,
        "id": "62642c06000000001000bb40",
        "name": "搞笑女的肉体改造日记",
        "red_id": "2947938100",
        "nickname": "搞笑女的肉体改造日记",
        "userid": "62642c06000000001000bb40",
        "track_duration": 0,
        "fstatus": "none",
        "level": {
          "image": ""
        },
        "image": "https://sns-avatar-qc.xhscdn.com/avatar/cd255d0e201935e0d852bd371f18c198.jpg?imageView2/2/w/120/format/jpg",
        "followed": false,
        "show_red_official_verify_icon": false,
        "red_official_verified": false
      },
      "note_list": [
        {
          "desc": "#绿水青山天高云淡[话题]#\n#我的天高云淡[话题]#\n@甜润徽派 #上大豫园追灯会[话题]# #来上海过年[话题]#\n灯火阑珊皆是年味,快门一按,定格人间美好瞬间。\n元宵佳节,天高云淡,烟火与温柔共存,愿年年岁岁,喜乐常伴。",
          "share_info": {
            "image": "http://sns-img-qc.xhscdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/360/format/jpg/q/75",
            "link": "https://www.xiaohongshu.com/discovery/item/69aed4e2000000000e00c358?share_from_user_hidden=true&xsec_source=app_share&type=normal&author_share=1",
            "title": "被豫园的氛围感硬控了",
            "show_wechat_tag": false,
            "function_entries": [
              {
                "type": "generate_image"
              },
              {
                "type": "copy_link"
              },
              {
                "type": "heat_for_author"
              },
              {
                "type": "dislike"
              },
              {
                "type": "report"
              }
            ],
            "guide_audited": true,
            "wechat_share_desc": "#绿水青山天高云淡  #我的天高云淡  @甜润徽派 #上大豫园追灯会  #来上海过年  灯火阑珊皆是年味,快门一按,定格",
            "content": "#绿水青山天高云淡  #我的天高云淡  @甜润徽派 #上大豫园追灯会  #来上海过年  灯火阑珊皆是年味,快门一按,定格",
            "is_star": false,
            "block_private_msg": false
          },
          "has_music": false,
          "api_upgrade": -1,
          "id": "69aed4e2000000000e00c358",
          "shared_count": 0,
          "has_related_goods": false,
          "topics": [
            {
              "activity_online": false,
              "style": 0,
              "discuss_num": 0,
              "business_type": 0,
              "id": "6981ab6f000000002500b531",
              "name": "绿水青山天高云淡",
              "image": "http://ci.xiaohongshu.com/fd75707a-37f8-45ad-b7a7-0feaf36e9cad@r_120w_120h.jpg",
              "link": "xhsdiscover://topic/v2/6981ab6f0252000000000001?page_source=note_feed.click_new_big"
            }
          ],
          "title": "被豫园的氛围感硬控了",
          "collected_count": 1,
          "co_produce_link": "xhsdiscover://post_new_note?source=%7B%22type%22%3A%22together_post%22%2C%22extraInfo%22%3A%7B%22subType%22%3A%22together_post_halfspace%22%2C%22track_id%22%3A%2269aed4e2000000000e00c358%22%7D%7D&page=%7B%22page_type%22%3A%22image_co_produce_album%22%7D",
          "function_switch": [
            {
              "type": "image_download",
              "enable": true
            }
          ],
          "hash_tag": [
            {
              "name": "绿水青山天高云淡",
              "link": "xhsdiscover://rn/sns-discover/topic/normal?id=6981ab6f0252000000000001&page_source=note_feed.click_new_big",
              "record_emoji": "",
              "record_count": 0,
              "record_unit": "",
              "current_score": 0,
              "tag_hint": "",
              "id": "6981ab6f000000002500b531",
              "type": "topic",
              "bizId": ""
            },
            {
              "type": "topic",
              "bizId": "",
              "tag_hint": "",
              "record_unit": "",
              "current_score": 0,
              "id": "6992651c0000000024032123",
              "name": "我的天高云淡",
              "link": "xhsdiscover://rn/sns-discover/topic/normal?id=6992651c024c000000000001&page_source=note_feed.click_new_big",
              "record_emoji": "",
              "record_count": 0
            },
            {
              "id": "6971a6fc000000001b0130a2",
              "type": "topic",
              "link": "xhsdiscover://rn/sns-discover/topic/immersive?id=6971a6fd0082000000000001&page_source=note_feed.click_new_big",
              "record_count": 0,
              "bizId": "",
              "tag_hint": "",
              "name": "上大豫园追灯会",
              "record_emoji": "",
              "record_unit": "",
              "current_score": 0
            },
            {
              "link": "xhsdiscover://rn/sns-discover/topic/immersive?id=659f8b3d02c1e4000109c95d&page_source=note_feed.click_new_big",
              "record_emoji": "",
              "id": "659f8b3d000000003f03e8c6",
              "type": "topic",
              "record_unit": "",
              "current_score": 0,
              "bizId": "",
              "tag_hint": "",
              "name": "来上海过年",
              "record_count": 0
            }
          ],
          "countdown": 0,
          "time": 1773065442,
          "last_update_time": 0,
          "use_water_color": false,
          "content_trans_info": {
            "strategy": 10
          },
          "model_type": "note",
          "collected": false,
          "may_have_red_packet": false,
          "widgets_groups": [
            [
              "guos_test",
              "note_next_step",
              "second_jump_bar",
              "cooperate_binds",
              "note_collection",
              "rec_next_infos",
              "image_stickers",
              "image_filters",
              "product_review",
              "related_search",
              "cooperate_comment_component",
              "image_goods_cards",
              "ads_goods_cards",
              "ads_comment_component",
              "goods_card_v2",
              "image_template",
              "buyable_goods_card_v2",
              "ads_engage_bar",
              "challenge_card",
              "cooperate_engage_bar",
              "guide_post",
              "pgy_comment_component",
              "pgy_engage_bar",
              "bar_below_image",
              "aigc_collection",
              "co_produce",
              "widgets_ndb",
              "next_note_guide",
              "pgy_bbc_exp",
              "async_group",
              "super_activity",
              "widgets_enhance",
              "music_player",
              "soundtrack_player"
            ],
            [
              "guos_test",
              "vote_stickers",
              "bullet_comment_lead",
              "note_search_box",
              "interact_pk",
              "interact_vote",
              "guide_heuristic",
              "share_to_msg",
              "follow_guide",
              "note_share_prompt_v1",
              "sync_group",
              "group_share",
              "share_guide_bubble",
              "widgets_share",
              "guide_navigator"
            ]
          ],
          "ip_location": "安徽",
          "has_co_produce": false,
          "feedback_info": {
            "dislike_status": 0
          },
          "biz_map": {},
          "type": "normal",
          "enable_brand_lottery": false,
          "images_list": [
            {
              "width": 5712,
              "live_photo_file_id": "livephoto/1040g39031tgde2g75s7g5oj45g341eq015fldk0",
              "live_photo": {
                "media": {
                  "video_id": "137833492955647227",
                  "video": {
                    "biz_name": 10,
                    "biz_id": "281948681039037272",
                    "duration": 3,
                    "md5": "",
                    "hdr_type": 0,
                    "drm_type": 0,
                    "stream_types": [
                      66
                    ],
                    "width": 1920,
                    "height": 1440,
                    "bound": [
                      {
                        "x": 0,
                        "y": 0,
                        "w": 1920,
                        "h": 1440
                      }
                    ],
                    "opaque1": {
                      "domestic": "0",
                      "livephoto_flag": "1",
                      "amend_mobile": "40",
                      "amend": "18"
                    }
                  },
                  "stream": {
                    "h264": [],
                    "h265": [
                      {
                        "stream_type": 66,
                        "stream_desc": "livephoto_r256_1080p_66_andr",
                        "default_stream": 1,
                        "format": "mp4",
                        "width": 1440,
                        "height": 1080,
                        "duration": 2500,
                        "size": 1048339,
                        "volume": 0,
                        "avg_bitrate": 3354684,
                        "fps": 30,
                        "video_codec": "hevc",
                        "video_bitrate": 3327956,
                        "video_duration": 2466,
                        "audio_codec": "aac",
                        "audio_bitrate": 59296,
                        "audio_duration": 2500,
                        "audio_channels": 2,
                        "rotate": 0,
                        "master_url": "http://sns-v8.rednotecdn.com/stream/1/10/66/01e9aed4e1c5ccfb010050019cd2efcf84_66.mp4",
                        "backup_urls": [
                          "http://sns-v8.rednotecdn.com/stream/1/10/66/01e9aed4e1c5ccfb010050019cd2efcf84_66.mp4",
                          "http://sns-v10.rednotecdn.com/stream/1/10/66/01e9aed4e1c5ccfb010050019cd2efcf84_66.mp4"
                        ],
                        "hdr_type": 0,
                        "vmaf": -1,
                        "psnr": 35.79199981689453,
                        "ssim": 0,
                        "weight": 66,
                        "quality_type": "FHD",
                        "token": "",
                        "sr": 0,
                        "opaque1": {
                          "didLoudnorm": "false",
                          "pcdn_supplier": "",
                          "amend": "0",
                          "has_soundtrack": "1",
                          "use_pcdn": "0",
                          "pcdn_302_flag": "false",
                          "device_score": "0"
                        }
                      }
                    ],
                    "h266": [],
                    "av1": []
                  },
                  "user_level": 0
                },
                "image": {
                  "first_frame": ""
                },
                "capa": {
                  "duration": 0,
                  "frame_ts": 0,
                  "is_user_select": false,
                  "is_upload": false,
                  "is_ai_tab": false
                },
                "consumer": {
                  "can_super_resolution": true
                }
              },
              "trace_id": "notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130",
              "need_load_original_image": true,
              "url_8k": "https://sns-i8.rednotecdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/8192/h/8192/format/heif/q/58&redImage/frame/0&ap=1&sc=PAINTER&sign=a7748ac692f2b8e4b3fe0dd62e397d91&t=69aede0f&src=A",
              "origin_img": {
                "size": 0,
                "width": 5712,
                "height": 4284
              },
              "height": 4284,
              "original": "https://sns-i8.rednotecdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/5000/h/5000/format/heif/q/56&redImage/frame/0&ap=1&sc=ORIGINAL&sign=a7748ac692f2b8e4b3fe0dd62e397d91&t=69aede0f&src=A",
              "latitude": 0,
              "scale_to_large": 4,
              "fileid": "notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130",
              "url": "https://sns-i8.rednotecdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/1440/format/heif/q/45&redImage/frame/0&ap=1&sc=DETAIL&sign=a7748ac692f2b8e4b3fe0dd62e397d91&t=69aede0f&src=A",
              "index": 0,
              "url_multi_level": {
                "low": "https://sns-i8.rednotecdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/1440/format/heif/q/75&redImage/frame/0&ap=1&sc=DETAIL&sign=a7748ac692f2b8e4b3fe0dd62e397d91&t=69aede0f&src=A",
                "medium": "https://sns-i8.rednotecdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/1440/format/heif/q/75&redImage/frame/0&ap=1&sc=DETAIL&sign=a7748ac692f2b8e4b3fe0dd62e397d91&t=69aede0f&src=A",
                "high": "https://sns-i8.rednotecdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/1440/format/heif/q/75&redImage/frame/0&ap=1&sc=DETAIL&sign=a7748ac692f2b8e4b3fe0dd62e397d91&t=69aede0f&src=A"
              },
              "longitude": 0,
              "text_intention": 0
            }
          ],
          "sticky": false,
          "enable_fls_related_cards": false,
          "cooperate_binds": [],
          "share_code_flag": 0,
          "goods_info": {},
          "seeded": false,
          "head_tags": [],
          "need_product_review": false,
          "widgets_context": "{\"origin_video_key\":\"\",\"flags\":{},\"author_id\":\"62642c06000000001000bb40\",\"author_name\":\"搞笑女的肉体改造日记\",\"q_task_id\":\"\",\"video_rec_bar_info\":\"\"}",
          "ats": [
            {
              "level": {
                "image": ""
              },
              "name": "甜润徽派",
              "nickname": "甜润徽派",
              "show_red_official_verify_icon": false,
              "track_duration": 0,
              "id": "687f08f3000000001b0238e8",
              "followed": false,
              "red_official_verify_type": 0,
              "red_official_verified": false
            }
          ],
          "need_next_step": false,
          "enable_co_produce": true,
          "view_count": 0,
          "in_censor": false,
          "liked_users": [],
          "media_save_config": {
            "disable_save": false,
            "disable_watermark": false,
            "disable_weibo_cover": false
          },
          "comments_count": 0,
          "note_text_press_options": [
            {
              "key": "copy",
              "extra": ""
            }
          ],
          "seeded_count": 0,
          "long_press_share_info": {
            "is_star": false,
            "block_private_msg": false,
            "show_wechat_tag": false,
            "function_entries": [
              {
                "type": "image_download"
              }
            ],
            "guide_audited": false,
            "content": "",
            "title": ""
          },
          "foot_tags": [],
          "privacy": {
            "type": 0,
            "show_tips": false,
            "nick_names": ""
          },
          "user": {
            "image": "https://sns-avatar-qc.xhscdn.com/avatar/cd255d0e201935e0d852bd371f18c198.jpg?imageView2/2/w/120/format/jpg",
            "followed": false,
            "show_red_official_verify_icon": false,
            "userid": "62642c06000000001000bb40",
            "track_duration": 0,
            "fstatus": "none",
            "level": {
              "image": ""
            },
            "id": "62642c06000000001000bb40",
            "name": "搞笑女的肉体改造日记",
            "red_id": "2947938100",
            "nickname": "搞笑女的肉体改造日记",
            "red_official_verify_type": 0,
            "red_official_verified": false
          },
          "red_envelope_note": false,
          "text_language_code": "zh",
          "comment_prompt_config": {
            "placeholder_short": "说点什么...",
            "placeholder_long": "让大家听到你的声音",
            "forbidden_cmt_type": 0
          },
          "liked_count": 11,
          "mini_program_info": {
            "desc": "#绿水青山天高云淡  #我的天高云淡  @甜润徽派 #上大豫园追灯会  #来上海过年  灯火阑珊皆是年味,快门一按,定格",
            "webpage_url": "https://www.xiaohongshu.com/discovery/item/69aed4e2000000000e00c358?xsec_source=app_share",
            "thumb": "http://sns-img-qc.xhscdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/540/format/jpg/q/75",
            "share_title": "@搞笑女的肉体改造日记 发了一篇笔记,快点来看吧!",
            "user_name": "gh_52be748ce5b7",
            "path": "pages/main/home/index?redirect_path=%2Fpages%2Fmain%2Fnote%2Findex%3Fxsec_source%3Dapp_share%26id%3D69aed4e2000000000e00c358%26type%3Dnormal%26xsec_token%3DCBa8-a9zDqLTGQRbt6swUkwCfiPZ6TGUr81N25u2gtEBk%3D",
            "title": "@搞笑女的肉体改造日记 发了一篇笔记,快点来看吧!"
          },
          "qq_mini_program_info": {
            "path": "pages/main/note/index?xsec_source=app_share&id=69aed4e2000000000e00c358&type=normal",
            "title": "@搞笑女的肉体改造日记 发了一篇超赞的笔记,快点来看!",
            "desc": "#绿水青山天高云淡  #我的天高云淡  @甜润徽派 #上大豫园追灯会  #来上海过年  灯火阑珊皆是年味,快门一按,定格",
            "webpage_url": "https://www.xiaohongshu.com/discovery/item/69aed4e2000000000e00c358?xsec_source=app_share",
            "thumb": "http://sns-img-qc.xhscdn.com/notes_uhdr/1040g3qo31tgdnb2m5m705oj45g341eq04lpa130?imageView2/2/w/540/format/jpg/q/75",
            "share_title": "@搞笑女的肉体改造日记 发了一篇超赞的笔记,快点来看!",
            "user_name": "gh_66c53d495417"
          },
          "enable_fls_bridge_cards": false,
          "liked": false
        }
      ],
      "comment_list": [],
      "track_id": "",
      "model_type": "note"
    }
  ]
}

💡 Note: For list data, the example shows only 1-2 items for simplicity. The actual count depends on the API response.