Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Transform API

Security covered Under active development 31 sites

Transform API allows you to leverage your existing Drupal configuration skills to create JSON output instead of HTML for headless solutions. It transforms content entities, menus, and custom routes into ready-to-use JSON data, similar to how you'd build a traditional Drupal site. This module provides a familiar workflow for developers and site builders, offering pre-processed data and robust caching.

Transform API is meant to create a familiar path for Drupal site builders and developers to take their knowledge of entities, view modes and templates and instead use this to produce JSON instead of HTML. This enables building headless solutions while being able to use the same configuration skills that you are used to.

Features

Allows easy transform the following to JSON through configuration or code:

  • All content entities that support view modes
  • Menus and other header / footer elements through transform blocks
  • Custom routes through plugins
  • Alter any existing transforms through alter hooks

All transformed content is also fully cached in a variation cache with the usual cache tags and cache contexts for cache invalidation.

Difference to JSON:API

JSON:API is more intended to deliver the raw entity data in a standardized way for decoupled, requiring the frontend to do much processing of images and data after receiving it. The workflow of JSON:API is also quite different from building a standard Drupal application with a theme.

Transform API instead tries to leverage as much of the functionality of Drupal to deliver data as ready as possible. Like delivering images already in multiple formats for responsive images.
The workflow is also as close to how you would normally make Drupal applications, with blocks, (transform blocks) view modes (transform modes) and formatters (transformers), lazy_builders (lazy_transformers) and preprocess (transform_alter) as possible.

Similar modules

Post-Installation

After installation you should now be able to get JSON of any entities on your site by adding ?format=json to the url. To get more fields exposed as json, configure transform modes just like you would view modes and add transform blocks just like you would normal blocks.

Drupal 10–11

Ask your assistant about Transform API

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • field_ui Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
44
Tracked since
Sep 2023
Latest release
3 months ago
Releases (12 mo)
3 ▼ from 9
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.7 Stable 10–11 Jul 9, 2026
2.1.6 Stable 10–11 Apr 17, 2026
2.1.5 Stable 10–11 Mar 26, 2026
2.1.4 Stable 10–11 Oct 13, 2025
2.1.3 Stable 10–11 Aug 25, 2025
2.1.2 Stable 10–11 Aug 25, 2025
2.1.1 Stable 10–11 Aug 12, 2025
2.0.1 Stable 10–11 Aug 11, 2025
2.1.0 Stable 10–11 Aug 11, 2025
2.0.0 Stable 10–11 May 22, 2025