Explainers

What is a headless CMS? APIs, hosting models and when it fits

A headless CMS stores content and serves it through an API, with no built-in website. Learn how it differs from a traditional CMS and when it is overkill.

By listme.name 4 min read Share

A headless CMS is a content management system that stores and edits content and delivers it through an API, without a built-in website or template layer. The "head" is the front end that displays content. With a headless CMS, a separate application, such as a website, a mobile app or a kiosk screen, reads the content over HTTP and decides how it looks. The Wikipedia article on headless CMS describes it the same way.

How it differs from a traditional CMS and a page builder

A traditional CMS keeps the editing tools and the page rendering in one application. Editors pick themes and templates, and the same system produces the HTML that visitors receive. A page builder is a visual tool, often part of a website platform, where you place blocks on a page and publish it. Both aim to produce a working website with less development work than a custom build.

A headless CMS covers the other half of the job. It provides an admin interface for content creators, workflows and roles, content models that define the fields and relationships for each content type, and an API that other software can read. It does not decide how the content looks.

Traditional CMS Page builder Headless CMS
Where pages are rendered In the CMS itself In the website platform In a separate front end the team builds or chooses
Who controls the look Themes and templates Editors, using visual blocks Developers, using any framework
How content leaves the system Mostly as rendered pages Mostly as rendered pages As structured data through an API
Main trade-off Less freedom in front-end design Limited to what the builder supports More setup and development work

REST and GraphQL in plain terms

Most headless CMSs expose content through an API that is REST, GraphQL or both.

  • REST is an architectural style, created in 2000 to guide web development, that treats data as resources with their own URLs. A client requests a resource and gets a fixed representation back. Responses are easy to cache by URL, but a client may need several requests to build one page, or receive fields it does not use.
  • GraphQL is an open-source query language for APIs, with a strongly typed schema. A client names the fields it needs in a single request, so a page can fetch content and its related items together. The trade-off is more work on the schema, and caching by URL works less simply than with REST, because requests usually go to one endpoint.

For an editor, the difference is mostly invisible. It matters to the developers who build the front end, and to the design of performance and caching.

When a headless CMS fits

  • The same content appears in several places, such as a website, an app, email newsletters and partner feeds.
  • The front end needs a custom framework or design that a template system cannot provide.
  • The content has structure: products with many fields, several languages, or relationships between items.
  • Developers and editors work in parallel. Editors work in one admin while developers ship the front end on their own schedule.

When it is overkill

A simple test helps. List the places where the content must appear, then ask whether any of them needs something other than your own website. If every answer is the same website, a headless CMS adds a layer without adding a channel.

A headless CMS is more work than it first looks. The main downside is that it may need more setup and configuration, and a certain level of web development knowledge on both the front end and the back end. A decoupled setup also has more environments to manage, which adds infrastructure and maintenance cost.

It is usually overkill when:

  • the site has a few pages that change rarely and nobody on the team writes code,
  • you want themes, plugins and visual layouts without building a front end,
  • the content only ever appears on one website, which a traditional CMS or page builder covers well.

Hosting models

Headless CMSs differ mainly in where they run.

  • Self-hosted open source. You run the software and database yourself. Strapi has an MIT-licensed Community Edition that can be self-hosted. Payload is MIT-licensed and runs inside your own Next.js application. Directus connects to an existing SQL database such as PostgreSQL or MySQL. Its license is source-available rather than open source.
  • Hosted SaaS. The vendor runs the platform. Sanity is a hosted structured content platform with a customizable editing studio, and its Studio editor is MIT-licensed on GitHub. Storyblok is hosted and offers a visual editor. Hygraph is a hosted service built around GraphQL.
  • Hosted version of an open-source project. Strapi also offers Strapi Cloud as a paid hosted option, alongside the self-hosted Community Edition.

Cost works differently across these models. Self-hosting shifts cost to servers and to the people who patch and back them up. Hosted plans are priced by seat, project or usage, and the terms change, so check each vendor's pricing page for current figures.

Before you choose, check who holds the data, who maintains the server, whether content can be exported in a usable form, and what happens if the vendor changes its plans.

What to do next

  • Read the headless CMS ranking to see how the products above are scored against stated criteria.
  • Compare the content modeling and API options of the products above on their vendor pages.
  • Read the checklist for reading software rankings before you trust any comparison, including one from a directory.
  • Browse all categories to see the other software ranked on listme.name.

Compare head to head

Mentioned in this article