Acquia Source provides the JSON:API Query Builder to reduce integration time and enhance your experience with JSON:API. It helps you to build JSON:API queries, preview well-formatted real-time responses, and generate code samples.
The following image illustrates the sections of the JSON:API Query Builder interface with labels:
The following table describes the sections labelled in the preceding image:
Label | Description |
|---|---|
| A | The Query Builder tab to build JSON:API queries with fields, filters, and relationships. |
B | The Authentication tab to a |
| C | The Examples tab to a |
D | The Entity Type and Bundle dropdowns to select the entity type and bundle for a query. For information about entity types and bundles, visit Entity types. |
E | The Page and Limit fields to set the pagination parameters for a query. |
F | The Request History section to check the history of requests. |
G |
|
H | T |
I | The Execute Query button for manual execution of a query. |
J | The automatic execution of a query. After you select this checkbox and make any changes to your query, the response is immediately updated. |
K | The Request URL section to copy the Request URL. |
Use the following steps to build a JSON:API query:
Select the entity type and bundle for your query.
The Bundle dropdown shows the bundles that belong to the selected entity type.
In the Page field, set the offset value.
This value specifies the number of pages to be skipped. This is useful when implementing pagination.
In the Limit field, set the page limit.
This value specifies the maximum number of items to be returned in a single response. Setting a lower limit helps the server to respond faster.
Click the Filters tab.
This tab includes the Add Filter and Filter Groups (AND/OR logic) sections to add filters and filter groups respectively.
In the Field dropdown, select the required field.
This dropdown shows the fields that belong to the selected entity type and bundle.
In the Value field, enter an exact value.
For example, 1 or true.
Click Add Filter.
The filter is added to the Selected Filters section.
In the Group Name field, enter a name for the filter group.
This is an optional field. If you leave this field blank, a default name is used for the group.
Click Create Filter Group.
The filter group is added to the Selected Filters section.
Add relationships to your query:
Click the Includes tab.
This tab shows the relationships that belong to the selected entity type and bundle.
For more information, visit Adding relationships in a query.
Click the Sort tab.
This tab includes the Add Sort Criterion section.
In the Field dropdown, select the required field.
This dropdown shows the fields that belong to the selected entity type and bundle.
Click Add.
The criterion is added to the Selected Sort Criteria section.
Copy the API code example:
Click the </> tab.
This tab includes the API Code Examples section.
When creating a JSON:API query, you
Navigate to the Fields tab.
This tab shows the fields that belong to the selected entity type and bundle. For information about fields, visit Fields.
The following is an example of how to add relationships in a JSON:API query to fetch media images as part of the response:
In the Includes (Relationships) section, click media_image.
The media_image relationship is added to the query in the Request URL section:
I
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Nov 05 2025 07:18:08 GMT+0000 (Coordinated Universal Time)