How to fetch a Xiaohongshu note from a share-link token
Fetch one Xiaohongshu note's supplier JSON using a note ID and the xsec token copied from its share link
On this page
You have 12 Xiaohongshu share links from a campaign and need to confirm each note's returned supplier JSON before archiving it. Call tikhub.xiaohongshu.web_v3.fetch_note_detail once per note ID and token, then review the returned data value for null or an unexpected shape
The worksheet below is the deliverable: one row per note, with the returned data and a review status. Values here are placeholders showing the shape, and this table is a design, not a result
The task and the worksheet
Use the table to decide which notes need a fresh share link before the archive is accepted. The columns are data and review_status; keep note_id as the row key so the decision stays attached to the campaign link
| note_id | data | review_status |
|---|---|---|
| (campaign note ID) | (supplier JSON or null) | (archive, fresh share link or manual review) |
An empty data value is a normal outcome. It still costs a call, so the review status should record whether the note needs a new share link
Example input and required fields
Example input: note ID 6a99709f000000002901963c with security token AB3x9kLmN2pQrStUvWxYz0123456789abcdef. This pair is an example; replace it with a note from your campaign
The contract lists query.note_id and query.xsec_token as required strings. note_id is the note ID. The contract describes xsec_token as a security token that can be obtained from the sharing link of Xiaohongshu. Both fields are required, so a bare note ID cannot be used alone. The contract does not list optional fields
The token is not a separate lookup step in this call. The contract places both values under query, and the agent should send the pair as one request. If the token is missing, the call cannot run from a bare note ID
Call the tool once for each note ID and token pair. For 12 campaign links, that is 12 calls
How to read the returned data field
The output is the supplier's raw JSON with no fixed schema. The contract lists data under output and records a null observed sample. It also says keys not listed may or may not appear on other inputs
Read data before you set review_status:
datais null: set review_status tofresh share linkdatahas a shape you did not expect: set review_status tomanual reviewdatahas the supplier JSON you expect: set review_status to archive
Record the raw supplier JSON in the data column, or record null when the field is empty. Do not flatten the JSON into separate columns at this stage; the table is for the archive decision
The price rule says successful empty results are charged. A null data still costs the $0.01 per-call price
A companion guide covers Xiaohongshu note details by ID
What one real call returned
The call was made on 2026-11-13. Input sent:
{"query":{"note_id":"6a99709f000000002901963c","xsec_token":"AB3x9kLmN2pQrStUvWxYz0123456789abcdef"}}Billing status SETTLED. Charged 0.01 USD against a ceiling of 0.01 USD. The run facts do not include item counts or top-level keys
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch Xiaohongshu note details for the campaign notes below. Check the current inputs and price of tikhub.xiaohongshu.web_v3.fetch_note_detail before running anything. Call the tool once per note ID and xsec token. Read the field names from the first page of the supplier JSON before filling the table. Return a table with note_id, data and review_status (archive, fresh share link or manual review). Set review_status to fresh share link when data is null, manual review when the shape is unexpected, and archive when the supplier JSON matches what you expect. Do not guess a note ID or token.
Example pair:
note_id: 6a99709f000000002901963c
xsec_token: AB3x9kLmN2pQrStUvWxYz0123456789abcdefReplace the example pair with your 12 campaign pairs. Keep the first check to one note so you can confirm the returned data shape before the batch
Estimated tool cost
The price block lists the tool at $0.01 per call, and it is called through POST /v1/runs with toolId tikhub.xiaohongshu.web_v3.fetch_note_detail. The rule text is "Fixed per-call price; successful empty results are charged." The table below is a ceiling. The label max_call means "Maximum per call. Successful runs settle at the actual AnyAPI charge." Model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single note check | 1 call x $0.01 per call | $0.01 per call | 1 | $0.01 |
| 12-note campaign batch | 12 calls x $0.01 per call | $0.01 per call | 12 | $0.12 |
Next action
Open the Xiaohongshu note detail tool to check the current input fields and price before you run the 12 notes
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.FAQ
How do I fetch a Xiaohongshu note from a share link?
Call tikhub.xiaohongshu.web_v3.fetch_note_detail with query.note_id and query.xsec_token. Both are required strings, and the token comes from the share link.
What inputs does tikhub.xiaohongshu.web_v3.fetch_note_detail take?
It takes query.note_id and query.xsec_token, both required strings. The contract does not list optional fields.
What does tikhub.xiaohongshu.web_v3.fetch_note_detail return?
It returns the supplier's JSON preserved as is. The contract lists data under output and records a null observed sample.
What should review_status be when data is null?
Set review_status to fresh share link. The price rule says successful empty results are charged.
How much does a 12-note Xiaohongshu batch cost?
At $0.01 per call, the planned 12-call batch is $0.12.
What did the one real call cost?
Billing status was SETTLED, with 0.01 USD charged against a ceiling of 0.01 USD. The call was made on 2026-11-13.
Can I use a bare Xiaohongshu note ID?
No. Both query.note_id and query.xsec_token are required, so a bare note ID cannot be used alone.
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.