Skip to main content

apex-legends-api

Python wrapper for https://apexlegendsapi.com

Downloads

Installation

You can install it from source, or pip (recommended)

Requirements

python >= 3.9

Source installation

python ./setup.py install

Pip installation

pip install apex-legends-api

Usage

  • Register for an API Key at Apex Legends API
  • Here's a quick snippet to get started
  • All method calls return a dictionary representing the JSON in the response.
import sys
from apex_legends_api import ApexLegendsAPI,\
    ALPlatform,\
    ALPlayer,\
    ALAction,\
    ALHTTPExceptionFromResponse
from apex_legends_api.al_base import print_description

api = ApexLegendsAPI(api_key='<api_key>')

player_name = str("PlayerName")
player_uid = str("1234567890")
platform = ALPlatform.PC
action = ALAction.GET

# Example 1:
# straight API calls
try:
    basic = api.basic_player_stats(player_name=player_name, platform=platform)
    # or query by UID
    # basic = api.basic_player_stats_by_uid(uid=player_uid, platform=platform)
    history = api.events(player_name=player_name, platform=platform, action=action)
    origin_player = api.get_player_origin(player_name=player_name, show_all_hits=True)
except ALHTTPExceptionFromResponse as exception:
    print(exception)
    sys.exit()

print(basic)
print(history)
print(origin_player)

# Example 2:
# retrieve an 'ALPlayer' object
player: ALPlayer = api.get_player(name=player_name, platform=platform)
print_description(player)

Notes

Metadata

Release files for apex-legends-api 2.0.3

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

Source distribution (sdist)

Source distribution for apex-legends-api 2.0.3
File Size Uploaded Provenance Actions
apex-legends-api-2.0.3.tar.gz 10.2 kB Without provenance Details for apex-legends-api-2.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apex-legends-api 2.0.3
File Interpreter ABI Platform Actions
apex_legends_api-2.0.3-py3-none-any.whl Python 3 none any Details for apex_legends_api-2.0.3-py3-none-any.whl

Total release size: 20.6 kB

Release files / apex-legends-api-2.0.3.tar.gz

Download URL apex-legends-api-2.0.3.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e9cc411edc6516d6ff0ef48ce7cd71797fb3365d453fb6d26dc7b7f929915e33
BLAKE2b-256 checksum
How to use checksums
1d6f1b8d92f9fc2dd9f56cb9666630e1edaa50f65d99cc9dbecd8f3933a0e1de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release files / apex_legends_api-2.0.3-py3-none-any.whl

Download URL apex_legends_api-2.0.3-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c352819357b761e6d20f0571882151c3425d60854469279eabb190e59e4e7c47
BLAKE2b-256 checksum
How to use checksums
3f607edb39387385162da20959ab1f1ec19641c833d0a6c1c7350d4b282602d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Security for apex-legends-api 2.0.3

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.

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