TrackerNetwork / TRN.Developers

Information and Issue Tracker for the Tracker Network API.
https://tracker.gg/developers
24 stars 5 forks source link

Apex Legends kill/damage stats pull same for character #15

Open cjs007 opened 4 years ago

cjs007 commented 4 years ago

When pulling the Apex Legends API for a player, the json returned lists each (or most recently used?) character and stats associated with it. However the damage and kills are the total for the account and not specific to that character - so the values returned in each section are the same. This is just a bit confusing since the value is repeating itself in each section when it feels like it should be unique to that character. Example returned below. You'll see that both damage and kill is the same under Lifeline and Mirage.

   "segments": [
            {
                "type": "overview",
                "attributes": {},
                "metadata": {
                    "name": "Lifetime"
                },
                "expiryDate": "2019-11-23T16:18:02.8969618Z",
                "stats": {
                    "level": {
                        "rank": null,
                        "percentile": 42.0,
                        "displayName": "Level",
                        "displayCategory": "Combat",
                        "category": null,
                        "metadata": {},
                        "value": 32.0,
                        "displayValue": "32",
                        "displayType": "Unspecified"
                    },
                    "kills": {
                        "rank": null,
                        "percentile": 44.0,
                        "displayName": "Kills",
                        "displayCategory": "Combat",
                        "category": null,
                        "metadata": {},
                        "value": 48.0,
                        "displayValue": "48",
                        "displayType": "Unspecified"
                    },
                    "damage": {
                        "rank": null,
                        "percentile": 76.0,
                        "displayName": "Damage",
                        "displayCategory": "Combat",
                        "category": null,
                        "metadata": {},
                        "value": 24693.0,
                        "displayValue": "24,693",
                        "displayType": "Unspecified"
                    },
                    "rankScore": {
                        "rank": null,
                        "percentile": 89.0,
                        "displayName": "Rank Score",
                        "displayCategory": "Game",
                        "category": null,
                        "metadata": {
                            "iconUrl": "https://trackercdn.com/cdn/apex.tracker.gg/ranks/diamond4.png"
                        },
                        "value": 760.0,
                        "displayValue": "760",
                        "displayType": "Unspecified"
                    }
                }
            },
            {
                "type": "legend",
                "attributes": {
                    "id": "legend_4"
                },
                "metadata": {
                    "name": "Mirage",
                    "imageUrl": "https://trackercdn.com/cdn/apex.tracker.gg/legends/mirage-tile.png",
                    "tallImageUrl": "https://trackercdn.com/cdn/apex.tracker.gg/legends/mirage-tall.png",
                    "bgImageUrl": "https://trackercdn.com/cdn/apex.tracker.gg/legends/mirage-concept-bg-small.jpg",
                    "isActive": true
                },
                "expiryDate": "2019-11-23T16:18:02.8969618Z",
                "stats": {
                    "kills": {
                        "rank": null,
                        "percentile": 47.0,
                        "displayName": "Kills",
                        "displayCategory": "Combat",
                        "category": null,
                        "metadata": {},
                        "value": 48.0,
                        "displayValue": "48",
                        "displayType": "Unspecified"
                    },
                    "damage": {
                        "rank": null,
                        "percentile": 84.0,
                        "displayName": "Damage",
                        "displayCategory": "Combat",
                        "category": null,
                        "metadata": {},
                        "value": 24693.0,
                        "displayValue": "24,693",
                        "displayType": "Unspecified"
                    },
                    "bamboozles": {
                        "rank": null,
                        "percentile": 90.0,
                        "displayName": "Bamboozles",
                        "displayCategory": "Game",
                        "category": null,
                        "metadata": {},
                        "value": 69.0,
                        "displayValue": "69",
                        "displayType": "Unspecified"
                    }
                }
            }
        ],
aMytho commented 4 years ago

Nope, they are different. The stats in the data are mirage and lifeTIME not lifeLINE. I made the same mistake earlier too and couldn't figure it out for a while lol.