Giter Site home page Giter Site logo

benja347 / fortnite-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cw-oldrepos/fortnite-api

0.0 1.0 0.0 194 KB

Fortnite API (get player stats, leaderboards and more)

Home Page: https://fortniteapi.com/

License: MIT License

PHP 100.00%

fortnite-api's Introduction

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;
?>

fortnite-api's People

Contributors

benja347 avatar samhoogantink avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.