1.0.2 • Published 1 year ago

fortnite-api-io-v2 v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

fortnite-api-io-updated

npm version

A fork from the fortnite-api-io module with last endpoints versions.

Simple Wrapper Module for making API calls to https://fortniteapi.io.

Go to the API Docs to register for an account and to get an API key.

Install the Module

npm install fortnite-api-io-v2

Require and Instantiate

const FortniteAPI = require("fortnite-api-io-v2");

// Instantiate with API Credentials
const client = new FortniteAPI("credentials-go-here", {
    defaultLanguage: 'en', // Optional - will default to 'en'
    ignoreWarnings: false // Optional -will default to false
});

Example API Calls

The API is currently transitioning into its second version. Where available, it is highly recommended to use the version 2 endpoint.

// Get the next upcoming items
const upcomingItems = await client.listItems();

// Get this season's challenges
const challenges = await client.listChallenges("current");

// Get all stats for a specific loot/weapon item
const loot = await client.getLootDetails();

Acknowledgement

Thanks to the devs of https://fortniteapi.io, do consider subscribing on their API Dashboard to support the project and its costs.

License

MIT

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago