You are viewing a human-readable response

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

{
    "error": null,
    "success": true,
    "body": [
        {
            "id": "lycwfn2z",
            "name": "Season 22",
            "start": 1723802400000,
            "end": 1726221600000,
            "live": false,
            "totalScores": 0,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_21/leaderboard"
        },
        {
            "id": "lx8zxuy1",
            "name": "Season 20",
            "start": 1718964000000,
            "end": 1721383200000,
            "live": true,
            "totalScores": 687,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_19/leaderboard"
        },
        {
            "id": "lw532qle",
            "name": "Season 19",
            "start": 1716372000000,
            "end": 1718964000000,
            "live": false,
            "totalScores": 873,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_18/leaderboard"
        },
        {
            "id": "lteij7gk",
            "name": "Season 18",
            "start": 1711620000000,
            "end": 1716372000000,
            "live": false,
            "totalScores": 643,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_17/leaderboard"
        },
        {
            "id": "lrq7y3q3",
            "name": "Season 17",
            "start": 1706781600000,
            "end": 1711533600000,
            "live": false,
            "totalScores": 582,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_16/leaderboard"
        },
        {
            "id": "lpgvhtjw",
            "name": "Season 16",
            "start": 1701943200000,
            "end": 1706695200000,
            "live": false,
            "totalScores": 588,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_15/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
}