Actions88
- Blog Actions
- Get All Posts (Admin)
- Get Post (Admin)
- Create Post (Admin)
- Update Post (Admin)
- Delete Post (Admin)
- Get Categories (Admin)
- Get Category (Admin)
- Create Category (Admin)
- Update Category (Admin)
- Delete Category (Admin)
- Get Tags (Admin)
- Get Tag (Admin)
- Create Tag (Admin)
- Update Tag (Admin)
- Delete Tag (Admin)
- Get Authors (Admin)
- Get All Posts (Public)
- Get Post (Public)
- Get Categories (Public)
- Get Tags (Public)
- Get Posts by Category (Public)
- Get Posts by Tag (Public)
- Section Actions
- AI Resource Actions
- Authentication Actions
- User Actions
- Course Actions
- Lecture Actions
- Enrollment Actions
- Learning Path Actions
- Assignment Actions
- Progress Actions
- Video Actions
- Article Actions
- Quiz Question Actions
- Quiz Choice Actions
- Quiz Submission Actions
- Image Actions
Overview
This node integrates with the Lectful API to interact with blog-related data, specifically allowing users to retrieve blog posts filtered by a category slug in a public context. It is useful for scenarios where you want to fetch and display blog posts belonging to a specific category on websites, newsletters, or other content platforms without requiring admin access.
For example, if you have a blog with multiple categories like "Technology", "Health", and "Education", this node operation lets you pull all published posts under the "Technology" category by specifying its slug, enabling dynamic content retrieval based on user interest or page context.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: either using stored credentials or manual configuration by providing base URL and API key. |
| Credentials Note | Informational note shown when Manual Configuration mode is selected, explaining credential overrides. |
| Base URL Override | Optional base URL to override the stored credential's base URL (excluding /api/v1), used only in Manual Configuration mode. |
| API Key Override | Optional API key to override the stored credential's API key, used only in Manual Configuration mode. |
| Category Slug | The slug identifier of the blog category to filter posts by. This is required for the "Get Posts by Category (Public)" operation. |
| Per Page | Number of posts to return per page. Defaults to 12 for posts. Controls pagination size of results. |
Output
The node outputs an array of JSON objects representing the blog posts retrieved from the Lectful API filtered by the specified category slug. Each item in the output corresponds to one blog post and includes fields such as title, content, author, publish date, categories, tags, and other metadata as provided by the API.
No binary data output is produced by this operation.
Dependencies
- Requires access to the Lectful API.
- Requires either:
- Stored API credentials configured in n8n (base URL and API key), or
- Manual entry of Base URL and API key via node parameters.
- The API endpoint used is
/blog/categories/{categorySlug}/posts. - The node uses HTTP GET requests with Bearer token authentication.
Troubleshooting
- Missing or invalid credentials: If neither stored credentials nor manual overrides are properly set, the node will throw an error indicating missing or invalid credentials. Ensure that valid API keys and base URLs are provided.
- Category Slug not provided: The category slug parameter is required; omitting it will cause the request to fail.
- API rate limits or network issues: Network errors or API rate limiting may cause failures. Check connectivity and API usage quotas.
- Unexpected response format: If the API returns unexpected data or errors, verify the category slug exists and the API is accessible.
- Pagination issues: If too many posts exist, consider adjusting the "Per Page" parameter to control the number of posts returned per request.
Links and References
- Lectful API Documentation (Assumed URL, replace with actual if known)
- n8n Documentation on HTTP Request Node for understanding API calls and authentication.
- General REST API best practices for handling pagination and authentication.
This summary focuses exclusively on the "Blog" resource and the "Get Posts by Category (Public)" operation as requested.