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 interacts with the Lectful API to retrieve published blog posts publicly. Specifically, the "Get All Posts (Public)" operation fetches a list of blog posts that are publicly available, optionally filtered by status, author, category, or tag. This is useful for integrating public blog content into workflows, such as displaying recent posts on a website, aggregating content, or syncing blog data with other systems.
Practical examples:
- Automatically fetching the latest published blog posts to display in a newsletter.
- Filtering blog posts by a specific author or category to create targeted content feeds.
- Integrating blog post data into a CMS or marketing platform for further processing.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: "Use Stored Credentials" or "Manual Configuration". |
| Base URL Override | (Manual mode) Optional base URL to override the credential setting (without /api/v1). |
| API Key Override | (Manual mode) Optional API key to override the credential setting. |
| Status Filter | Filter posts by status: "All", "Draft", or "Published". |
| Author ID Filter | Filter posts by a specific author ID (string). |
| Category ID Filter | Filter posts by a specific category ID (string). |
| Tag ID Filter | Filter posts by a specific tag ID (string). |
| Per Page | Number of posts per page to retrieve (default is 12 for posts). |
Output
The node outputs an array of JSON objects representing blog posts matching the specified filters. Each object corresponds to a blog post and contains fields as returned by the Lectful API's public blog posts endpoint. The exact structure depends on the API but typically includes properties like post ID, title, content excerpt, author info, categories, tags, publish date, and status.
No binary data output is produced by this operation.
Dependencies
- Requires access to the Lectful API.
- Authentication can be provided either via stored credentials configured in n8n or manually by specifying the base URL and API key.
- The node uses HTTP requests with Bearer token authorization to communicate with the Lectful API.
Troubleshooting
- Missing or invalid credentials: If using stored credentials, ensure they are properly configured with a valid base URL and API key. For manual mode, both Base URL Override and API Key Override must be provided.
- API errors: The node will throw errors if the API returns an error response (e.g., unauthorized, not found). Check the API key validity and permissions.
- Empty results: If no posts are returned, verify filter parameters; for example, filtering by a non-existent author or category ID will yield no results.
- Incorrect pagination: Adjust the "Per Page" property to control the number of posts retrieved per request.
Links and References
- Lectful API Documentation (Assumed official API docs)
- n8n Documentation on HTTP Request Node for understanding API calls
- General REST API best practices for authentication and pagination