Back to articles
Ghost CMS Has a Free API: Build Headless Content Platforms with the Content and Admin APIs

Ghost CMS Has a Free API: Build Headless Content Platforms with the Content and Admin APIs

via Dev.to TutorialAlex Spinov

What is Ghost? Ghost is an open-source CMS for professional publishing. Unlike WordPress, Ghost is built specifically for content — blogs, newsletters, memberships, and paid subscriptions. It exposes two powerful APIs. The Content API (Public) Read-only access to published content — no authentication needed beyond an API key: export GHOST_URL = "https://your-ghost.com" export CONTENT_KEY = "your-content-api-key" Get Posts curl -s " $GHOST_URL /ghost/api/content/posts/?key= $CONTENT_KEY &limit=5" | jq '.posts[] | {title, slug, published_at}' Filter and Search # Posts by tag curl -s " $GHOST_URL /ghost/api/content/posts/?key= $CONTENT_KEY &filter=tag:javascript" # Posts by author curl -s " $GHOST_URL /ghost/api/content/posts/?key= $CONTENT_KEY &filter=author:alice" # Featured posts curl -s " $GHOST_URL /ghost/api/content/posts/?key= $CONTENT_KEY &filter=featured:true" # Include related data curl -s " $GHOST_URL /ghost/api/content/posts/?key= $CONTENT_KEY &include=tags,authors" Pages, Tag

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
2 views

Related Articles