Enhanced Ghost CMS integration for n8n with support for Ghost Content API v3 and Admin API v2.
This node extends the default Ghost CMS integration with additional features:
- Get Post: Retrieve a single post by ID or slug
- Get Many Posts: Retrieve multiple posts with filtering options
-
Post Management:
- Create: Create new blog posts with support for full post properties including excerpt
- Get: Retrieve a single post by ID or slug
- Get Many: Retrieve multiple posts with filtering options
- Update: Update existing blog posts with all available fields including excerpt
- Delete: Remove posts from your Ghost site
-
Feature Image Support:
-
feature_image
: Set a featured image URL for your post -
feature_image_alt
: Add alternative text for the featured image -
feature_image_caption
: Add a caption for the featured image
-
-
Image Upload (NEW in 0.1.77):
- Upload images directly to your Ghost CMS media library
- Support for different image purposes (general image, profile image, icon)
- Custom file name and reference metadata
-
Media Upload (NEW in 0.1.80):
- Upload videos and audio files to your Ghost CMS media library
- Support for thumbnail uploads for videos
- Custom file name and reference metadata
- N8N version 1.0.0 or later
- Ghost CMS instance with Content API or Admin API credentials
Install via NPM:
npm install @vladoportos/n8n-nodes-ghostplus
For manual installation, copy the contents of the dist
directory to your n8n custom nodes directory.
Two credential types are available:
-
Ghost Plus Content API
- URL: Your Ghost site URL (e.g., https://your-ghost-site.com)
- API Key: Your Content API key
-
Ghost Plus Admin API
- URL: Your Ghost site URL (e.g., https://your-ghost-site.com)
- API Key: Your Admin API key in the format
{id}:{secret}
Select the "Post" resource to work with blog posts. Operations differ based on the selected API source:
- Get: Retrieve a post by ID or slug
- Get Many: List multiple posts with filtering options
- Create: Create a new blog post with title, content format (HTML or MobileDoc), and content
- Get: Retrieve a post by ID or slug
- Get Many: List multiple posts with filtering options
- Update: Modify an existing post
- Delete: Remove a post
Select the "Image" resource and "Upload" operation to add images to your Ghost CMS. Required parameters:
- Binary Property: Name of the binary property containing the image data
-
Additional Fields:
- Purpose: Choose between "Image", "Profile Image" (must be square), or "Icon" (must be square)
- File Name: Custom file name for the uploaded image (optional)
- Reference: Optional reference identifier for the image (e.g., original file path)
- Use a node to fetch or generate an image (HTTP Request, Read Binary File, etc.)
- Connect to Ghost Plus node configured with:
- Source: Admin API
- Resource: Image
- Operation: Upload
- Binary Property: data (or your binary property name)
- Add another Ghost Plus node configured with:
- Source: Admin API
- Resource: Post
- Operation: Create
- Title: Your post title
- Content: Include the uploaded image URL from the previous node in your HTML content
MIT
- Fixed the excerpt field implementation to use
custom_excerpt
instead ofexcerpt
- Ghost uses custom_excerpt as the editable field that can be set via API
- Added support for the
excerpt
field in Create Post and Update Post operations - This allows setting a custom excerpt for posts instead of using the auto-generated one
- Various features and improvements (see commit history)