Giter VIP home page Giter VIP logo

rest-fornite-api's Introduction

Fortnite-API on NodeJs Server

Build Status codecov Docker Pulls code style: prettier Donate

A simple NodeJS API under docker container to retrieve stats and infos from Fortnite Game API. See on Docker Hub. Thanks to qlaffont for doing this API.

Example

You can found SwaggerUI here https://skynewz-api-fortnite.herokuapp.com/api-docs

Authentification JWT

⚠️ This API is now with JWT authentification. Send me an e-mail to obtain a login and password in order to use this with a valid token ⚠️ For all the /api routes, you need to set the Authorization; Bearer <token> header.

INIT

To setup this module, you need to have an account on Epic Games. After that you need to get 2 dedicated headers from Fortnite.

How to get these headers ?

  • Install & Open Fiddler 4
  • In Tools -> Options -> HTTPS, Select Capture HTTPS Connects
  • After that start your epic games launcher.
  • You will see a request with /account/api/oauth/token. Click on it and click after that on Inspectors get the header (Authorization header content and remove basic) => This header is your Client Launcher Token
  • Launch Fortnite
  • You will see again a request with /account/api/oauth/token. Click on it and click after that on Inspectors get the header (Authorization header content and remove basic) => This header is your Fortnite Client Token

Start with docker 🐳

You can use this docker-compose.yml replacing environements variables values by yours. in order to startup this API. Just download this file and docker-compose up

Start with nodejs

Requirements

  • Nodejs >= 8.9
  • Rename .env.example to .env and set your values for the environements variables :
LOGIN_EMAIL=Your epic games account
LOGIN_PASSWORD=Your epic games password
OAUTH_EPIC_LAUNCHER=See init part
OAUTH_FORTNITE=See init part
DATABSE_CONNECTION_STING=postgres://user:password@host:port/database

Start in developement mode

$ git clone https://github.com/SkYNewZ/rest-fornite-api
$ cd rest-fornite-api
# Run
$ npm run dev

Start in production mode

$ git clone https://github.com/SkYNewZ/rest-fornite-api
$ cd rest-fornite-api
# build the TypeScript
$ npm run build
# Run
$ npm start

Endpoint

Supported plateform : pc, ps4, xb1. You can view endpoints at https://skynewz-api-fortnite.herokuapp.com/api-docs/

Just for fun

Skynewz Stats

rest-fornite-api's People

Contributors

skynewz avatar

Stargazers

 avatar  avatar  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.