Skip to main content

FortniteAPIAsync

Python wrapper for Fortnite-API.com.

Downloads Python FortniteAPIAsync Version: 2.0.0 PEP-8 Compliant Last Commit Docs

Installation

# windows
py -3 -m pip install -U FortniteAPIAsync

# linux/macos
python3 -m pip install -U FortniteAPIAsync

Examples

Standard example

import FortniteAPIAsync
import asyncio


async def get_current_aes() -> None:
    client = FortniteAPIAsync.APIClient()
    
    aes = await client.get_aes()
    print(f'AES key for {aes.build} - {aes.main_key}')
    # outputs: AES key for ++Fortnite+Release-39.40-CL-50341043 - 67e127d5c846a0d426be...
    
    await client.close()


asyncio.run(get_current_aes())

rebootpy example

import rebootpy
import FortniteAPIAsync

from rebootpy.ext import commands


bot = commands.Bot(
    command_prefix='!',
    auth=rebootpy.AuthorizationCodeAuth(
        code=input('Enter authorization code: ')
    )
)


@bot.command()
async def skin(ctx: rebootpy.ext.commands.Context, *, content: str) -> None:
    try:
        async with FortniteAPIAsync.APIClient() as client:
            cosmetic = await client.get_cosmetic(
                matchMethod="contains",
                name=content,
                backendType="AthenaCharacter"
            )

        await bot.party.me.set_outfit(asset=cosmetic.id)
        await ctx.send(f'Skin set to {cosmetic.id}.')
    except FortniteAPIAsync.exceptions.NotFound:
        await ctx.send(f"Failed to find a skin with the name: {content}.")


bot.run()

Metadata

Release files for FortniteAPIAsync 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FortniteAPIAsync 2.0.1
File Size Uploaded
fortniteapiasync-2.0.1.tar.gz 15.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FortniteAPIAsync 2.0.1
File Interpreter ABI Platform
fortniteapiasync-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.7 kB

Release files / fortniteapiasync-2.0.1.tar.gz

Download URL fortniteapiasync-2.0.1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
07a7f2b48471c2cf041a30a6bf7aace204ed2a99648522f64e85ca6eb2c0b5d1
BLAKE2b-256 checksum
How to use checksums
ea7ff7368453ecbc47184a5d090e53db56e6b92527c39ad6aeeadbf8536f4471
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / fortniteapiasync-2.0.1-py3-none-any.whl

Download URL fortniteapiasync-2.0.1-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea63ad4d74b33af73cc1bbde8aa98e0ae7ac872aacac07f740216d4c70dc03d5
BLAKE2b-256 checksum
How to use checksums
d899dd52a2cd1b1032cc387aa5865041cf43ac0fca07fa0323b4b41488730643
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page