The JSON:API Links module makes it possible to remove the "links" attributes from Drupal's JSON:API responses. This saves bandwidth by making responses more compact.
There is one exception: if you request `/jsonapi` (or the path you set as the root path), nothing will be removed.
You can toggle this behavior via a UI setting.
The approach this module takes was originally suggested by Wim Leers.
Requirements
This module requires no modules outside of Drupal core.
Installation
Install as you would normally install a contributed Drupal module.
Configuration
- Enable the module at Administration > Extend.
- Configure the module at `/admin/config/services/jsonapi/links`. To remove links, check "Remove all links attributes".
Supporting organizations:
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Developer tools
127 sites report using this module
- Created by ro-no-lo on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.

