Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Transform API

35 sites Security covered Drupal 10–11
View on drupal.org

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.

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
12
Tracked since
Feb 2025
Latest release
1 month ago
Releases (12 mo)
4 ▼ from 8
Maintenance
Active

Release Timeline

Releases

Version Type Core 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
2.0.0-rc2 Pre-release 10–11 May 15, 2025
2.0.0-rc1 Pre-release 10–11 Feb 25, 2025