API Reference¶
APIClient¶
- awaitget_aes()
- awaitget_banner_colors()
- awaitget_banners()
- awaitget_creator_code()
- awaitget_map()
- awaitget_news()
- awaitget_playlist_by_id()
- awaitget_playlists()
- awaitget_shop()
- awaitget_stats()
- awaitget_stats_by_id()
- class FortniteAPIAsync.APIClient[source]¶
- await get_aes(key_format=AESKeyFormat.HEX)[source]¶
This function is a coroutine.
Return information about the current build including the main aes key and all dynamic keys.
- Parameters:
key_format (
AESKeyFormat) – Sets the AES key format, defaults to AESKeyFormat.HEX.- Return type:
- await get_creator_code(name)[source]¶
This function is a coroutine.
Return all information about a specific Creator Code such as owner’s Epic account, whether its verified and whether its active.
- Parameters:
name (
str) – The creator code to get information for.- Return type:
- await get_map(language='en')[source]¶
This function is a coroutine.
Returns information about the current Battle Royale map.
- await get_playlists(language='en')[source]¶
This function is a coroutine.
Get all playlists currently in the game (old in-active playlists will not appear)
- await get_playlist_by_id(playlist_id, language='en')[source]¶
This function is a coroutine.
Get information about a specific playlist by playlist id (old in-active playlists will not be searchable appear)
- await get_stats(name, account_type=AccountType.EPIC, time_window=StatsTimeWindow.LIFETIME, image=StatsImage.NONE)[source]¶
This function is a coroutine.
Gets Battle Royale stats for the provided username on the provided platform.
- Parameters:
name (
str) – The username to search for.account_type (Optional[
AccountType]) – The platform to search the provided name on.time_window (Optional[
StatsTimeWindow]) – Stats time window to fetch (lifetime or seasonal).image (Optional[
StatsImage]) – Which input to create the image for, if not provided an image won’t be generated.
- Return type:
- await get_stats_by_id(account_id, time_window=StatsTimeWindow.LIFETIME, image=StatsImage.NONE)[source]¶
This function is a coroutine.
Gets Battle Royale stats for the provided account id.
- Parameters:
account_id (
str) – The Epic account id to fetch stats for.time_window (Optional[
StatsTimeWindow]) – Stats time window to fetch (lifetime or seasonal).image (Optional[
StatsImage]) – Which input to create the image for, if not provided an image won’t be generated.
- Return type:
- await get_banners(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Gets information about all banners.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (
list`[:class:`ResponseFlags]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Return type:
list[
Banners]
- await get_banner_colors(language='en')[source]¶
This function is a coroutine.
Gets information about all banner colours.
- Parameters:
language (Optional[
str]) – Sets the output language.- Return type:
list[
BannerColor]
Cosmetics¶
- awaitget_all_bean_cosmetics()
- awaitget_all_br_cosmetics()
- awaitget_all_car_cosmetics()
- awaitget_all_cosmetics()
- awaitget_all_instrument_cosmetics()
- awaitget_all_lego_cosmetics()
- awaitget_all_lego_kit_cosmetics()
- awaitget_all_track_cosmetics()
- awaitget_cosmetic()
- awaitget_cosmetic_from_id()
- awaitget_cosmetics()
- awaitget_new_cosmetics()
- awaitsearch_cosmetic_ids()
Accessible via APIClient.cosmetics.
- class FortniteAPIAsync.Cosmetics[source]¶
- await get_cosmetic(flags=[<ResponseFlags.NONE: 0>], **params)[source]¶
This function is a coroutine.
Fetches first cosmetic matching parameters. All parameters are optional but at least 1 is required.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].searchLanguage (Optional[
str]) – Sets the search language.matchMethod (Optional[
str]) – Sets the match method for strings (full/contains/starts/ends).id (Optional[
str]) – Sets the id.name (Optional[
str]) – Sets the name.description (Optional[
str]) – Sets the description.type (Optional[
str]) – Sets the type.displayType (Optional[
str]) – Sets the display type.backendType (Optional[
str]) – Sets the backend type.rarity (Optional[
str]) – Sets the rarity.displayRarity (Optional[
str]) – Sets the display rarity.backendRarity (Optional[
str]) – Sets the backend rarity.hasSeries (Optional[
bool]) – Sets whether there is a series.series (Optional[
str]) – Sets the series.backendSeries (Optional[
str]) – Sets the backend series.hasSet (Optional[
bool]) – Sets whether there is a set.set (Optional[
str]) – Sets the set.setText (Optional[
str]) – Sets the set text.backendSet (Optional[
str]) – Sets the backend set.hasIntroduction (Optional[
bool]) – Sets whether there is an introduction.backendIntroduction (Optional[
int]) – Sets the introduction backend value.introductionChapter (Optional[
str]) – Sets the introduction chapter.introductionSeason (Optional[
str]) – Sets the introduction season.hasFeaturedImage (Optional[
bool]) – Sets whether there is a featured image.hasVariants (Optional[
bool]) – Sets whether there are variants.hasGameplayTags (Optional[
bool]) – Sets whether there are gameplay tags.gameplayTag (Optional[
str]) – Sets the gameplay tag.hasMetaTags (Optional[
bool]) – Sets whether there are meta tags.metaTag (Optional[
str]) – Sets the meta tag.hasDynamicPakId (Optional[
bool]) – Sets whether a dynamic pak id is set.dynamicPakId (Optional[
str]) – Sets the dynamic pak id.added (Optional[
int]) – Sets the added date.addedSince (Optional[
int]) – Sets the date since it was added.unseenFor (Optional[
int]) – Sets for how long its unseen.lastAppearance (Optional[
int]) – Sets the last appearance date.
- Raises:
InvalidParameters – If none or more than 1 parameter is provided.
NotFound – If no cosmetics are found matching parameters.
- Returns:
BRCosmetic object containing information of the cosmetic.
- Return type:
- await get_cosmetics(flags=[<ResponseFlags.NONE: 0>], **params)[source]¶
This function is a coroutine.
Fetches all cosmetics matching parameters. All parameters are optional but at least 1 is required.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].searchLanguage (Optional[
str]) – Sets the search language.matchMethod (Optional[
str]) – Sets the match method for strings (full/contains/starts/ends).id (Optional[
str]) – Sets the id.name (Optional[
str]) – Sets the name.description (Optional[
str]) – Sets the description.type (Optional[
str]) – Sets the type.displayType (Optional[
str]) – Sets the display type.backendType (Optional[
str]) – Sets the backend type.rarity (Optional[
str]) – Sets the rarity.displayRarity (Optional[
str]) – Sets the display rarity.backendRarity (Optional[
str]) – Sets the backend rarity.hasSeries (Optional[
bool]) – Sets whether there is a series.series (Optional[
str]) – Sets the series.backendSeries (Optional[
str]) – Sets the backend series.hasSet (Optional[
bool]) – Sets whether there is a set.set (Optional[
str]) – Sets the set.setText (Optional[
str]) – Sets the set text.backendSet (Optional[
str]) – Sets the backend set.hasIntroduction (Optional[
bool]) – Sets whether there is an introduction.backendIntroduction (Optional[
int]) – Sets the introduction backend value.introductionChapter (Optional[
str]) – Sets the introduction chapter.introductionSeason (Optional[
str]) – Sets the introduction season.hasFeaturedImage (Optional[
bool]) – Sets whether there is a featured image.hasVariants (Optional[
bool]) – Sets whether there are variants.hasGameplayTags (Optional[
bool]) – Sets whether there are gameplay tags.gameplayTag (Optional[
str]) – Sets the gameplay tag.hasMetaTags (Optional[
bool]) – Sets whether there are meta tags.metaTag (Optional[
str]) – Sets the meta tag.hasDynamicPakId (Optional[
bool]) – Sets whether a dynamic pak id is set.dynamicPakId (Optional[
str]) – Sets the dynamic pak id.added (Optional[
int]) – Sets the added date.addedSince (Optional[
int]) – Sets the date since it was added.unseenFor (Optional[
int]) – Sets for how long its unseen.lastAppearance (Optional[
int]) – Sets the last appearance date.
- Raises:
InvalidParameters – If none or more than 1 parameter is provided.
NotFound – If no cosmetics are found matching parameters.
- Returns:
List of BRCosmetic object containing information of the cosmetics.
- Return type:
List[
BRCosmetic]
- await search_cosmetic_ids(fortnite_ids=None, language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all cosmetics from id/s.
- Parameters:
- Raises:
InvalidParameters – If none or more than 1 parameter is provided.
NotFound – If no cosmetics are found matching parameters.
- Returns:
BRCosmetic object containing information of the cosmetic.
- Return type:
- await get_all_br_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
List of BRCosmetic object containing information of the cosmetics.
- Return type:
List[
BRCosmetic]
- await get_new_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all new cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
NewCosmetics object containing information of each cosmetic types new items.
- Return type:
- await get_cosmetic_from_id(fortnite_id=None, language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches cosmetic from id.
- Parameters:
- Raises:
InvalidParameters – If none or more than 1 parameter is provided.
NotFound – If no cosmetics are found matching parameters.
- Returns:
BRCosmetic object containing information of the cosmetic.
- Return type:
- await get_all_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
AllCosmetics object containing all types cosmetics.
- Return type:
- await get_all_track_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all track cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
List of TrackCosmetic object containing information of the cosmetics.
- Return type:
List[
TrackCosmetic]
- await get_all_instrument_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all instrument cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
List of InstrumentCosmetic object containing information of the cosmetics.
- Return type:
list[
InstrumentCosmetic]
- await get_all_car_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all car cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
List of CarCosmetic object containing information of the cosmetics.
- Return type:
list[
CarCosmetic]
- await get_all_lego_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all lego cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
List of LegoCosmetic object containing information of the cosmetics.
- Return type:
list[
LegoCosmetic]
- await get_all_lego_kit_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all lego kit cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
List of LegoKitCosmetic object containing information of the cosmetics.
- Return type:
list[
LegoKitCosmetic]
- await get_all_bean_cosmetics(language='en', flags=[<ResponseFlags.NONE: 0>])[source]¶
This function is a coroutine.
Fetches all bean cosmetics.
- Parameters:
language (Optional[
str]) – Sets the output language.flags (Optional[
list`[:class:`ResponseFlags]]) – Opt-in for certain properties, defaults to [ResponseFlags.NONE].
- Returns:
List of BeanCosmetic object containing information of the cosmetics.
- Return type:
list[
BeanCosmetic]
Enumerations¶
- class FortniteAPIAsync.AccountType[source]¶
An enumeration for supported account types.
- EPIC¶
Epic Games account.
- PLAYSTATION¶
PlayStation Network account.
- XBOX¶
Xbox Live account.
- class FortniteAPIAsync.StatsTimeWindow[source]¶
An enumeration for available statistics time windows.
- SEASON¶
Statistics scoped to the current season.
- LIFETIME¶
Statistics scoped to the entire account lifetime.
- class FortniteAPIAsync.StatsImage[source]¶
An enumeration for available statistics input images.
- ALL¶
Statistics aggregated across all input types.
- KEYBOARD_AND_MOUSE¶
Statistics for keyboard and mouse input.
- CONTROLLER¶
Statistics for controller input.
- TOUCH¶
Statistics for touch input.
- NONE¶
No input image applied.
- class FortniteAPIAsync.AESKeyFormat[source]¶
An enumeration for AES key output formats.
- HEX¶
AES key encoded in hexadecimal format.
- BASE64¶
AES key encoded in base64 format.
- class FortniteAPIAsync.ResponseFlags[source]¶
An enumeration of flags used to opt-in to additional API response properties.
These flags will be automatically combined using bitwise operations.
- NONE¶
Do not include any optional response properties.
- INCLUDE_PATHS¶
Include file path related properties in the response.
- INCLUDE_GAMEPLAY_TAGS¶
Include gameplay tags in the response.
- INCLUDE_SHOP_HISTORY¶
Include shop history information in the response.
Data Models¶
BRCosmetic¶
- added
- built_in_emote_ids
- custom_exclusive_callout
- definition_path
- description
- display_asset_path
- dynamic_pak_id
- exclusive_description
- gameplay_tags
- id
- images
- introduction
- item_preview_hero_path
- meta_tags
- name
- path
- rarity
- raw
- search_tags
- series
- set
- shop_history
- showcase_video
- type
- unlock_requirements
- variants
- class FortniteAPIAsync.BRCosmetic[source]¶
Represents a Fortnite cosmetic.
- type¶
Object containing information on cosmetic type.
- Type:
- introduction¶
Object containing information on cosmetic introduction.
- Type:
- variants¶
List containing information on cosmetic variants.
- Type:
list`[:class:`dict]
- built_in_emote_ids¶
List of the cosmetic’s built-in emote IDs.
- Type:
list`[:class:`str]
- search_tags¶
List of the cosmetic’s search tags.
- Type:
list`[:class:`str]
- gameplay_tags¶
List of the cosmetics gameplay tags.
- Type:
list`[:class:`str]
- meta_tags¶
List of the cosmetic’s meta tags.
- Type:
list`[:class:`str]
- added¶
Datetime object which represents when the cosmetic was added to the API.
- Type:
- shop_history¶
List of datetime objects which represent a shop release.
- Type:
list`[:class:`datetime.datetime]
CosmeticType¶
Rarity¶
Series¶
Introduction¶
Set¶
TrackDifficulty¶
TrackCosmetic¶
- class FortniteAPIAsync.TrackCosmetic[source]¶
Represents a track cosmetic.
- difficulty¶
Object containing difficulty information for the track.
- Type:
- gameplay_tags¶
List of gameplay tags associated with the track.
- Type:
list`[:class:`str]
- genres¶
List of genres associated with the track.
- Type:
list`[:class:`str]
- added¶
Datetime object which represents when the track was added to the API.
- Type:
- shop_history¶
List of datetime objects which represent a shop release.
- Type:
list`[:class:`datetime.datetime]
InstrumentCosmetic¶
- class FortniteAPIAsync.InstrumentCosmetic[source]¶
Represents an instrument cosmetic.
- type¶
Object containing information on cosmetic type.
- Type:
- gameplay_tags¶
List of the instrument cosmetic gameplay tags.
- Type:
list`[:class:`str]
- showcase_video¶
Represents a YouTube video id of a video showcasing the instrument cosmetic.
- Type:
- added¶
Datetime object which represents when the instrument cosmetic was added to the API.
- Type:
- shop_history¶
List of datetime objects which represent a shop release.
- Type:
list`[:class:`datetime.datetime]
CarCosmetic¶
- class FortniteAPIAsync.CarCosmetic[source]¶
Represents a car cosmetic.
- type¶
Object containing information on cosmetic type.
- Type:
- gameplay_tags¶
List of the car cosmetic gameplay tags.
- Type:
list`[:class:`str]
- added¶
Datetime object which represents when the car cosmetic was added to the API.
- Type:
- shop_history¶
List of datetime objects which represent a shop release.
- Type:
list`[:class:`datetime.datetime]
LegoCosmetic¶
LegoKitCosmetic¶
- class FortniteAPIAsync.LegoKitCosmetic[source]¶
Represents a LEGO kit cosmetic.
- type¶
Object containing information on cosmetic type.
- Type:
- gameplay_tags¶
List of the LEGO kit cosmetic gameplay tags.
- Type:
list`[:class:`str]
- added¶
Datetime object which represents when the LEGO kit cosmetic was added to the API.
- Type:
- shop_history¶
List of datetime objects which represent a shop release.
- Type:
list`[:class:`datetime.datetime]
BeanCosmetic¶
AllCosmetics¶
- class FortniteAPIAsync.AllCosmetics[source]¶
Represents all cosmetics grouped by type.
- br¶
List of Battle Royale cosmetics.
- Type:
list`[:class:`BRCosmetic]
- tracks¶
List of track cosmetics.
- Type:
list`[:class:`TrackCosmetic]
- instruments¶
List of instrument cosmetics.
- Type:
list`[:class:`InstrumentCosmetic]
- cars¶
List of car cosmetics.
- Type:
list`[:class:`CarCosmetic]
- lego¶
List of LEGO cosmetics.
- Type:
list`[:class:`LegoCosmetic]
- lego_kits¶
List of LEGO kit cosmetics.
- Type:
list`[:class:`LegoKitCosmetic]
- beans¶
List of Bean cosmetics.
- Type:
list`[:class:`BeanCosmetic]
NewCosmeticsType¶
NewCosmetics¶
- class FortniteAPIAsync.NewCosmetics[source]¶
Represents newly added cosmetics.
- date¶
Datetime when the new cosmetics data was generated.
- Type:
- br¶
Newly added Battle Royale cosmetics.
- Type:
- tracks¶
Newly added track cosmetics.
- Type:
- instruments¶
Newly added instrument cosmetics.
- Type:
- cars¶
Newly added car cosmetics.
- Type:
- lego¶
Newly added LEGO cosmetics.
- Type:
- lego_kits¶
Newly added LEGO kit cosmetics.
- Type:
- beans¶
Newly added Bean cosmetics.
- Type:
AESKeys¶
DynamicAESKey¶
CreatorCode¶
Map¶
POI¶
News¶
NewsPost¶
Playlist¶
- class FortniteAPIAsync.Playlist[source]¶
Represents a Fortnite playlist.
- accumulate_to_profile_stats¶
Whether matches count towards profile statistics (this value is not actually used for anything and isn’t an indicator of whether or not the playlist accumulates to profile stats on websites such as FortniteTracker).
- Type:
- gameplay_tags¶
List of gameplay tags associated with the playlist.
- Type:
list`[:class:`str]
- added¶
Datetime object which represents when the playlist was added to the API.
- Type:
GamemodeStats¶
Stats¶
ShopBundle¶
OfferTag¶
Layout¶
Colors¶
MaterialInstances¶
RenderImages¶
NewDisplayAsset¶
ShopEntry¶
- class FortniteAPIAsync.ShopEntry[source]¶
Represents a shop entry.
- in_date¶
Datetime when the offer becomes available.
- Type:
- out_date¶
Datetime when the offer is removed.
- Type:
- bundle¶
Bundle information for the offer.
- Type:
- banner¶
Banner information for the offer.
- Type:
- new_display_asset¶
New display asset information.
- Type:
- br_items¶
List of Battle Royale cosmetics included.
- Type:
list`[:class:`BRCosmetic]
- tracks¶
List of track cosmetics included.
- Type:
list`[:class:`TrackCosmetic]
- instruments¶
List of instrument cosmetics included.
- Type:
list`[:class:`InstrumentCosmetic]
- cars¶
List of car cosmetics included.
- Type:
list`[:class:`CarCosmetic]
- lego_kits¶
List of LEGO kit cosmetics included.
- Type:
list`[:class:`LegoKitCosmetic]
Shop¶
- class FortniteAPIAsync.Shop[source]¶
Represents the Fortnite item shop.
- date¶
Datetime when the shop data was generated.
- Type:
- entries¶
List of shop entries.
- Type:
list`[:class:`ShopEntry]