I remember using this app[0] on my phone years ago, I just checked and they have an API. I'm not sure, but if I recall correctly this allowed you to scan barcodes of things and warn you if they are sub-brand or subsidiary of [evil company you wish to avoid].
Wasn't aware of that, also my use-case during the brief time I messed with it was trying to see how clever it was at identifying companies which use animal testing to develop their products.
[0] https://www.buycott.com/api