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
getUserID()
HTTP endpoint: https://fortnite-public-api.theapinetwork.com/prod09/users/id

Getting the user ID via getUserID()

It's very easy. Just call the method en you'll receive the user id and the username (again).

$data = $api->user->id('username');

echo $data->uid;
echo $data->username;

  • uid will give you the user ID.
  • username will give you the username back.

  • Example:


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