Hello past boardcast on website

file_get_contents is likely blocked.

Generally speaking web hosts block file_get_contents ability to fetch URL’s.

You should be using the PHP cURL functions instead.

Define not working at all?

Your code does not error checking or checking of Status Codes.

URL is constructed wrong, Client ID needs to be sent as a header. And you have no v5 header in here at all. And channel_id is not a query string paramater

Documentation:

The correct URL is

https://api.twitch.tv/kraken/channels/<channel ID>/videos

Some sample code, off the top of my head that is untested:

<?php

    $ch = curl_init('https://api.twitch.tv/kraken/channels/76727141/videos?broadcast_type=archive&limit=10');
    curl_setopt($ch, CURLOPT_HTTPHEADER, array(
        'Accept: application/vnd.twitchtv.v5+json',
        'Client-ID: CLIENTID'
    ));
    curl_setopt($ch, CURLOPT_RETRUNTRANSFER, true);

    $r = curl_exec($ch);
    $i = curl_getinfo($ch);
    curl_close($ch);

    if ($i['http_code'] == 200) {
        $videos = json_decode($r);
        if (json_last_error() == JSON_ERROR_NONE) {
            foreach ($videos as $video) {
                // do stuff
            }
        } else {
            // an error occured
        }
    } else {
        // an error occured
    }