I want to retrieve only products that are listed as visible in both catalog and search (visibility setting 4) via the API, yet can't find any confirmed way to do this. Right now when I look at the data the API is returning many products have a visibility of 1 or 2 and I definitely want to exclude them from the search.
The obvious solution I was hoping would work (shown below) returns no results...
/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=visibility& searchCriteria[filter_groups][0][filters][0][value]=4&searchCriteria[filter_groups][0][filters][0][condition_type]=eq
I have checked the swagger page on the site and the only catalog for products is CATALOGPRODUCTRENDERLISTV1. That doesn't have "visibility" or anything similar setting.
Within the official magento documentation I can see under catalogProductRepositoryV1 there is "visibility". How do I alter the interface I have in my install to make this property available ?