Follow me on Twitter for instant support: @fortniteapi.
We've made an easier documentation for all frameworks instead of only PHP. You can visit it here.
Documentation
getTop10()
HTTP endpoint: https://fortnite-public-api.theapinetwork.com/prod09/leaderboards/get

Get the top 10 players of the world with getTop10()

Get the top 10 players with the most kills (all platforms).

$data = $api->leaderboard->kills();

foreach($data->entries as $values) {
     echo $values->uid;
     echo $values->username;
     echo $values->kills;
     echo $values->wins;
     echo $values->matches;
     echo $values->minutes;
     echo $values->score;
     echo $values->kd;
     echo $values->platform;
     echo $values->rank;
}

  • id will give you the user ID.
  • username will give you the username.
  • rank will give you the positions (1-10).

  • go to an example

    Published: 08-May-2018 18:51:10 · Views: 2918