You are viewing a human-readable response

Remove the pretty=true querystring to have the API return JSON

{
    "error": null,
    "success": true,
    "body": [
        {
            "id": "lteij7gk",
            "name": "Season 18",
            "start": 1711620000000,
            "end": 1716372000000,
            "live": true,
            "totalScores": 17,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_17/leaderboard"
        },
        {
            "id": "lrq7y3q3",
            "name": "Season 17",
            "start": 1706781600000,
            "end": 1711533600000,
            "live": false,
            "totalScores": 594,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_16/leaderboard"
        },
        {
            "id": "lpgvhtjw",
            "name": "Season 16",
            "start": 1701943200000,
            "end": 1706695200000,
            "live": false,
            "totalScores": 595,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_15/leaderboard"
        },
        {
            "id": "ln2z4gl6",
            "name": "Season 15",
            "start": 1697104800000,
            "end": 1701856800000,
            "live": false,
            "totalScores": 518,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_14/leaderboard"
        },
        {
            "id": "ll3j3d6x",
            "name": "Season 14",
            "start": 1692266400000,
            "end": 1697018400000,
            "live": false,
            "totalScores": 481,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_13/leaderboard"
        },
        {
            "id": "lj44j3vt",
            "name": "Season 13",
            "start": 1687428000000,
            "end": 1692180000000,
            "live": false,
            "totalScores": 583,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_12/leaderboard"
        }
    ],
    "model": {
        "name": "_battles2hom",
        "parameters": {
            "id": {
                "description": "HoM Event ID",
                "type": "string"
            },
            "name": {
                "description": "Season Name",
                "type": "string"
            },
            "start": {
                "description": "Event start time in unix epoch milliseconds",
                "type": "number"
            },
            "end": {
                "description": "Event end time in unix epoch milliseconds",
                "type": "number"
            },
            "live": {
                "description": "When 'true', this is the live in-game HoM event",
                "type": "boolean"
            },
            "totalScores": {
                "description": "The total number of scores submitted",
                "type": "number"
            },
            "leaderboard": {
                "description": "URL to leaderboard data",
                "type": "string"
            }
        }
    },
    "next": null,
    "prev": null
}