All Projects → nicolaskenner → python-fortnite-api-wrapper

nicolaskenner / python-fortnite-api-wrapper

Licence: MIT license
The Python Fortnite API Wrapper

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to python-fortnite-api-wrapper

EpicResearch
Research about Epic Games' non-documented API
Stars: ✭ 181 (+330.95%)
Mutual labels:  fortnite, fortnite-api
game apis
This repository is for integrating with different apis to allow you to pull player or game data
Stars: ✭ 24 (-42.86%)
Mutual labels:  fortnite, fortnite-api
NeoniteV2
Neonite V2 - An open-source Fortnite lobby emulator, written in JavaScript.
Stars: ✭ 136 (+223.81%)
Mutual labels:  fortnite
FortniteTracker
🔎 A tracker for the various Fortnite Files
Stars: ✭ 32 (-23.81%)
Mutual labels:  fortnite
Everybody-dance-now
Implementation of paper everybody dance now for Deep learning course project
Stars: ✭ 22 (-47.62%)
Mutual labels:  fortnite
fortnitepy
Async python library for interacting with Fortnite's API and XMPP services.
Stars: ✭ 118 (+180.95%)
Mutual labels:  fortnite
Ezfn Lobbybot
With EasyFNBot you can easily create you own Fortnite Lobby Bot in less than 5 minutes which will be online forever!
Stars: ✭ 6,875 (+16269.05%)
Mutual labels:  fortnite
FortniteLauncher
Fortnite Launcher which bypasses EAC that is designed to work on any update without breaking (kinda)!
Stars: ✭ 19 (-54.76%)
Mutual labels:  fortnite
fnbr.js
A library to interact with Epic Games' Fortnite HTTP and XMPP services
Stars: ✭ 73 (+73.81%)
Mutual labels:  fortnite
fortnite-basic-api
Basic Fortnite API for stats with async/await, and basic communicator
Stars: ✭ 46 (+9.52%)
Mutual labels:  fortnite
FortniteApi
An C# client library for the TrackerNetwork Fortnite API.
Stars: ✭ 15 (-64.29%)
Mutual labels:  fortnite
Fortnite-Forcer
A easy to use anti-cheat switcher for Fortnite written in C#.
Stars: ✭ 19 (-54.76%)
Mutual labels:  fortnite
node-epicgames-fortnite-client
Unofficial javascript client for Fortnite.
Stars: ✭ 55 (+30.95%)
Mutual labels:  fortnite
Fortnite-LobbyBot
No description or website provided.
Stars: ✭ 38 (-9.52%)
Mutual labels:  fortnite
fn-rate
🌠 Rate the skins of Fortnite and see what skins are most appreciated!
Stars: ✭ 14 (-66.67%)
Mutual labels:  fortnite
Monotone-HWID-Spoofer
Custom Created Hardware ID Spoofer to Bypass Hardware or IP Bans
Stars: ✭ 145 (+245.24%)
Mutual labels:  fortnite
EpicGraphQL
Research about the Epic's non-documented Graphql API and main API, using Fiddler and Developer Tools to find requests and add them.
Stars: ✭ 22 (-47.62%)
Mutual labels:  fortnite
FortniteReplayDecompressor
Read Fortnite replay files
Stars: ✭ 68 (+61.9%)
Mutual labels:  fortnite
stw-daily
Discord bot that collects Fortnite: STW daily rewards, research points, and more using an auth token.
Stars: ✭ 27 (-35.71%)
Mutual labels:  fortnite
Fortnite-LobbyBot
Uses JavaScript to emulate a Fortnite client and can join parties through HTTP and change skins / emotes visually.
Stars: ✭ 20 (-52.38%)
Mutual labels:  fortnite

The Python Fortnite API Wrapper

Discord PyPI

Installation

pip install fortnite

Usage

Setup

Obtaining fortnite and launcher tokens
Looking for an asynchronous client? Check out JakeMakesStuff/aiofortnite

from pfaw import Fortnite, Platform, Mode

fortnite = Fortnite(fortnite_token='FORTNITE_TOKEN', launcher_token='LAUNCHER_TOKEN',
                    password='PASSWORD', email='EMAIL')

Player

Return an object containing the attributes name and id.

player = fortnite.player(username='Smitty Werbenjagermanjensen')

print(player.name)
print(player.id)

# prints:
# Smitty Werbenjagermanjensen
# 9c9212603304472d831c03d0978d2bc1

Battle Royale Stats

Creates an object containing various stats for a given player.

stats = fortnite.battle_royale_stats(username='Smitty Werbenjagermanjensen', platform=Platform.pc)

print(f'Solo Wins: {stats.solo.wins}')
print(f'Duo Wins: {stats.duo.wins}')
print(f'Squad Wins: {stats.squad.wins}')
print(f'Lifetime Wins: {stats.all.wins}')


# prints:
# Solo Wins: 1051
# Duo Wins: 1005
# Squad Wins: 210
# Lifetime Wins: 2266

Server Status

Check the status of the Fortnite servers. Return True if up or False if down.

status = fortnite.server_status()

if status:
    print('Servers are UP!')
else:
    print('Servers are DOWN.')

Friends

Return a list of player IDs

smittys_pals = fortnite.friends(username='Smitty Werbenjagermanjensen')

for friend in smittys_pals:
    print(friend)

News

Return an object containing the attributes common, br, and login.

news = fortnite.news()

for br_news in news.br:
    print(br_news.image)
    print(br_news.title)
    print(br_news.body)

Store

store = fortnite.store()

print(store.refresh_interval_hrs)
print(store.daily_purchase_hrs)
print(store.expiration)

for front in store.storefronts:
    print(front.name)

    for entry in front.catalog_entries:
        print(entry.offer_id)
        print(entry.dev_name)
        print(entry.offer_type)
        print(entry.title)
        print(entry.description)
        print(entry.refundable)

        for price in entry.prices:
            print(price.currency_type)
            print(price.regular_price)
            print(price.final_price)
            print(price.sale_expiration)
            print(price.base_price)

Leaderboard

leaderboard = fortnite.leaderboard(count=10, platform=Platform.pc, mode=Mode.solo)

for player in leaderboard:
    print(f'{player.id} - {player.name} - {player.rank} - {player.value}')

# prints:
# 385c4d9ab7e3498db533ff4d2d9f4c5b - twitch_bogdanakh - 1 - 909
# 155234bbadaa4e8199a7b2d413722290 - TwitchTV.lavak3_ - 2 - 805
# c083d2200d654b25a87c0c48cb76c902 - Agares29_Twitch - 3 - 781
# 0041d08bedc548d9a2230c4a28550594 - Myboosting.com2 - 4 - 736
# 6f5c77adef1c4e47bc33f1f0c8b4b263 - Twitch_DutchHawk - 5 - 728
# e94c3e05284443398803285171550b45 - twitchtvLIKANDOO - 6 - 675
# 13b3c77420da4101a213e1f646b316a9 - Twitch APEXENITH - 7 - 675
# b94176db4c254f9099fb2bd8e8ae0f94 - VaxitylolMIXERtv - 8 - 624
# cfd16ec54126497ca57485c1ee1987dc - SypherPK - 9 - 608
# a9467569462d4149bc438550c03a45c9 - RuralKTmixer.com - 10 - 607

Contributors

A thank you to those who have helped out with this project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].