OpenAny
Get API keyAPI Key
APIDataScrapers

xiaohongshu logo
Xiaohongshu (RedNote) Get note sub comments API

Get Xiaohongshu (RedNote / 小红书) Get note sub comments data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 2 implementations (JustOneAPI and TikHub), pass parameters such as commentId, noteId, and retrieve structured data including business status code, pagination cursor, continuation flag, content, and identifier for content research and account lookup, and integration reference.

Selected price
$0.023077 / callPublished pricing
Sellers / APIs
2 / 2
Requests · 30d
—Statistics unavailable
Success rate · 30d
—Statistics unavailable
USE THIS API

Xiaohongshu (RedNote) Get note sub comments API

Prepare your request, then continue with your agent.

Selected price

$0.023077 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Xiaohongshu (RedNote) Get note sub comments API

Xiaohongshu (RedNote) Comment Replies (V2) API

Retrieve replies to a specific Xiaohongshu (RedNote) note comment with cursor pagination. Provide noteId in query, commentId in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs query: noteId, commentId, lastCursor
Selected implementation justoneapi · Xiaohongshu (RedNote) Comment Replies API (V2)
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

What You Can Build

  • Content research and account lookup: Keep source records connected to their content and account identifiers.
  • Integration reference: Use the selected request format and keep source identifiers with the returned result.

Documented Response Fields

Field Meaning
code Business status code
data.cursor Pagination cursor
data.has_more Continuation flag
data.comments[].content Content
data.comments[].id Identifier
data.comments[].status Reported status
data.comments[].at_users Returned at users field
data.comments[].biz_label Returned biz label field

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl \
  'https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/get-note-sub-comment/v2?commentId=%3CREPLACE_COMMENTID%3E&noteId=%3CREPLACE_NOTEID%3E' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'

Request and Response Examples

The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.

Published Xiaohongshu (RedNote) Comment Replies (V2) API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Unique note identifier on Xiaohongshu.
Unique comment identifier on Xiaohongshu.
Pagination cursor from the previous page (use the cursor value returned by the last response).

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Current
Xiaohongshu (RedNote) Comment Replies API (V2) · GET · View API reference
$0.023077 / call—
—successP50—
Get note sub comments · GET · View API reference
$0.01 / call—Select to load statistics
—successP50—
Selected pricing · justoneapiUSD / call
Unit price
$0.023077

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 6. Price update time: not supplied.

calls

Total $2.3077

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/get-note-sub-comment/v2
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
noteIdURL query parametersquerystringYes

Unique note identifier on Xiaohongshu.

commentIdURL query parametersquerystringYes

Unique comment identifier on Xiaohongshu.

lastCursorURL query parametersquerystringNo

Pagination cursor from the previous page (use the cursor value returned by the last response).

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • codeinteger
  • dataobject
    • commentsobject[]
      • at_usersunknown[]
      • biz_labelobject
        • group_invitestring
        • product_reviewboolean
        • rich_textstring
      • collectedboolean
      • comment_typeinteger
      • contentstring
      • downvotedboolean
      • friend_liked_msgstring
      • hiddenboolean
      • idstring
      • like_countinteger
      • likedboolean
      • note_idstring
      • scoreinteger
      • share_strategyinteger
      • show_tagsunknown[]
      • show_tags_v2unknown[]
      • show_typestring
      • statusinteger
      • target_commentobject
        • idstring
        • statusinteger
        • userobject
          • additional_tagsobject
          • ai_agentboolean
          • current_userstring
          • imagesstring
          • levelobject
            • imagestring
          • nicknamestring
          • red_idstring
          • useridstring
      • timeinteger
      • translation_strategyinteger
      • userobject
        • additional_tagsobject
        • ai_agentboolean
        • current_userstring
        • imagesstring
        • levelobject
          • imagestring
        • nicknamestring
        • red_idstring
        • useridstring
    • cursorstring
    • has_moreboolean
    • page_contextstring
  • messagenull
  • recordTimenull

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

官方文档示例

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 3

    Review these request fields before running. Keep the published provider and request method unchanged.

    noteId
    Unique note identifier on Xiaohongshu.
    commentId
    Unique comment identifier on Xiaohongshu.
    lastCursor
    Pagination cursor from the previous page (use the cursor value returned by the last response).
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/justoneapi/api/xiaohongshu/get-note-sub-comment/v2?commentId=%3CREPLACE_COMMENTID%3E&noteId=%3CREPLACE_NOTEID%3E' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "code": 0,
      "data": {
        "comments": [
          {
            "at_users": [],
            "biz_label": {
              "group_invite": "unknown",
              "product_review": false,
              "rich_text": "unknown"
            },
            "collected": false,
            "comment_type": 0,
            "content": "估计又系个假号[笑哭R]",
            "downvoted": false,
            "friend_liked_msg": "",
            "hidden": false,
            "id": "65bf6392000000000800b405",
            "like_count": 161,
            "liked": false,
            "note_id": "65bf5360000000002c03f684",
            "score": 0,
            "share_strategy": 0,
            "show_tags": [],
            "show_tags_v2": [],
            "show_type": "common",
            "status": 3,
            "target_comment": {
              "id": "65bf56d3000000000803f4ec",
              "status": 0,
              "user": {
                "additional_tags": {},
                "ai_agent": false,
                "current_user": "false",
                "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo30rmoae6j2g5g5o6poeg08lrqd2p83no?imageView2/2/w/120/format/jpg",
                "level": {
                  "image": ""
                },
                "nickname": "豪",
                "red_id": "9530496503",
                "userid": "a73af894e4b6614cabb72439b6a4e"
              }
            },
            "time": 1707041682,
            "translation_strategy": 10,
            "user": {
              "additional_tags": {},
              "ai_agent": false,
              "current_user": "false",
              "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo3205fu7edis605nre2evg8uucrsh38go?imageView2/2/w/120/format/jpg",
              "level": {
                "image": ""
              },
              "nickname": "榴莲在摩天轮",
              "red_id": "371915976",
              "userid": "ab4862d4072fc5e72c2a00d06a181"
            }
          },
          {
            "at_users": [],
            "biz_label": {
              "group_invite": "unknown",
              "product_review": false,
              "rich_text": "unknown"
            },
            "collected": false,
            "comment_type": 0,
            "content": "别胡说吧…去年媒体当面采访还问她为什么开小红书,她也说之前答应了粉丝要开的…本人都官宣的号怎么到你这里就变假号了[石化R]",
            "downvoted": false,
            "friend_liked_msg": "",
            "hidden": false,
            "id": "65bf659700000000080142ec",
            "like_count": 44,
            "liked": false,
            "note_id": "65bf5360000000002c03f684",
            "score": 0,
            "share_strategy": 0,
            "show_tags": [],
            "show_tags_v2": [],
            "show_type": "common",
            "status": 0,
            "target_comment": {
              "id": "65bf6392000000000800b405",
              "status": 3,
              "user": {
                "additional_tags": {},
                "ai_agent": false,
                "current_user": "false",
                "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo3205fu7edis605nre2evg8uucrsh38go?imageView2/2/w/120/format/jpg",
                "level": {
                  "image": ""
                },
                "nickname": "榴莲在摩天轮",
                "red_id": "371915976",
                "userid": "ab4862d4072fc5e72c2a00d06a181"
              }
            },
            "time": 1707042199,
            "translation_strategy": 10,
            "user": {
              "additional_tags": {},
              "ai_agent": false,
              "current_user": "false",
              "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo316u8dgg50o005odpdq9417mfgt60vuo?imageView2/2/w/120/format/jpg",
              "level": {
                "image": ""
              },
              "nickname": "喜欢唱跳rap写信",
              "red_id": "1635985618",
              "userid": "a44f0a0a7686e58ef02449cfef548"
            }
          },
          {
            "at_users": [],
            "biz_label": {
              "group_invite": "unknown",
              "product_review": false,
              "rich_text": "unknown"
            },
            "collected": false,
            "comment_type": 0,
            "content": "你自己搜下有几个咯[微笑R]",
            "downvoted": false,
            "friend_liked_msg": "",
            "hidden": false,
            "id": "65bf65dc000000000803286b",
            "like_count": 2,
            "liked": false,
            "note_id": "65bf5360000000002c03f684",
            "score": 0,
            "share_strategy": 0,
            "show_tags": [],
            "show_tags_v2": [],
            "show_type": "common",
            "status": 3,
            "target_comment": {
              "id": "65bf659700000000080142ec",
              "status": 0,
              "user": {
                "additional_tags": {},
                "ai_agent": false,
                "current_user": "false",
                "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo316u8dgg50o005odpdq9417mfgt60vuo?imageView2/2/w/120/format/jpg",
                "level": {
                  "image": ""
                },
                "nickname": "喜欢唱跳rap写信",
                "red_id": "1635985618",
                "userid": "a44f0a0a7686e58ef02449cfef548"
              }
            },
            "time": 1707042268,
            "translation_strategy": 10,
            "user": {
              "additional_tags": {},
              "ai_agent": false,
              "current_user": "false",
              "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo3205fu7edis605nre2evg8uucrsh38go?imageView2/2/w/120/format/jpg",
              "level": {
                "image": ""
              },
              "nickname": "榴莲在摩天轮",
              "red_id": "371915976",
              "userid": "ab4862d4072fc5e72c2a00d06a181"
            }
          },
          {
            "at_users": [],
            "biz_label": {
              "group_invite": "unknown",
              "product_review": false,
              "rich_text": "unknown"
            },
            "collected": false,
            "comment_type": 0,
            "content": "她打tag也写了美斯啊…而且正文写梅西没问题吧?迁就内地广东以外的网友",
            "downvoted": false,
            "friend_liked_msg": "",
            "hidden": false,
            "id": "65bf65ff000000000803cfe8",
            "like_count": 40,
            "liked": false,
            "note_id": "65bf5360000000002c03f684",
            "score": 0,
            "share_strategy": 0,
            "show_tags": [],
            "show_tags_v2": [],
            "show_type": "common",
            "status": 0,
            "target_comment": {
              "id": "65bf56d3000000000803f4ec",
              "status": 0,
              "user": {
                "additional_tags": {},
                "ai_agent": false,
                "current_user": "false",
                "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo30rmoae6j2g5g5o6poeg08lrqd2p83no?imageView2/2/w/120/format/jpg",
                "level": {
                  "image": ""
                },
                "nickname": "豪",
                "red_id": "9530496503",
                "userid": "a73af894e4b6614cabb72439b6a4e"
              }
            },
            "time": 1707042303,
            "translation_strategy": 10,
            "user": {
              "additional_tags": {},
              "ai_agent": false,
              "current_user": "false",
              "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo316u8dgg50o005odpdq9417mfgt60vuo?imageView2/2/w/120/format/jpg",
              "level": {
                "image": ""
              },
              "nickname": "喜欢唱跳rap写信",
              "red_id": "1635985618",
              "userid": "a44f0a0a7686e58ef02449cfef548"
            }
          },
          {
            "at_users": [],
            "biz_label": {
              "group_invite": "unknown",
              "product_review": false,
              "rich_text": "unknown"
            },
            "collected": false,
            "comment_type": 0,
            "content": "拜托她就这一个小红书号…你看到有好几个吗?",
            "downvoted": false,
            "friend_liked_msg": "",
            "hidden": false,
            "id": "65bf662f0000000008017f77",
            "like_count": 7,
            "liked": false,
            "note_id": "65bf5360000000002c03f684",
            "score": 0,
            "share_strategy": 0,
            "show_tags": [],
            "show_tags_v2": [],
            "show_type": "common",
            "status": 0,
            "target_comment": {
              "id": "65bf65dc000000000803286b",
              "status": 3,
              "user": {
                "additional_tags": {},
                "ai_agent": false,
                "current_user": "false",
                "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo3205fu7edis605nre2evg8uucrsh38go?imageView2/2/w/120/format/jpg",
                "level": {
                  "image": ""
                },
                "nickname": "榴莲在摩天轮",
                "red_id": "371915976",
                "userid": "ab4862d4072fc5e72c2a00d06a181"
              }
            },
            "time": 1707042351,
            "translation_strategy": 10,
            "user": {
              "additional_tags": {},
              "ai_agent": false,
              "current_user": "false",
              "images": "https://sns-avatar-qc-ae.rednotecdn.com/avatar/1040g2jo316u8dgg50o005odpdq9417mfgt60vuo?imageView2/2/w/120/format/jpg",
              "level": {
                "image": ""
              },
              "nickname": "喜欢唱跳rap写信",
              "red_id": "1635985618",
              "userid": "a44f0a0a7686e58ef02449cfef548"
            }
          }
        ],
        "cursor": "{\"cursor\":\"65bf662f0000000008017f77\",\"index\":2}",
        "has_more": true,
        "page_context": "{\"highlight\":[\"抬头蛙\"]}"
      },
      "message": null,
      "recordTime": null
    }

Common questions

Which inputs identify this request?

Provide noteId in query (string); commentId in query (string). Keep identifiers and URLs in the formats documented for this implementation.

Which pagination or result-size inputs are exposed?

lastCursor is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

Where do URL parameters belong?

Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

How should I map the returned fields?

Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Use Xiaohongshu (RedNote) Get note sub comments API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.