Results 1 to 7 of 7

Thread: Is there any way to get Town Hall level from the API?

  1. #1
    Fresh Spawn
    Join Date
    Jun 2016
    Posts
    1

    Is there any way to get Town Hall level from the API?

    I'm writing a little program to help my clan automate some stat retrieval. I don't see a way to pull TH level from the API. Am I just missing something? This seems like it should be an easy thing to get a hold of but I don't see it anywhere. If this isn't available, I hope it will be soon.

    Thanks

  2. #2
    No.
    The individual memberlist retrieved from clan does no have it.

  3. #3
    Nope. As far as I know there isnt any way to get the players TH Level. The API is still in Beta so.. you will have to wait a bit.
    $DOLLAR AKSHAY$
    Visit my Personal Website at http://dollarakshay.com/

  4. #4
    Junior Member
    Join Date
    Oct 2014
    Posts
    53
    Damn... That was one of the stats I couldn't get from the clashofclans.com website...

  5. #5
    Junior Member UncleNasty's Avatar
    Join Date
    May 2016
    Location
    United States
    Posts
    92
    Quote Originally Posted by Polemicistic View Post
    Damn... That was one of the stats I couldn't get from the clashofclans.com website...
    A little late, but did you ever find a solution to this?

  6. #6
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    27
    Player has a BuilderHallLevel, TownHallLevel and TownHallWeaponLevel attributes, which are available via the /players/{playerTag} API endpoint.
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  7. #7
    Fresh Spawn
    Join Date
    Aug 2020
    Posts
    2
    I try the same and came up with the following solution.
    Get the Data for your clan members from the API ( /clans/{clanTag}/members). Then go through the Members and get the tag for each member. WIth that tag you can query the player informations from /players/{playerTag} and get the TH Level from there.

Tags for this Thread

Posting Permissions

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