Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

98
Vistas
Rocket League API Not giving data

I've been trying to use the Rocket League API from the tracker
https://api.tracker.gg/api/v2/rocket-league/standard/profile/(platform)/(name)
When i use the link I get the stats but I want to make a small website just for fun... I have a simple form to insert username and platform but I can't make the request neither using js neither using php.
I used their API to get Fortnite and CSGO stats and it did work.
My try in JS:

const fetchPlayers = async (gamertag, platform) => {
    const api_call = await fetch('https://api.tracker.gg/api/v2/rocket-league/standard/profile/${platform}/${gamertag}');
    const data = await api_call.json();
    console.log(data);  // Error 403 forbidden
    return { data }
};

My try in PHP

function getPlayerStatsRocket($platform,$gamertag){
    echo "asd";
    $apiUrlPlayerStatsEndpoint = 'https://api.tracker.gg/api/v2/rocket-league/standard/profile/'.$platform.'/'.$gamertag;

    $ch = curl_init();

    curl_setopt( $ch, CURLOPT_URL, $apiUrlPlayerStatsEndpoint );


    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, TRUE );
    curl_setopt( $ch, CURLOPT_HEADER, FALSE );
    curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );

    $response = curl_exec( $ch );
    curl_close( $ch );
    return json_decode( $response, true ); //(returning null)
}

(No api key needed)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I am one of the developers providing the solution to your problem to a variety of programmers that are being blocked just like yourself.

To clarify, error code 1020 is the error code CloudFlare actually gives when it's detected a bot or when a firewall rule is being broken. There's multiple ways to go about this, and I actually provide one of the ways to go around this for multiple developers.

I could of course spill out the answer freely through StackOverflow but that would defeat the purpose of it, haha.

Feel free to add me on Discord PGSleepy#2108 and I'll supply you with a fitting solution. (Also for other developers, of course!)

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda