xiaohongshu icon

xiaohongshu

与小红书API交互

Overview

This node integrates with the Xiaohongshu (Little Red Book) API, specifically enabling users to search notes within the platform. It is useful for scenarios where you want to programmatically retrieve content based on keywords from Xiaohongshu's note database. For example, marketers or researchers can use this node to find relevant user-generated content or trends by searching notes with specific keywords.

Properties

Name Meaning
关键词 (keywords) The search keywords to query notes. This is a required string input that specifies what terms to look for in the notes.
限制结果数量 (limit) The maximum number of search results to return. This is a number input with a minimum value of 1 and defaults to 50.

Output

The node outputs JSON data representing the search results from Xiaohongshu notes matching the provided keywords. The structure typically includes an array of note objects containing details such as note content, author information, timestamps, and other metadata returned by the Xiaohongshu API. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating with the Xiaohongshu API.
  • The base URL for API requests is dynamically set from the credential domain.
  • The node sends HTTP requests with JSON payloads and expects JSON responses.

Troubleshooting

  • Common issues:
    • Invalid or missing API credentials will cause authentication failures.
    • Providing empty or invalid keywords may result in no results or errors.
    • Exceeding rate limits imposed by the Xiaohongshu API could lead to request rejections.
  • Error messages:
    • Authentication errors usually indicate problems with the API key or token; verify and update credentials.
    • Validation errors may occur if the limit is set below 1 or if required parameters are missing.
    • Network or timeout errors suggest connectivity issues; check network settings and API availability.

Links and References

Discussion