Results 1 to 8 of 8

Thread: I cant seem to find info about CoC API

  1. #1
    New Bloke/Chick
    Join Date
    Mar 2015
    Location
    Czechia
    Posts
    47

    Question I cant seem to find info about CoC API

    Hello, i googled, i youtubed, i searched in this forum. I cant seem to find out what can i do with the API

    i am interested in pulling out stats/data about clan wars. Is that possible?

  2. #2
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    18
    Official documentation is available @ https://developer.clashofclans.com/

    You need to create an account first and then you can log in and read the API documentation.
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  3. #3
    New Bloke/Chick
    Join Date
    Mar 2015
    Location
    Czechia
    Posts
    47
    Can i find out anything without registration?

  4. #4
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    18
    Yes you can for example https://tparviainen.github.io/clashofclans/index.html shows some basic info about how to read data from the API via ClashOfClans C# NuGet library and on top of that page there is "API Documentation" link that shows detailed information about what each API call returns and their data models etc.

    But if you want to develop something that uses the SC API you need to register because you need API token and you can only create the API token in the official clash of clans developer page.
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  5. #5
    New Bloke/Chick
    Join Date
    Mar 2015
    Location
    Czechia
    Posts
    47
    Do you know if i can get data about number of stars per player in each war?

  6. #6
    Quote Originally Posted by Faresar View Post
    Do you know if i can get data about number of stars per player in each war?
    Yes, it is possible to retrieve this information using the COC API.
    Clash Ninja - Upgrade Tracker and Guides
    https://www.clash.ninja - Forum Thread

  7. #7
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    18
    Quote Originally Posted by Faresar View Post
    Do you know if i can get data about number of stars per player in each war?
    For the current war (endpoint: /clans/{clanTag}/currentwar) yes that information is available in the API. But if you are talking about some old wars (endpoint: /clans/{clanTag}/warlog) then you only get the result, destruction percentage and total clan stars but you cannot see how many stars individual players got.
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  8. #8
    New Bloke/Chick
    Join Date
    Mar 2015
    Location
    Czechia
    Posts
    47
    Wow thats cool. I will get right into it then

Posting Permissions

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