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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fortniteapiasync-2.0.1.tar.gz | 15.4 kB | Without provenance | Details for fortniteapiasync-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fortniteapiasync-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for fortniteapiasync-2.0.1-py3-none-any.whl |
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
|
Security for FortniteAPIAsync 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.