Results 1 to 3 of 3

Thread: How to access the players hero levels from the api?

  1. #1
    Banned
    Join Date
    Sep 2016
    Location
    Egypt
    Posts
    59

    How to access the players hero levels from the api?

    Hello Nerd Clashers :P

    How to access the players hero levels from the api?

    I Cant find it on the api documentation, but there's some websites that can do that like clashstats and clashleaders

  2. #2
    OnyxDS's Avatar
    Join Date
    Sep 2014
    Location
    Brexit Island
    Posts
    5,770
    There's a "heroes" section in the player data returned from the API for a player, such as:
    Code:
      "heroes": [
        {
          "name": "Barbarian King",
          "level": 15,
          "maxLevel": 50,
          "village": "home"
        },
        {
          "name": "Archer Queen",
          "level": 15,
          "maxLevel": 50,
          "village": "home"
        }
      ],
    It's usually after troops and before spells I think
    Forum cup organiser. The forum cup discord server is: https://discord.gg/KEUxV2e

  3. #3
    Banned
    Join Date
    Sep 2016
    Location
    Egypt
    Posts
    59
    Quote Originally Posted by OnyxDS View Post
    There's a "heroes" section in the player data returned from the API for a player, such as:
    Code:
      "heroes": [
        {
          "name": "Barbarian King",
          "level": 15,
          "maxLevel": 50,
          "village": "home"
        },
        {
          "name": "Archer Queen",
          "level": 15,
          "maxLevel": 50,
          "village": "home"
        }
      ],
    It's usually after troops and before spells I think
    Thanks a lot.... i just created a website that sorts the players based on the TH Level + Heroes to help planning the wars ...
    http://black-pearl.mhmoudko.net/plan/


    Last edited by mhmoudko; July 2nd, 2018 at 03:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •