ApexLegendsAPI.com  |  Apex Legends stats API and more

Apex Legends API

Access my dashboard
Issue or question? Support will be ONLY done on our Discord
All requests MUST be done in HTTPS.

IMPORTANT NOTE: Due to Apex Legends limitations, you can only get data from the banners displayed on the currently selected Legend. Past data will be saved. Global account data will be available nontheless.


Rate limit restriction:
- BASIC access: BASIC access : 3 req/s by default
- @Supporter : 30 req/s
- @Legend : 150req/s

This is done for stability. To become a Supporter or Legend, help us on Patreon !
For custom needs and increased stability, you can host the API on your own servers. Ask us on discord ! We DO NOT guarantee any uptime on our servers.

By generating an API key, you accept that your account can be suspended without any notice and for any reason. It's also highly recommended to join our Discord for any support & info.
Please note:
- You are not allowed to create a public API service which uses this API (For example, you cannot create a stats API using this stats API).
- There is no guaranteed uptime.
- Please make a responsible use of this API. You are allowed to use this API to provide paid services.


Project URL (not required):


(Very) short usage description:


Player stats API

Basic query

To get a player's data, go to https://api.mozambiquehe.re/bridge and add the 3 main GET parameters. First one is platform, which can only take "PC", "PS4" or "X1". The second one will be "player", and that's obvisouly the player's name you're looking for. You can also add "version" parameter, which will give you more flexibility. (Version 4 is the only one still supported, v1 and v2 are deprecated).

Authorization To auth yourself, you can either put your API Key as a third GET parameter in the URL which will be "auth", or put your API Key in the "Authorization" header.

Your request should look like this (if you're using your API Key in the URL):

GET https://api.mozambiquehe.re/bridge?version=4&platform=PC&player=HeyImLifeline&auth=YOURAPIKEY

You can also query multiple players at the same time:

GET https://api.mozambiquehe.re/bridge?version=4&platform=PC&player=PlayerA,PlayerB,PlayerC&auth=YOURAPIKEY

UID query

You can query users by their UIDs, multiple UID queries will also work with the syntax above. Example query:

GET https://api.mozambiquehe.re/bridge?platform=PC&uid=UID1,UID2&auth=YOURAPIKEY

API response

If the API returns with a httpcode other than 200, there was an error while processing the data. You should get the error message in response.

The global field contains most important data about the user. You'll find his name, his UID, his platform, level, level progress and how many times he updated his character ingame.

The realtime field provided current data about the user, such as the selected Legend, his lobbyState (open or invite), if the player is online, if he's in a game and if you can join him (if you can't, he's party is full or his lobbyState is set to 'invite').

The legends field contains all data related to legends, split in 2 main data arrays: selected -> data about currently selected legend.

all -> player's data history, with updated ones and older ones. Each time the player is updated, any new data will be added and if already present, it will be updated.

Finally, you'll get total stats across all legends. The kd field will be -1 unless the API finds a 'kills' field and 'games_played' field.

Match history API

This API is only available to Supporters - This API uses lots of server ressources. Only people who help us paying the bills get access to it. You can support us on Patreon, and you can ask questions on discord if needed.

Query structure

Like any other request, you must have an API key.

An example query would be:

GET https://api.mozambiquehe.re/bridge?player=heyimlifeline&platform=PC&auth=YOURAPIKEY&history=1&action=info

The "history" parameter must be set to 1 to access the match history API. Data returned differs according to the "action" parameter


info

The action=info parameter will return the players you're currently tracking. Please note you're curently limited to 30 registered users at the same time (100 for Legends, 250 for wut and 1000 for UNICORN).



{
    "registered": 2,
    "data": [
        {
            "name": "mrc9h13n",
            "platform": "PC"
        },
        {
            "name": "heyimlifeline",
            "platform": "PC"
        }
    ]
}
									

get

This parameter will return ALL tracked events for the player given in the player and platform parameter. An example response would be



[
    {
        "uid": "1000575543540",
        "player": "HeyImLIFELINE",
        "timestamp": "1575905943",
        "eventType": "Game",
        "xpProgress": "180",
        "gameLength": "3",
        "legendPlayed": "Lifeline",
        "event": [
            {
                "value": 95,
                "key": "damage",
                "name": "Damage"
            },
            {
                "value": 1,
                "key": "games_played",
                "name": "Games played"
            }
        ]
    },
    {
        "uid": "1000575543540",
        "player": "HeyImLIFELINE",
        "timestamp": "1575905943",
        "eventType": "Session",
        "event": {
            "action": "leave",
            "sessionDuration": "9"
        }
    },
    {
        "uid": "1000575543540",
        "player": "HeyImLIFELINE",
        "timestamp": "1575905673",
        "eventType": "Level",
        "event": {
            "newLevel": "89"
        }
    },
    {
        "uid": "1000575543540",
        "player": "HeyImLIFELINE",
        "timestamp": "1575905673",
        "eventType": "Game",
        "xpProgress": "16740",
        "gameLength": "4",
        "legendPlayed": "Lifeline",
        "event": [
            {
                "value": 1,
                "key": "games_played",
                "name": "Games played"
            }
        ]
    },
    {
        "uid": "1000575543540",
        "player": "HeyImLIFELINE",
        "timestamp": "1575905403",
        "eventType": "Level",
        "event": {
            "newLevel": "88"
        }
    },
    {
        "uid": "1000575543540",
        "player": "HeyImLIFELINE",
        "timestamp": "1575905403",
        "eventType": "Game",
        "xpProgress": "0",
        "gameLength": "-1",
        "legendPlayed": "",
        "event": [
            {
                "value": 0,
                "key": null,
                "name": null
            }
        ]
    },
    {
        "uid": "1000575543540",
        "player": "HeyImLIFELINE",
        "timestamp": "1575905403",
        "eventType": "Session",
        "event": {
            "action": "join"
        }
    }
]
									

There are 4 events tracked: Login, leave, level up and game played.

Session login will return his timestamp and the join action, as shown above. Sesion leave will return timestamp and game session duration in minutes. Level up will return timestamp and the new player level. Game will return the data from the player's trackers shown on his profile (max 3), the legend he was using, timestamp, XP progress (approx.) and the game duration.

delete

Removes the given user from the tracked users list. Will return your current registered users.


add

Add the given player to your current registered users. Max 20 for now.


News API

Simple.

Make a call with your API key (see top of page for more info on how to get one) to

GET https://api.mozambiquehe.re/news?lang=en-us&auth=YOURAPIKEY

You can change en-us by your wanted language.

Server status API

Gives Origin logins, EA novafusion, EA accounts, Apex Oauth (PC/PS4/X1) and Mozambiquehere API status. Only consists of a json file for now, it may be included into the mozambiquehe.re API later. Updated every 60s~. Status may be "UP", "DOWN" or "NO DATA".

GET https://apexlegendsstatus.com/servers.json

Game data API

Gives all the game data available on this website. Allowed data types are: assault_rifles, attachments, consumables, equipment, grenades, legends, light_machine_guns, pistols, shotguns, sniper_rifles, sub_machine_guns.

GET https://api.mozambiquehe.re/gamedata?type=DATATYPE&auth=YOURAPIKEY

Map rotation API

Dates are in UTC timezone.

Make a call with your API key (see top of page for more info on how to get one) to

GET https://api.mozambiquehe.re/maprotation?auth=YOURAPIKEY