How to execute bitcoin transactions in a decentralized way?
What you're asking for is called Oracle and as we speak there are no perfect implementations of it. It's an ongoing problem to be solved for example it's hard to weed out false information. I advise you to read more about it outside this forum.