Actions29
- Posts Actions
- Comments Actions
- Users Actions
- Search Actions
Overview
The "Get Posts" operation of the "Posts" resource in this node allows users to retrieve posts from Sina Weibo, a popular Chinese social media platform. This operation can fetch posts made by a specific user identified either by their User ID or Screen Name. It supports pagination and limiting the number of posts returned per request.
This node is beneficial for scenarios such as:
- Monitoring a user's recent activity on Weibo.
- Aggregating posts for analysis or display in dashboards.
- Archiving or backing up user posts.
- Integrating Weibo content into other applications or workflows.
For example, you could use this node to get the latest 20 posts from a particular user by specifying their screen name and then process or analyze those posts further in your workflow.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the user whose posts you want to retrieve. |
| Screen Name | The screen name (username) of the user whose posts you want to retrieve. |
| Count | Number of posts to return in one request. |
| Page | The page number of results to retrieve, used for pagination. |
Output
The output is an array of JSON objects, each representing a post retrieved from the specified user. Each item corresponds to one post and contains all relevant data fields returned by the Sina Weibo API for that post, such as post content, creation time, author details, and metadata.
No binary data output is produced by this operation.
Dependencies
- Requires access to the Sina Weibo API via the "N8N Tools API" service.
- An API key credential for the N8N Tools API must be configured in n8n to validate subscription and authenticate requests.
- The node internally uses a helper class to interact with the Weibo API endpoints.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that the API key credential is correctly set up and active.
- Unknown Operation Error: This indicates an unsupported or misspelled operation parameter; ensure "getPosts" is selected for this resource.
- Empty Results: If no posts are returned, check that the User ID or Screen Name is correct and that the user has public posts available.
- Rate Limits: The Weibo API may impose rate limits; if you encounter errors related to too many requests, consider adding delays or reducing request frequency.
Links and References
- Sina Weibo Official API Documentation
- n8n Documentation - Creating Custom Nodes
- N8N Tools API Service (for API key management and subscription)