How should I assess account risks when using a data API?
How should I assess account risks when using a data API? Follow concrete contracts, examples and reviewable steps using Xiaohongshu (RedNote), WeChat Official Accounts.
Copy the agent prompt manually
Answer
Start by inspecting the contracts and local samples for Xiaohongshu note detail, WeChat Official Account article detail. Establish the input for xiaohongshu.notes.get, then check whether its post object contains the fields your task needs.
The local exercise does not connect to a platform or grant authorization for real data use. Any production integration needs an identified source, permitted fields, purpose and retention period; this page makes no platform-authorization or legal-compliance claim.
Relevant contracts
| Capability | Object | Shape | Pagination |
|---|---|---|---|
| xiaohongshu.notes.get | Post | item | No cursor |
| wechat_mp.articles.get | Post | item | No cursor |
Input contract
Inspect meanings, examples and conditional rules for the selected method. view and fields control the response without changing the TEST unit price.
- GET: supply exactly one of id / url.
| Method | Field | Type | Requirement | Meaning | Enum or bound | Example |
|---|---|---|---|---|---|---|
| GET | id | string | Optional / conditional | Note ID, 24 hexadecimal characters. With only a link or a share text, give it as url | — | "6ac76250000000000a021233" |
| GET | url | string | Optional / conditional | Link to the note, pasted as it is: the https://www.xiaohongshu.com/explore/… address from the browser, the https://www.xiaohongshu.com/discovery/item/… link the website shares (query parameters such as xsec_token are fine), a whole share text with such a link in it, or the xhslink.com short link the app copies (alone or in its share text). A short link is opened once to see which note it leads to; where it cannot be, paste the note's full link or its ID | — | — |
| GET | view | string | Optional / conditional | How much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`). | ["compact","standard","full"] | — |
| GET | fields | array | Optional / conditional | Return only these fields of each item, by path (`author.name`). | maxItems: 64 | — |
Complete one verification
Run one local fixture for a listed capability and inspect the object structure. Then filter, classify or export according to the question. A local sample cannot replace evidence for a real-platform conclusion.
{
"capability": "xiaohongshu.notes.get",
"method": "GET",
"params": {
"id": "6ac76250000000000a021233"
}
}Clear inputs. Inspectable output.
Each click runs a local fixture. Advanced JSON inputs are checked against the selected method. Editing does not execute a request.
Copying does not execute. CLI quote is read-only and needs a local customer TEST key. Configure MCP in demo mode first. GET and POST batches both return only fictional local fixtures.
Download contract example (no execution) ↗For TEST budgets, Key scopes or failure scenarios, open the account console. Customer sandbox ↗