Social media5 min readBy Purrkey teamUpdated

How to fetch Xiaohongshu comment replies by parent comment ID

Fetch the replies under a Xiaohongshu parent comment and read the returned comments, has-more flag, and page context

On this page

You have five Xiaohongshu parent comments from a product-feedback thread and need the replies under each one to gauge objections. Fetch the first page for five parent comment IDs with tikhub.xiaohongshu.app_v2.get_note_sub_comments, then put the returned reply items, the has-more flag and the page context into one worksheet. The table below is the deliverable; its values are placeholders showing the shape, not findings from a run

Example input and worksheet design

The five-row example uses invented IDs. Replace each placeholder with your own public note and parent comment IDs

Note IDParent comment ID
EXAMPLE-NOTE-01EXAMPLE-PARENT-01
EXAMPLE-NOTE-01EXAMPLE-PARENT-02
EXAMPLE-NOTE-01EXAMPLE-PARENT-03
EXAMPLE-NOTE-01EXAMPLE-PARENT-04
EXAMPLE-NOTE-01EXAMPLE-PARENT-05

The deliverable table has one row for each returned reply item. If data.comments is empty, keep one row for that parent comment with a blank Comment cell so the parent ID, has_more and page_context stay visible. Values here are placeholders showing the shape

CommentHas morePage contextParent comment ID
(reply item or blank)true or false(string)EXAMPLE-PARENT-01

Step 1: send the first page request

tikhub.xiaohongshu.app_v2.get_note_sub_comments is called through POST /v1/runs with toolId tikhub.xiaohongshu.app_v2.get_note_sub_comments. It takes a query object. query.comment_id is required. query.note_id, query.share_text, query.cursor and query.index are optional. Take query.comment_id from the parent comment you want replies under. Add query.note_id or query.share_text if you know either. Start with query.cursor empty and query.index 1

The catalog says the output is supplier-defined JSON data preserved without the billing/debug envelope. There is no fixed output schema. Read the field names from the first page before you write a loop. Field names under output in the contract were observed on one run, and keys not listed there may or may not appear on other inputs

Paging limit

The paging limit is cursor paging only. Use an empty query.cursor and query.index 1 for the first request. The input contract describes later query.cursor and query.index values as coming from $.data.data.cursor on the returned page. Because the output is raw supplier JSON with no fixed schema, have the agent check the first page for that path before it asks for page two

Step 2: read the fields that drive the decision

The output fields that drive the worksheet are data.comments, data.has_more and data.page_context. data.comments is the array of returned replies. data.has_more is a boolean for another page. data.page_context is a string returned with the page. Put data.has_more and data.page_context on each row for the parent comment. Use the reply items in Comment to mark an objection that needs a response. If data.has_more is true, fetch the next page before you close the parent comment

For note-level comments rather than replies, the companion guide covers exporting Xiaohongshu note comments

What one real call returned

One call was made on 2026-11-13. Input sent: {"query": {"comment_id": "6aac9e33000000000d0243ed", "note_id": "6aac9e33000000000d0243ed", "share_text": "", "cursor": "", "index": 1}}

Billing: status SETTLED, charged 0.01 USD against a ceiling of 0.01 USD

Top-level keys of data: comments, has_more, page_context

data.comments was an array with 0 items. data.has_more was false. data.page_context was "{}"

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the first page of replies for five Xiaohongshu parent comments. Check the current inputs and price of tikhub.xiaohongshu.app_v2.get_note_sub_comments before running anything. Use query.comment_id for each parent comment below. Add query.note_id or query.share_text if known. Start with query.cursor empty and query.index 1. The output is raw supplier JSON, so read the field names from the first page before parsing. Return a table with Comment, Has more, Page context and Parent comment ID. Use one row for each reply item from data.comments; if data.comments has 0 items, use one row for that parent comment with Comment blank. Read data.has_more and data.page_context from the response. Do not request page two in this run. Do not guess IDs.

Example note ID (replace): EXAMPLE-NOTE-01
Parent comment IDs (replace):
EXAMPLE-PARENT-01
EXAMPLE-PARENT-02
EXAMPLE-PARENT-03
EXAMPLE-PARENT-04
EXAMPLE-PARENT-05

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. The tool is $0.01 per call. The price is listed as max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The table totals are ceilings. The tool rule is fixed per-call price; successful empty results are charged. Agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
First page, one parent commentcalls x max price$0.01 per call1$0.01
First page, five parent commentscalls x max price$0.01 per call5$0.05

Next action

Fetch the first page for one parent comment from the Xiaohongshu tool page

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Xiaohongshu.
Explore Xiaohongshu tools and pricing

FAQ

How do I fetch Xiaohongshu comment replies by parent comment ID?

Use tikhub.xiaohongshu.app_v2.get_note_sub_comments with query.comment_id set to the parent comment ID. Add query.note_id or query.share_text if known, and start with query.cursor empty and query.index 1. The return includes data.comments, data.has_more and data.page_context.

What inputs does tikhub.xiaohongshu.app_v2.get_note_sub_comments take?

It takes a query object. query.comment_id is required, and query.note_id, query.share_text, query.cursor and query.index are optional.

What do data.comments, data.has_more and data.page_context show?

data.comments is the array of returned replies. data.has_more is a boolean for another page. data.page_context is a string returned with the page.

How much does it cost to fetch Xiaohongshu comment replies?

The tool is $0.01 per call. One parent comment first page is 1 call and $0.01; five parent comments first page each is 5 calls and $0.05. The price is a max_call ceiling, and successful runs settle at the actual AnyAPI charge.

Are empty Xiaohongshu comment reply pages charged?

Yes. The tool rule is fixed per-call price; successful empty results are charged. The real call on 2026-11-13 had data.comments with 0 items, data.has_more false and settled at $0.01 against a $0.01 ceiling.

How do I page through Xiaohongshu comment replies?

Use empty query.cursor and query.index 1 for the first request. The input contract says later cursor and index values come from $.data.data.cursor on the returned page. Read field names from the first page because the output is raw supplier JSON with no fixed schema.

Next step

Try this with Xiaohongshu

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Xiaohongshu tools

Share this article