You are viewing a human-readable response

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

{
    "error": null,
    "success": true,
    "body": [
        {
            "id": "m3zxszaz",
            "name": "Season 27",
            "start": 1735898400000,
            "end": 1738317600000,
            "live": false,
            "totalScores": 0,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_26/leaderboard"
        },
        {
            "id": "m1umgq4c",
            "name": "Season 25",
            "start": 1731060000000,
            "end": 1733479200000,
            "live": true,
            "totalScores": 1047,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_24/leaderboard"
        },
        {
            "id": "m1uir6le",
            "name": "Season 24",
            "start": 1728640800000,
            "end": 1731060000000,
            "live": false,
            "totalScores": 1120,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_23/leaderboard"
        },
        {
            "id": "m0cgikvu",
            "name": "Season 23",
            "start": 1726221600000,
            "end": 1728640800000,
            "live": false,
            "totalScores": 1250,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_22/leaderboard"
        },
        {
            "id": "lycwfn2z",
            "name": "Season 22",
            "start": 1723802400000,
            "end": 1726221600000,
            "live": false,
            "totalScores": 1420,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_21/leaderboard"
        },
        {
            "id": "ly46is3r",
            "name": "Season 21",
            "start": 1721383500000,
            "end": 1723802400000,
            "live": false,
            "totalScores": 987,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_20/leaderboard"
        },
        {
            "id": "lx8zxuy1",
            "name": "Season 20",
            "start": 1718964000000,
            "end": 1721383200000,
            "live": false,
            "totalScores": 698,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_19/leaderboard"
        },
        {
            "id": "lw532qle",
            "name": "Season 19",
            "start": 1716372000000,
            "end": 1718964000000,
            "live": false,
            "totalScores": 872,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_18/leaderboard"
        },
        {
            "id": "lteij7gk",
            "name": "Season 18",
            "start": 1711620000000,
            "end": 1716372000000,
            "live": false,
            "totalScores": 640,
            "leaderboard": "https://data.ninjakiwi.com/battles2/homs/season_17/leaderboard"
        },
        {
            "id": "lpgvhtjw",
            "name": "Season 16",
            "start": 1701943200000,
            "end": 1706695200000,
            "live": false,
            "totalScores": 587,
            "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
}