Using api to learn match result

Hi,
I’m testing battlelog api in the Clash Royale API page,
but I can’t see the game results. In documentation there is response as remainingTowers (I believe I could know the battle result from this parameter) however in my tests there is no such response turning, just team, oppenent and game selection are returning.

hp is in the response. try using postman

if you need additional help you can try our community developer discord server:

Hello SML,
Thank you for your response. I have been really tracking this issue for a time.
I have tried it on Postman after you redirect but I don’t receive game result at there either.

[
    {
        "type": "casual1v1",
        "battleTime": "20220831T170626.000Z",
        "isLadderTournament": false,
        "arena": {
            "id": 54000003,
            "name": "Arena 3"
        },
        "gameMode": {
            "id": 72000060,
            "name": "Overtime_Ladder"
        },
        "deckSelection": "collection",
        "team": [
            {
                "tag": "#UGVGJ8PVG",
                "name": "barutses",
                "startingTrophies": 571,
                "crowns": 0,
                "kingTowerHitPoints": 3312,
                "princessTowersHitPoints": [
                    2030
                ],
                "cards": [
                    {
                        "name": "Valkyrie",
                        "id": 26000011,
                        "level": 4,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/0lIoYf3Y_plFTzo95zZL93JVxpfb3MMgFDDhgSDGU9A.png"
                        }
                    },
                    {
                        "name": "Prince",
                        "id": 26000016,
                        "level": 3,
                        "maxLevel": 9,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/3JntJV62aY0G1Qh6LIs-ek-0ayeYFY3VItpG7cb9I60.png"
                        }
                    },
                    {
                        "name": "Baby Dragon",
                        "id": 26000015,
                        "level": 3,
                        "maxLevel": 9,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/cjC9n4AvEZJ3urkVh-rwBkJ-aRSsydIMqSAV48hAih0.png"
                        }
                    },
                    {
                        "name": "Bomber",
                        "id": 26000013,
                        "level": 6,
                        "maxLevel": 14,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/12n1CesxKIcqVYntjxcF36EFA-ONw7Z-DoL0_rQrbdo.png"
                        }
                    },
                    {
                        "name": "Fireball",
                        "id": 28000000,
                        "level": 5,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/lZD9MILQv7O-P3XBr_xOLS5idwuz3_7Ws9G60U36yhc.png"
                        }
                    },
                    {
                        "name": "Skeleton Army",
                        "id": 26000012,
                        "level": 3,
                        "maxLevel": 9,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/fAOToOi1pRy7svN2xQS6mDkhQw2pj9m_17FauaNqyl4.png"
                        }
                    },
                    {
                        "name": "Musketeer",
                        "id": 26000014,
                        "level": 5,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/Tex1C48UTq9FKtAX-3tzG0FJmc9jzncUZG3bb5Vf-Ds.png"
                        }
                    },
                    {
                        "name": "Mini P.E.K.K.A",
                        "id": 26000018,
                        "level": 5,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/Fmltc4j3Ve9vO_xhHHPEO3PRP3SmU2oKp2zkZQHRZT4.png"
                        }
                    }
                ],
                "elixirLeaked": 54248,
                "rounds": [
                    {
                        "crowns": 0,
                        "elixirLeaked": 0,
                        "cards": [
                            {
                                "name": "Valkyrie",
                                "id": 26000011,
                                "level": 4,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/0lIoYf3Y_plFTzo95zZL93JVxpfb3MMgFDDhgSDGU9A.png"
                                }
                            },
                            {
                                "name": "Prince",
                                "id": 26000016,
                                "level": 3,
                                "maxLevel": 9,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/3JntJV62aY0G1Qh6LIs-ek-0ayeYFY3VItpG7cb9I60.png"
                                }
                            },
                            {
                                "name": "Baby Dragon",
                                "id": 26000015,
                                "level": 3,
                                "maxLevel": 9,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/cjC9n4AvEZJ3urkVh-rwBkJ-aRSsydIMqSAV48hAih0.png"
                                }
                            },
                            {
                                "name": "Bomber",
                                "id": 26000013,
                                "level": 6,
                                "maxLevel": 14,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/12n1CesxKIcqVYntjxcF36EFA-ONw7Z-DoL0_rQrbdo.png"
                                }
                            },
                            {
                                "name": "Fireball",
                                "id": 28000000,
                                "level": 5,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/lZD9MILQv7O-P3XBr_xOLS5idwuz3_7Ws9G60U36yhc.png"
                                }
                            },
                            {
                                "name": "Skeleton Army",
                                "id": 26000012,
                                "level": 3,
                                "maxLevel": 9,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/fAOToOi1pRy7svN2xQS6mDkhQw2pj9m_17FauaNqyl4.png"
                                }
                            },
                            {
                                "name": "Musketeer",
                                "id": 26000014,
                                "level": 5,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/Tex1C48UTq9FKtAX-3tzG0FJmc9jzncUZG3bb5Vf-Ds.png"
                                }
                            },
                            {
                                "name": "Mini P.E.K.K.A",
                                "id": 26000018,
                                "level": 5,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/Fmltc4j3Ve9vO_xhHHPEO3PRP3SmU2oKp2zkZQHRZT4.png"
                                }
                            }
                        ]
                    }
                ]
            }
        ],
        "opponent": [
            {
                "tag": "#UVVR2UQRR",
                "name": "francesco01",
                "startingTrophies": 793,
                "crowns": 1,
                "kingTowerHitPoints": 3312,
                "princessTowersHitPoints": [
                    1304,
                    2030
                ],
                "clan": {
                    "tag": "#LRY8VLLC",
                    "name": "noi❤",
                    "badgeId": 16000108
                },
                "cards": [
                    {
                        "name": "Valkyrie",
                        "id": 26000011,
                        "level": 4,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/0lIoYf3Y_plFTzo95zZL93JVxpfb3MMgFDDhgSDGU9A.png"
                        }
                    },
                    {
                        "name": "Skeleton Army",
                        "id": 26000012,
                        "level": 2,
                        "maxLevel": 9,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/fAOToOi1pRy7svN2xQS6mDkhQw2pj9m_17FauaNqyl4.png"
                        }
                    },
                    {
                        "name": "Baby Dragon",
                        "id": 26000015,
                        "level": 3,
                        "maxLevel": 9,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/cjC9n4AvEZJ3urkVh-rwBkJ-aRSsydIMqSAV48hAih0.png"
                        }
                    },
                    {
                        "name": "Goblin Barrel",
                        "id": 28000004,
                        "level": 2,
                        "maxLevel": 9,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/CoZdp5PpsTH858l212lAMeJxVJ0zxv9V-f5xC8Bvj5g.png"
                        }
                    },
                    {
                        "name": "Fireball",
                        "id": 28000000,
                        "level": 4,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/lZD9MILQv7O-P3XBr_xOLS5idwuz3_7Ws9G60U36yhc.png"
                        }
                    },
                    {
                        "name": "Giant",
                        "id": 26000003,
                        "level": 5,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/Axr4ox5_b7edmLsoHxBX3vmgijAIibuF6RImTbqLlXE.png"
                        }
                    },
                    {
                        "name": "Musketeer",
                        "id": 26000014,
                        "level": 5,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/Tex1C48UTq9FKtAX-3tzG0FJmc9jzncUZG3bb5Vf-Ds.png"
                        }
                    },
                    {
                        "name": "Mini P.E.K.K.A",
                        "id": 26000018,
                        "level": 6,
                        "starLevel": 1,
                        "maxLevel": 12,
                        "iconUrls": {
                            "medium": "https://api-assets.clashroyale.com/cards/300/Fmltc4j3Ve9vO_xhHHPEO3PRP3SmU2oKp2zkZQHRZT4.png"
                        }
                    }
                ],
                "elixirLeaked": 17477,
                "rounds": [
                    {
                        "crowns": 1,
                        "elixirLeaked": 0,
                        "cards": [
                            {
                                "name": "Valkyrie",
                                "id": 26000011,
                                "level": 4,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/0lIoYf3Y_plFTzo95zZL93JVxpfb3MMgFDDhgSDGU9A.png"
                                }
                            },
                            {
                                "name": "Skeleton Army",
                                "id": 26000012,
                                "level": 2,
                                "maxLevel": 9,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/fAOToOi1pRy7svN2xQS6mDkhQw2pj9m_17FauaNqyl4.png"
                                }
                            },
                            {
                                "name": "Baby Dragon",
                                "id": 26000015,
                                "level": 3,
                                "maxLevel": 9,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/cjC9n4AvEZJ3urkVh-rwBkJ-aRSsydIMqSAV48hAih0.png"
                                }
                            },
                            {
                                "name": "Goblin Barrel",
                                "id": 28000004,
                                "level": 2,
                                "maxLevel": 9,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/CoZdp5PpsTH858l212lAMeJxVJ0zxv9V-f5xC8Bvj5g.png"
                                }
                            },
                            {
                                "name": "Fireball",
                                "id": 28000000,
                                "level": 4,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/lZD9MILQv7O-P3XBr_xOLS5idwuz3_7Ws9G60U36yhc.png"
                                }
                            },
                            {
                                "name": "Giant",
                                "id": 26000003,
                                "level": 5,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/Axr4ox5_b7edmLsoHxBX3vmgijAIibuF6RImTbqLlXE.png"
                                }
                            },
                            {
                                "name": "Musketeer",
                                "id": 26000014,
                                "level": 5,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/Tex1C48UTq9FKtAX-3tzG0FJmc9jzncUZG3bb5Vf-Ds.png"
                                }
                            },
                            {
                                "name": "Mini P.E.K.K.A",
                                "id": 26000018,
                                "level": 6,
                                "starLevel": 1,
                                "maxLevel": 12,
                                "used": true,
                                "iconUrls": {
                                    "medium": "https://api-assets.clashroyale.com/cards/300/Fmltc4j3Ve9vO_xhHHPEO3PRP3SmU2oKp2zkZQHRZT4.png"
                                }
                            }
                        ]
                    }
                ]
            }
        ],
        "isHostedMatch": false
    },

Can you define what you meant by “game result”? Do you mean crown result or what is that you meant?

"opponent": [
            {
                "tag": "#UVVR2UQRR",
                "name": "francesco01",
                "startingTrophies": 793,
                "crowns": 1,
                "kingTowerHitPoints": 3312,
                "princessTowersHitPoints": [
                    1304,
                    2030
                ],

If you meant game replay, that access is not available publicly.

I want to see/understand who win the game.

For example, at brawl star, here is how I see game result.

In your JSON response:

"team": [
    {
        "crowns": 0,
    }
],

"opponent": [
    {
        "crowns": 1,
    }
],

That means the battle result is 0-1. i.e. Opponent won (or, you’ve lost)

1 Like

Oh, thank you so much :slight_smile: