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
getPlayerData() (alltime and season 6)
HTTP endpoint: https://fortnite-public-api.theapinetwork.com/prod09/users/public/br_stats

User wins, kills and playtime via getPlayerData()

Just call the method and you've got all the user data.

Get the user id with the API:
$api->user->id('username');
or
Manually set an ID:
$api->user->uid = 'user_id';

Fetch the stats:
$data = $api->user->stats('console', 'window');

Get the total wins:
echo $data->totals->wins;

  • consoles ps4, pc and xb1
  • window alltime, season4 (only cached stats) and season5

  • Example:




    Published: 26-Apr-2018 16:50:29 · Views: 10701