Oh hell, i forgot to http:// in fornt of the url, the code was searching for the site locally without it, thanks for the help guys
Code that works if anyone cares:
Code:
<?php
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"X-TBA-App-Id: frc3991:scouting-system:v01"
)
);
$context = stream_context_create($opts);
$apiurl = "http://www.thebluealliance.com/api/v2/team/frc3991/2016/events";
$file = file_get_contents($apiurl, false, $context);
echo $file;
?>