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.
You can found SwaggerUI here https://skynewz-api-fortnite.herokuapp.com/api-docs
/api
routes, you need to set the Authorization; Bearer <token>
header.
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
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
- 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
$ git clone https://github.com/SkYNewZ/rest-fornite-api
$ cd rest-fornite-api
# Run
$ npm run dev
$ git clone https://github.com/SkYNewZ/rest-fornite-api
$ cd rest-fornite-api
# build the TypeScript
$ npm run build
# Run
$ npm start
Supported plateform : pc
, ps4
, xb1
.
You can view endpoints at https://skynewz-api-fortnite.herokuapp.com/api-docs/