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
getLeaderboard()
HTTP endpoint: https://fortnite-public-api.theapinetwork.com/prod09/leaderboards/get

This API is not working anymore due the API endpoints of Epic. We're working on it.
Get the leaderboard with getLeaderboard()

Place top 1 from every console and game mode.

$data = $api->leaderboard->top('pc', 'solo');

foreach($data->entries as $values) {
     echo $values->uid;
     echo $values->username;
     echo $values->value;
     echo $values->rank;
}

  • consoles pc, ps4 and xb1.
  • gamemodes solo, duo and squad.

  • id will give you the user ID.
  • username will give you the username.
  • value will give you the amount of wins.
  • rank will give you the positions (1-50).

  • go to an example

    Published: 07-May-2018 12:50:22 · Views: 2576