fort-api-js
v2.1.8
Published
A powerful Fortnite JavaScript API Wrapper
Downloads
1
Readme
fortapi
A powerful and super light Fortnite stats API wrapper for Node.js
Setup and Installation
- Signup at fortnitetracker
- Navigate to the api page and generate a key
- Install fortapi
npm install fortnite.js --save
- When using the wrapper, parse your generated key when creating the client
Examples
const fortnite = require('fortapi');
// Make sure you set your own key, otherwise it won't work!
// Check the README for more info on obtaining your key.
const client = new fortnite('my api key');
client.get('TheAdmin1014', fortnite.PC)
.then(console.log) // Do stuff with the data
.catch(console.error); // Catch if there is an error