xiaohongshu icon

xiaohongshu

与小红书API交互

Actions3

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 is useful for social media managers, content creators, or marketers who want to automate posting notes to their Xiaohongshu account directly from n8n workflows.

Practical examples include:

  • Automatically publishing promotional notes when a new product launches.
  • Scheduling daily inspirational notes with images and tags.
  • Posting private notes for internal review before public release.

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 API supports it, binary data output is not indicated for this operation, so the output is purely JSON.

Dependencies

  • Requires an API key credential for authenticating with the Xiaohongshu API.
  • The base URL for API requests is configured via credentials.
  • The node expects the Xiaohongshu API to accept JSON-formatted requests and respond with JSON.

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 partial failures or ignored fields.
  • Error messages:
    • Authentication errors: Check that the API key credential is correctly set and valid.
    • Validation errors: Ensure all required properties are provided and properly formatted.
    • Network errors: Verify connectivity to the Xiaohongshu API endpoint and correct base URL configuration.

Links and References

Discussion