Overview
This node integrates with the Xiaohongshu (Little Red Book) API to publish notes. It allows users to create and share content on the Xiaohongshu platform by submitting note details such as title, content, tags, images, and privacy settings. This node is beneficial for automating content publishing workflows, managing social media posts, or integrating Xiaohongshu content creation into larger automation pipelines.
Practical examples include:
- Automatically posting marketing notes or product highlights to Xiaohongshu.
- Scheduling and publishing user-generated content from other platforms.
- Managing multiple Xiaohongshu accounts' content programmatically.
Properties
| Name | Meaning |
|---|---|
| 标题 (title) | The title of the note. Required field. |
| 笔记内容 (content) | The main body content of the note. Required field. |
| 标签 (tags) | Tags associated with the note, multiple tags separated by commas. |
| 图片 (images) | URLs of images to include in the note, multiple URLs separated by commas. |
| 是否为私密笔记 (isPrivate) | Boolean flag indicating whether the note should be private (true) or public (false). |
| 是否为原创内容 (isOriginal) | Boolean flag indicating whether the note is marked as original content (true) or not. |
Output
The node outputs JSON data representing the response from the Xiaohongshu API after attempting to publish the note. This typically includes information about the created note such as its ID, status, and any metadata returned by the API.
If the node supports binary data output (not indicated here), it would represent media files or attachments related to the note, but this is not evident from the provided code.
Dependencies
- Requires an API key credential for authenticating with the Xiaohongshu API.
- Needs the base URL domain configured in the credentials to direct API requests properly.
- The node depends on the Xiaohongshu API being accessible and responsive.
Troubleshooting
Common issues:
- Missing required fields like title or content will likely cause the API to reject the request.
- Incorrect or expired API credentials will result in authentication errors.
- Improperly formatted tags or image URLs may cause the API to fail or ignore those fields.
- Network connectivity problems can prevent successful API calls.
Error messages:
- Authentication failures usually indicate invalid or missing API keys; verify credentials.
- Validation errors from the API often specify which required fields are missing or malformed.
- Rate limiting or quota exceeded errors suggest too many requests in a short time; implement retries or backoff.
Resolving these generally involves checking input completeness, verifying credentials, and ensuring network stability.
Links and References
- Xiaohongshu Official API Documentation (in Chinese)
- Xiaohongshu Platform Overview
- n8n documentation on Creating Custom Nodes