Conquer Club API

Discuss developing tools and get details on Conquer Club's API.

Moderators: Tech Team, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

Re: Conquer Club API

Postby Dako on Mon Jan 18, 2010 9:12 am

One more API bug:

Following link is not working
http://www.conquerclub.com/api.php?mode ... s%20Empire

Reason - I guess it is the ' sign in the map name that messes things up (cause it should be stripped from input). Escaping the character doesn't give anything.
Image
User avatar
Brigadier Dako
 
Posts: 3949
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 117
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (14) General Achievement (24)
Clan Achievement (21) General Contribution (20)

Re: Conquer Club API

Postby Dako on Thu Jan 21, 2010 4:21 am

Another bug (or what?).

http://www.conquerclub.com/api.php?mode ... gn=6272744

Should list 4 teams with 2 players each, 6 of slots empty. But right now it returns only 2 players for the game. No way to find how many players there should be.
Image
User avatar
Brigadier Dako
 
Posts: 3949
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 117
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (14) General Achievement (24)
Clan Achievement (21) General Contribution (20)

Re: Conquer Club API

Postby chipv on Thu Jan 21, 2010 4:49 pm

Thanks for the excellent bug reports, Dako, keep them coming!

Alexander's Empire looks like a bug and I agree with waiting games showing empty slots.
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Conquer Club API

Postby chipv on Thu Jan 21, 2010 5:24 pm

Dako wrote:One more API bug:

Following link is not working
http://www.conquerclub.com/api.php?mode ... s%20Empire

Reason - I guess it is the ' sign in the map name that messes things up (cause it should be stripped from input). Escaping the character doesn't give anything.


Fixed (thanks for quick response, lack)
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Conquer Club API

Postby Dako on Thu Jan 21, 2010 5:37 pm

So for now, these are the bugs/change requests I've found top priority (for my scripts at least, but I know Foxy will be glad for #1 and #4 to be fixed):

  1. [CR] - Player API doesn't return if the member is premium or freemium
  2. [CR] - Gamelist API doesn't indicate blocked players in freestyle games
  3. [BUG] - Gamelist API still have "Time remaining" clock running down after the game was finished
  4. [BUG] - Gamelist API never shows empty player slots for a game (it just skips them)

Maybe I will find something else in the next few days, but for now my script runs smoothly with the new API. Kudos to lack.
Image
User avatar
Brigadier Dako
 
Posts: 3949
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 117
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (14) General Achievement (24)
Clan Achievement (21) General Contribution (20)

Re: Conquer Club API

Postby barrycarter on Sun Aug 08, 2010 9:32 am

To confirm, the API won't tell you who has how many troops on which territories for a given game, correct? Even with the gn query, the info you get is limited, yes?
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am
Medals: 7
Standard Achievement (2) Doubles Achievement (2) Manual Troops Achievement (2) General Achievement (1)

Re: Conquer Club API

Postby sherkaner on Sun Aug 08, 2010 9:38 am

Correct, it's only general info.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Conquer Club API

Postby barrycarter on Sun Aug 08, 2010 9:50 am

And using a program to auto-login myself and scrape the info from the JSON data on the game page is considered a bad thing, yes?
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am
Medals: 7
Standard Achievement (2) Doubles Achievement (2) Manual Troops Achievement (2) General Achievement (1)

Re: Conquer Club API

Postby sherkaner on Sun Aug 08, 2010 10:04 am

Depends, not in all cases. For instance I think the Game Link-plugin actually uses the fact that you're already logged in to retrieve the game pages and use the info from those pages, which looks like what you're planning to do. But that's quite heavy, so it's not advised.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Conquer Club API

Postby Dako on Sun Aug 08, 2010 10:19 am

It's not bad - it is slow and hard to code/support. Any change to game layout will give you a bunch of work to up[date the tool. While abstract API just gives the data you need.
Image
User avatar
Brigadier Dako
 
Posts: 3949
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 117
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (14) General Achievement (24)
Clan Achievement (21) General Contribution (20)

Re: Conquer Club API

Postby barrycarter on Sun Aug 08, 2010 11:25 am

Thanks. My thought was to create a site where people enter a CC game number, and get various stats, who has best probability of winning, warnings (like: "if red grabs foo, he'll get a bonus"), etc.

Having the maps in XML format is really useful for general strategies, but I was thinking of a game-specific real-time strategy.
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am
Medals: 7
Standard Achievement (2) Doubles Achievement (2) Manual Troops Achievement (2) General Achievement (1)

Re: Conquer Club API

Postby Foxglove on Sun Aug 08, 2010 2:37 pm

sherkaner wrote:Depends, not in all cases. For instance I think the Game Link-plugin actually uses the fact that you're already logged in to retrieve the game pages and use the info from those pages, which looks like what you're planning to do. But that's quite heavy, so it's not advised.


Once the API provides the required information, there will be no need to do it the "heavy" way anymore. But for now... that's the only way to allow the script to work properly!
General Foxglove
Head Thinker
Head Thinker
 
Posts: 1291
Joined: Sun Dec 16, 2007 1:05 pm
Medals: 63
Monthly Leader Bronze (1) Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3)
Terminator Achievement (1) Freestyle Achievement (1) Polymorphic Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3)
Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3)
Beta Map Achievement (1) Ratings Achievement (1) Tournament Achievement (8) General Achievement (7) Clan Achievement (12)
Tournament Contribution (1) General Contribution (7)

Re: Conquer Club API

Postby sherkaner on Sun Aug 08, 2010 2:45 pm

Foxglove wrote:
sherkaner wrote:Depends, not in all cases. For instance I think the Game Link-plugin actually uses the fact that you're already logged in to retrieve the game pages and use the info from those pages, which looks like what you're planning to do. But that's quite heavy, so it's not advised.


Once the API provides the required information, there will be no need to do it the "heavy" way anymore. But for now... that's the only way to allow the script to work properly!

:) Yeah, obviously you have a valid point. And I use and love the script btw (except when I get on a forum page with 100+ games I'm not interested in).
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Conquer Club API

Postby barrycarter on Tue Aug 24, 2010 3:02 pm

Can you get game start time from the API? The events field doesn't include "game initialized" and I can't see it anywhere else.
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am
Medals: 7
Standard Achievement (2) Doubles Achievement (2) Manual Troops Achievement (2) General Achievement (1)

Re: Conquer Club API

Postby barrycarter on Tue Aug 24, 2010 3:04 pm

BTW, I'm working on a greasemonkey script:

http://github.com/barrycarter/bcapps/bl ... ub-game.js

that scrapes current data from a game page and posts it to my website, where it gets logged but nothing else happens.

If anyone's interested in helping out, please ping me, thanks.
Sergeant 1st Class barrycarter
 
Posts: 51
Joined: Sat Jul 31, 2010 10:42 am
Medals: 7
Standard Achievement (2) Doubles Achievement (2) Manual Troops Achievement (2) General Achievement (1)

Re: Conquer Club API

Postby Qyu on Tue Nov 16, 2010 8:10 am

just one thing, in your 'how to' here :

chipv wrote:[...]
So let's look at a typical output.

Using
Code: Select all
http://www.conquerclub.com/api.php?p1un=chipv

Root tag is <api>
Code: Select all
<api>
   <page>1 of 2</page>
   <games total="244">

[...]


you forget in the url the get var 'mode=gamelist'
so you don't have gamelist but the rules of the API
Image
User avatar
Colonel Qyu
 
Posts: 113
Joined: Wed May 30, 2007 6:51 am
Location: Under my helmet
Medals: 71
Standard Achievement (3) Doubles Achievement (4) Triples Achievement (4) Quadruples Achievement (4) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (1) Speed Achievement (2) Teammate Achievement (3) Random Map Achievement (3) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (4) General Achievement (1) Clan Achievement (15)
General Contribution (1)

Re: Conquer Club API

Postby chipv on Sun Dec 19, 2010 5:39 pm

The head post needs updating will do it now.

Adding requests

1. Allow search by dates. Add 2 parameters from and to, choose whatever date format you want.
2. Indicate blocked players in freestyle status. (Now reads Ready)

Maybe 2 has already been asked for.
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Conquer Club API

Postby kruthar on Tue Apr 09, 2013 12:16 pm

Hi all -

Please let me know if this functionality exists somewhere but I am looking for the turn number for all of the events that get returned on game objects, currently they only come with a timestamp, which really isn't all that useful unless you are doing real-time monitoring. This would allow for some interesting player/game analysis that I plan on doing.

Can I formally request that all events for a game object come with a turn number? Thanks a whole bunch.
Sergeant 1st Class kruthar
 
Posts: 3
Joined: Thu Apr 07, 2011 1:16 am
Medals: 10
Standard Achievement (2) Manual Troops Achievement (1) Fog of War Achievement (2) Trench Warfare Achievement (1) Speed Achievement (1)
Ratings Achievement (3)

Re: Conquer Club API

Postby ender516 on Thu Apr 11, 2013 6:47 pm

If you need a quick workaround, look for the events that say "Incrementing to round n".
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Conquer Club API

Postby Qyu on Mon Mar 10, 2014 5:04 am

The mode=group doesn't work for every clan.
Only the older one works fine (ex : http://www.conquerclub.com/api.php?mode=group&g=193056)
but not for the most recent (ex : http://www.conquerclub.com/api.php?mode=group&g=193216)
Image
User avatar
Colonel Qyu
 
Posts: 113
Joined: Wed May 30, 2007 6:51 am
Location: Under my helmet
Medals: 71
Standard Achievement (3) Doubles Achievement (4) Triples Achievement (4) Quadruples Achievement (4) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (1) Speed Achievement (2) Teammate Achievement (3) Random Map Achievement (3) Cross-Map Achievement (3)
Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (4) General Achievement (1) Clan Achievement (15)
General Contribution (1)

Re: Conquer Club API

Postby Hugo Estrada on Fri Mar 28, 2014 10:45 am

Can you create games and invite people with the api? It seems like you can't, but I am not sure how up to date the documentation is.
Private 1st Class Hugo Estrada
 
Posts: 10
Joined: Thu Jan 22, 2009 11:36 am
Medals: 10
Standard Achievement (1) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Fog of War Achievement (1)
Trench Warfare Achievement (1) Teammate Achievement (1) Cross-Map Achievement (2) Ratings Achievement (1)

Re: Conquer Club API

Postby dgz345 on Fri Mar 28, 2014 4:17 pm

nope you can not create games with the api. what i know of. but you can find ppl and you can create games with the link you get from creating games

http://www.conquerclub.com/player.php?n ... mit=Create

will create a 1v1 on AYBA.. and invite me

show
User avatar
Sergeant 1st Class dgz345
Team Leader
Team Leader
 
Posts: 821
Joined: Thu Oct 07, 2010 10:53 am
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (1)
Fog of War Achievement (3) Trench Warfare Achievement (2) Speed Achievement (1) Teammate Achievement (1) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (4) Tournament Achievement (2) General Achievement (4)
Clan Achievement (3) Challenge Achievement (2)

Re: Conquer Club API

Postby MrBenn on Tue Apr 29, 2014 4:15 pm

This is an excellent guide... The first post needs updating to add (P)olymorphic to the game type section

Code: Select all
gt - game type (S)tandard, (C)Terminator, (A)ssassin, (P)olymorphic, (D)oubles, (T)riples or (Q)uadruples
Image
PB: 2661 | He's blue... If he were green he would die | No mod would be stupid enough to do that
User avatar
Lieutenant MrBenn
Retired Team Member
 
Posts: 7050
Joined: Wed Nov 21, 2007 9:32 am
Location: Off Duty
Medals: 67
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Nuclear Spoils Achievement (2) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (2) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (2)
General Achievement (6) Clan Achievement (1) Map Contribution (7) Tournament Contribution (2) General Contribution (15)

Previous

Return to Tools Development

Who is online

Users browsing this forum: No registered users

Login