-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Welcome to the fortnite-api-io wiki!
This page documents the FortniteAPI class and the available methods to query the API!
Docs generated with: https://www.npmjs.com/package/jsdoc-to-markdown
- FortniteAPI
-
Fortnite API Class
Fortnite API Class
Kind: global class
-
FortniteAPI
- new FortniteAPI(credentials, [config])
-
.request(uri, [options]) ⇒
Promise.<object>
-
.listItems([options]) ⇒
Promise.<object>
-
.listChallenges([season], [options]) ⇒
Promise.<object>
-
.listUpcomingItems([options]) ⇒
Promise.<object>
-
.getItemDetails(itemId, [options]) ⇒
Promise.<object>
-
.getDailyShop([options]) ⇒
Promise.<object>
-
.getShopVotingOptions() ⇒
Promise.<object>
.searchAccountId(username, [options]) ⇒Promise.<object>
-
.getGlobalPlayerStats(accountId) ⇒
Promise.<object>
-
.getPlayerRecentMatches(accountId) ⇒
Promise.<object>
-
.getNews([mode], [options]) ⇒
Promise.<object>
-
.getBattlepassRewards([season], [options]) ⇒
Promise.<object>
-
.getAchievements([options]) ⇒
Promise.<object>
-
.getTournaments([options]) ⇒
Promise.<object>
-
.getTournamentSessionDetails(windowId, [page]) ⇒
Promise.<object>
-
.getTournamentScores(eventId) ⇒
Promise.<object>
-
.listPreviousMaps() ⇒
Promise.<object>
-
.listPreviousSeasons() ⇒
Promise.<object>
-
.listCurrentPOI([options]) ⇒
Promise.<object>
-
.getStatus() ⇒
Promise.<object>
-
.listCurrentGameModes([options]) ⇒
Promise.<object>
-
.getAccountIdByUsername(username, [options]) ⇒
Promise.<object>
-
.getUserById(id) ⇒
Promise.<object>
-
.listUsersById([ids]) ⇒
Promise.<object>
-
.getBundles([options]) ⇒
Promise.<object>
-
.listLoot([options]) ⇒
Promise.<object>
-
.getLootDetails(id, [options]) ⇒
Promise.<object>
-
.listSets([options]) ⇒
Promise.<object>
-
.getReplayDownloadLink(id) ⇒
Promise.<object>
-
.getWeaponDetails(id, [options]) ⇒
Promise.<object>
-
.listWeaponSpawnChances(mode) ⇒
Promise.<object>
-
.getGameModeExtendedData(mode) ⇒
Promise.<object>
-
.listFeaturedCreativeIslands() ⇒
Promise.<object>
-
.searchIsland(code) ⇒
Promise.<object>
-
.listFish([options]) ⇒
Promise.<object>
-
.getPlayerFishStats(accountId) ⇒
Promise.<object>
-
.getMapsItems() ⇒
Promise.<object>
-
.getGameRadios([options]) ⇒
Promise.<object>
-
.getRarities() ⇒
Promise.<object>
constructor()
Param | Type |
---|---|
credentials | string |
[config] | object |
[config.defaultLanguage] | string |
Use node-fetch to query API
Kind: instance method of FortniteAPI
Param | Type |
---|---|
uri | string |
[options] | object |
[options.method] | string |
List all cosmetic items: skins, backpacks, emotes, pickaxes, sprays, etc.
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr, zh-CN, zh-Hant |
Limited time missions are available under .limited_timen under .weekly
Kind: instance method of FortniteAPI
Param | Type | Default | Description |
---|---|---|---|
[season] | string |
"current" |
|
[options] | object |
||
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr, zh-CN, zh-Hant |
List upcoming cosmetic items: skins, backpacks, emotes, pickaxes.
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr, zh-CN, zh-Hant |
The ID can be found from the full list of items.
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
itemId | string |
|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr, zh-CN, zh-Hant |
List all items currently in the shop
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr, zh-CN, zh-Hant |
Get options to vote for the next community shop item
Kind: instance method of FortniteAPI
Deprecated
Search an account ID using a player name
Kind: instance method of FortniteAPI
Param | Type | Default | Description |
---|---|---|---|
username | string |
||
[options] | object |
||
[options.strict] | boolean |
true |
When false will return other results for similar names |
[options.platform] | string |
"""" |
Search for accounts not linked to an epic account: xbl or psn |
Get player stats, with a breakdown per platform used (mouse & keyboard, gamepad, touch)
Kind: instance method of FortniteAPI
Param | Type |
---|---|
accountId | string |
If it's the first time you search this user, the matches list will be empty.
Kind: instance method of FortniteAPI
Param | Type |
---|---|
accountId | string |
Lists the current news in Fortnite Battle Royale or Save The World
Kind: instance method of FortniteAPI
Param | Type | Default | Description |
---|---|---|---|
[mode] | string |
"br" |
game mode "br" or "stw" |
[options] | object |
||
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get the list of rewards given in the Battle Pass for each season
Kind: instance method of FortniteAPI
Param | Type | Default | Description |
---|---|---|---|
[season] | string |
"current" |
|
[options] | object |
||
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get the list of achievements
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get the list of tournaments
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get a tournament session details: rules, payout, results
Kind: instance method of FortniteAPI
Param | Type | Default |
---|---|---|
windowId | string |
|
[page] | Integer |
0 |
Get the cumulative scoring for a tournament event
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
eventId | string |
the tournament event id |
Get the list of links to the different maps
Kind: instance method of FortniteAPI
List all the season dates and patch versions associated.
Kind: instance method of FortniteAPI
Get the current games points of interest
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get the Fortnite server status
Kind: instance method of FortniteAPI
List the current game modes
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get an account ID using a player name
Kind: instance method of FortniteAPI
Param | Type | Default | Description |
---|---|---|---|
username | string |
||
[options] | object |
||
[options.strict] | boolean |
true |
When false will return other results for similar names |
[options.platform] | string |
"""" |
Search for accounts not linked to an epic account: xbl or psn |
Get a user account name by their Fortnite ID
Kind: instance method of FortniteAPI
Param | Type |
---|---|
id | string |
List user accounts by a list of ids
Kind: instance method of FortniteAPI
Param | Type | Default |
---|---|---|
[ids] | Array.<string> |
[] |
List recent bundles
Kind: instance method of FortniteAPI
Premium:
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, de, es, fr, it, ja |
List all loot/weapons in the game with their basic stats
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get all stats for a specific loot/weapon item
Kind: instance method of FortniteAPI
Premium:
Param | Type | Description |
---|---|---|
id | string |
of loot item |
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
List all the sets used by cosmetics.
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
Get creative map informations
Kind: instance method of FortniteAPI
Premium:
Param | Type | Description |
---|---|---|
id | string |
of session |
Get all stats for a specific loot/weapon item
Kind: instance method of FortniteAPI
Premium:
Param | Type | Description |
---|---|---|
id | string |
of weapon |
[options] | object |
|
[options.lang] | string |
en, ar, de, es, es-419, fr, it, ja, ko, pl, pt-BR, ru, tr |
List the spawn chances for each type for a given game mode.
Kind: instance method of FortniteAPI
Premium:
Param | Type |
---|---|
mode | string |
A lot of different values, ranging from spawn % for rare chests, to number of llamas per game.
Kind: instance method of FortniteAPI
Premium:
Param | Type |
---|---|
mode | string |
List the current featured islands in creative mode
Kind: instance method of FortniteAPI
Get all details related to a creative island
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
code | string |
of map |
Get the list of fish (name, description, image) as well as their minimum and maximum length
Kind: instance method of FortniteAPI
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
unknown supported languages |
Get the stats for a specific player: each fish caught is returned with the best length for that player
Kind: instance method of FortniteAPI
Param | Type |
---|---|
accountId | string |
Get items positions [NOT STABLE]
Kind: instance method of FortniteAPI
Note: not all radios are available in all languages
Kind: instance method of FortniteAPI
Premium:
Param | Type | Description |
---|---|---|
[options] | object |
|
[options.lang] | string |
unknown supported languages |
Lists rarities and their associated colors
Kind: instance method of FortniteAPI