Overview
This node integrates with the Steemit blockchain platform to enable users to publish, manage, and search for content on Steemit. It supports operations such as creating and updating posts, retrieving posts or account information, searching posts by tag or author, uploading images, and claiming reward balances.
The Search operation specifically allows users to find posts either by a specific tag or by an author name, returning a list of matching posts up to a specified limit.
Practical examples:
- A content curator can search for trending posts tagged with "technology" to gather relevant articles.
- A user can search for all posts authored by a particular Steemit user to monitor their activity.
- Marketers can use the search to analyze popular tags or authors in their niche.
Properties
| Name | Meaning |
|---|---|
| Search By | Choose whether to search posts by Tag or by Author. |
| Search Term | The term to search for; either the tag name or the author's username depending on above. |
| Limit | Maximum number of results to return (minimum 1). |
Output
The output JSON contains a posts array with each post object including:
parent_author: The parent author of the post (usually empty for top-level posts).parent_permlink: The parent permlink (tag or category).author: The author username of the post.permlink: The unique permlink identifier of the post.title: The title of the post.created: The creation date/time of the post.tags: An array of tags associated with the post, parsed from the post's metadata.
Example output structure:
{
"posts": [
{
"parent_author": "",
"parent_permlink": "steemit",
"author": "exampleuser",
"permlink": "example-post-permlink",
"title": "Example Post Title",
"created": "2023-01-01T00:00:00",
"tags": ["tag1", "tag2"]
}
]
}
Dependencies
- Requires an API key credential for authenticating with the Steemit blockchain.
- Uses the
@upvu/dsteemlibrary to interact with Steemit's API. - Connects to the public Steemit API endpoint at
https://api.steemit.com. - No additional environment variables are required beyond the API credential.
Troubleshooting
- Empty results: Ensure the search term is correct and that there are posts matching the tag or author on Steemit.
- API errors or timeouts: Check network connectivity and verify that the provided API credentials are valid.
- Invalid limit values: The limit must be at least 1; setting it lower may cause errors.
- Malformed tags: Tags should be simple strings without special characters; otherwise, parsing might fail.
If the node throws errors related to missing accounts or posts, verify that the searched author or tag exists on Steemit.