How to get info from other websites?

How do I get info from other websites, in the better statement or to be more specific, I need to get numbers from a different website. It’s not a file or anything that needs to be imported, and I also need something to trigger on a different website automatically when something is purchased. So if they paid for an item, they receive their in-game currency product automatically without someone having to do it manually.