API working local but not Online?

So im kinda new to the API and i never worked with any API so if this question is kinda noobish im sorry, but im having a little Problem:

So im creating a website that just tells some basic informations like what im streaming, my status, stuff like that. It works fine local on my xampp server, but when i upload it to my Webhost it won’t work anymore. Is there something that needs to be enabled or maybe a confirguration or something to make the JSON request work?

Im kinda lost…

Cheers

PHP? My guess is that you are using file_get_contents to query the API which is blocked on a lot of webhosts.

Yes im using file_get_contents that would explain why its not working. How can i make this still work?

Look into cURL: http://codular.com/curl-with-php