I know it’s possible to retrieve custom-collections from its endpoint. I’m wandering if it’s possible to see the collections a product belongs to when making a Get request to the products endpoint? This way I don’t have to make another external API call.
Apologies if this is obvious but I’ve looked on the Product JSON response object and can’t find it.
With the rest api, you first need to get all the products and then loop through the products and get the collects for each of them. What you want does not exist in rest api.
Maybe you should have a look at the graphql product endpoints.