Overview
This node integrates with the Postiz API to manage social media posts and related content. It supports multiple operations such as creating, deleting, and retrieving posts, uploading files, generating AI videos, and managing video-related functions.
The Get Posts operation specifically allows users to retrieve a list of posts filtered by a date range and optionally by customer ID. This is useful for scenarios where you want to analyze or process posts within a specific timeframe or for a particular customer, such as reporting, auditing, or syncing posts with other systems.
Practical Example
- Retrieve all posts created between January 1, 2024, and January 31, 2024, to generate a monthly report.
- Filter posts by a specific customer ID to monitor their activity or engagement.
Properties
| Name | Meaning |
|---|---|
| Start Date (UTC) | The start date and time (in UTC) to filter posts from. |
| End Date (UTC) | The end date and time (in UTC) to filter posts up to. |
| Customer | Optional customer ID to filter posts belonging to a specific customer. |
Output
The output is a JSON array containing the retrieved posts matching the specified filters. Each item in the array represents a post object as returned by the Postiz API. The exact structure depends on the API response but typically includes details like post content, date, tags, associated channels, and other metadata.
This operation does not produce binary data.
Dependencies
- Requires an API key credential for authenticating with the Postiz API.
- The node uses HTTP requests to communicate with the Postiz service endpoints.
- No additional environment variables are explicitly required beyond the API authentication setup.
Troubleshooting
- Missing or invalid date parameters: Both start and end dates are required. Ensure they are provided in valid datetime format (UTC).
- API authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
- Empty results: If no posts are returned, check that the date range and optional customer ID filters match existing posts.
- Network or API errors: These may occur due to connectivity issues or API downtime. Review error messages for HTTP status codes and retry accordingly.
Links and References
- Postiz API Documentation (hypothetical link)
- n8n documentation on Creating Custom Nodes
