TRN.Developers
TRN.Developers copied to clipboard
Battelfield5 API only returns that API Key is missing since some Days
i try to get Datas from the Battlefield API, everything worked fine till some days ago. i get the response : No API key found in request
i use the following code to get data from the api via PHP/Curl
` $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://public-api.tracker.gg/v2/bfv/standard/profile/origin/R3Nd3rG0d"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'TRN-Api-Key: XXXX-XXXX-XXXXX-XXXXX' )); $response = curl_exec($ch); curl_close($ch); print_r($response); `
This worked like a charm before.