Skip to content
Fortnite API (get player stats, leaderboards and more)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fortnite-api Update User.php Feb 14, 2019
.DS_Store New leaderboard API Sep 14, 2018
.gitattributes Initial commit Apr 24, 2018
LICENSE Create LICENSE May 14, 2018
README.md Added Fortnite Stats V2! Feb 14, 2019

README.md

FortniteAPI.com

Fortnite API (get player stats WITH STATS V2, leaderboards and more)

Hi,

You can get user wins, kills, the latest news, fortnite server status and many more with this API.

It's easy to install, just put the fortnite-api/Autoloader.php in your directory and define the class. After that visit my documentation (https://fortniteapi.com/docs (only php) or https://goo.gl/XC6u9S (all frameworks)) and follow the steps.

Have fun!

Sam https://fortniteapi.com/

Examples

  1. Get an user id
<?php
require_once 'fortnite-api/Autoloader.php';

$api = new FortniteClient;

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

echo $data->uid;
echo $data->username;
?>
  1. Get user stats V2
<?php
require_once 'fortnite-api/Autoloader.php';

$api = new FortniteClient;

$api->user->uid = 'user_id';

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

var_dump($data);
?>
  1. Get the daily store
<?php
require_once 'fortnite-api/Autoloader.php';

$api = new FortniteClient;

$data = $api->items->store();

var_dump($data);
?>

  1. Fortnite server status
<?php
require_once 'fortnite-api/Autoloader.php';

$api = new FortniteClient;

$data = $api->status->fetch();

echo $data->status;
echo $data->message;
echo $data->version;
?>
You can’t perform that action at this time.