API query not working

Hi @goldencarrot,

Welcome to the builder.io forum post.

Currently, the Builder.io Content API does not support querying deeply nested reference fields directly via the query parameter. The offering → object is a reference field type. Therefore, you can follow this structured approach to retrieve the necessary data:

Step 1: Fetch Data with References
Make an API call to retrieve your data, including the references.

Step 2: Fetch Reference Details
For each reference in the offering array, perform additional API calls to fetch the details of those references.

Step 3: Filter Client-Side
After gathering all the data, filter it based on the name field in the reference data.

For more detailed guidance, you can also visit our documentation here:

If you have any further questions, feel free to ask!