Contentful logo

Contentful Community

Filter a field from API response

Is there a way to filter out specific a field from the API response?

I have a field common to multiple content models I don’t want to return for some API calls. These models have different fields I do want to retrieve so I don’t want to have to manually create a select parameter for each model.

I know I can fetch the content model, iterate over the fields, and filter out the common field but if there is a built in way to achieve this use case I’d love to use that.