fortnite-publicapi
v1.0.4
Published
Simple package built for fortniteapi.com
Downloads
19
Readme
fortnite-publicapi
Simple package built for fortniteapi.com(https://fortniteapi.com)
Installation
npm i --save fortnite-publicapi
Example Usage
const Fortnite = require("fortnite-publicapi");
//Search fortnite username
Fortnite.Search('Ninja', (data) => {
console.log(data)
})
{"uid":"4735ce9132924caf8a5b17789b40f79c","username":"Ninja","platforms":["pc"],"seasons":["season7","season6","season5","season4"]}
Functions
Fortnite.Search(Username, Callback)
Fortnite.Search('Ninja', (data) => {
console.log(data)
})
//Returns query for username
Fortnite.Stats(UID, Platform, Callback)
Fortnite.Stats('4735ce9132924caf8a5b17789b40f79c', 'pc', (data) => {
console.log(data)
})
//Returns player's stats
Fortnite.FortniteStatus(Callback)
Fortnite.FortniteStatus((data) => {
console.log(data)
})
//Returns Fortnite's Status
Fortnite.FortniteStore(Language, Callback)
Fortnite.FortniteStore('en', (data) => {
console.log(data)
})
//Returns Fortnite's Store Items
Fortnite.FortniteNews(Language, Callback)
Fortnite.FortniteNews('en', (data) => {
console.log(data)
})
//Returns Fortnite's News
Fortnite.AllWeapons(Callback)
Fortnite.AllWeapons((data) => {
console.log(data)
})
//Returns all of Fortnite's Weapons
Fortnite.AllItems(Callback)
Fortnite.AllItems((data) => {
console.log(data)
})
//Returns all of Fortnite's Items
Fortnite.UpcomingItems(Callback)
Fortnite.UpcomingItems((data) => {
console.log(data)
})
//Returns all of Fortnite's Upcoming Items
Fortnite.Item(ItemID, Callback)
Fortnite.Item('61ea3e9-8438e42-f53d351-e53a5ce', (data) => {
console.log(data)
})
//Returns weapon's information