Get variants with specific field value

I want to get all variants that have a specific value on a custom field I have added to my field template. The value is set and I can see it in backoffice. What is the right way to do this? What service should I use? I haven’t managed to find a good answer to this question.

Litium version: [7]

Sounds like you could do that with a search.

https://docs.litium.com/documentation/architecture/search