1.0.2 • Published 5 years ago

fortnite-api-js v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

FortniteAPI.com Node.js wrapper.

Fortnite API for Node.js. Get access to the daily store, the items list, battle pass items, user stats and more.

Getting Started

How can I use this package?

Installing

Install our NPM package.

npm i fortnite-api-js

Set up

This API requires an API key, which you can get at www.fortniteapi.com

const fortniteapi = require('fortnite-api-js');

fortniteapi.configuration({
  key: 'PUT_YOUR_TOKEN_HERE'
});

You're good to go!

Available functions

FunctionInput
getShopen, fr or de
getStoreen, fr or de
getUpcoming-
getItemsList-
getItemthe item ID
getPopularItems-
getRandomItems-
getNewsbr of stw
getCreativeListorder (popular, views, newest, oldest or rating)
getCreativeTags-
getCreativeIslandisland ID
fetchCreativeIslandisland ID
addCreativeIslandisland ID
creativeSearchsearch input
searchUserIdusername
getUserStatsV2user id
getUserStatsV1user id & platform

Examples

fortniteapi.getShop('en').then(data => {
  console.log(data)
})
fortniteapi.getItem('208f8a9-35aff6e-b1ae608-1cb4c7b').then(data => {
  console.log(data)
})
fortniteapi.getCreativeIsland('6697-1781-1082').then(data => {
  console.log(data)
})

Built With

  • Axios - GET requests to fortniteapi.com
  • foreach - For the configuration :)

Authors