<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>API</title>
    <description>Discuss the Card Hunter API here</description>
    <pubDate>Thu, 18 Jun 2026 14:49:23 +0000</pubDate>
    <lastBuildDate>Thu, 18 Jun 2026 14:49:23 +0000</lastBuildDate>
    <generator>Card Hunter</generator>
    <link>http://forums.cardhunter.com/forums/api.16/</link>
    <atom:link rel="self" type="application/rss+xml" href="http://forums.cardhunter.com/forums/api.16/index.rss"/>
    <item>
      <title>Please see my "Regarding the API and Chat" post.</title>
      <pubDate>Sat, 23 Oct 2021 03:11:27 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/please-see-my-regarding-the-api-and-chat-post.12435/</link>
      <guid>http://forums.cardhunter.com/threads/please-see-my-regarding-the-api-and-chat-post.12435/</guid>
      <author>invalid@example.com (battlezoby)</author>
      <dc:creator>battlezoby</dc:creator>
      <content:encoded><![CDATA[Please see my &quot;Regarding the API and Chat&quot; post curently at position #9 in: <br />
<a href="https://forums.cardhunter.com/threads/an-emphatic-time-sensitive-suggestion-and-some-supporting-details.12393/#post-139995" class="internalLink">https://forums.cardhunter.com/threa...nd-some-supporting-details.12393/#post-139995</a>]]></content:encoded>
    </item>
    <item>
      <title>Battles after_time doesn't work</title>
      <pubDate>Fri, 13 Aug 2021 11:01:55 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/battles-after_time-doesnt-work.12377/</link>
      <guid>http://forums.cardhunter.com/threads/battles-after_time-doesnt-work.12377/</guid>
      <author>invalid@example.com (compasses)</author>
      <dc:creator>compasses</dc:creator>
      <content:encoded><![CDATA[Hi, <br />
<br />
I&#039;m trying to get all the battles after 2021-08-09 and I got the error: <br />
<b>&gt;&gt; curl &#039;<a href="http://api.cardhunter.com/battles?after_time=2021-08-09T00%3A00%3A00.000Z" target="_blank" class="externalLink" rel="nofollow">http://api.cardhunter.com/battles?after_time=2021-08-09T00:00:00.000Z</a>&#039; -o battles.json<br />
<br />
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br />
<br />
                                Dload  Upload   Total   Spent    Left  Speed<br />
<br />
100   393  100   393    0     0      3      0  0:02:11  0:02:00  0:00:11   106</b><br />
<br />
<br />
<br />
<b>&gt;&gt; cat battles.json <br />
<br />
&lt;!DOCTYPE HTML PUBLIC...</b><br />
<br />
<a href="http://forums.cardhunter.com/threads/battles-after_time-doesnt-work.12377/" class="internalLink">Battles after_time doesn&#039;t work</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>[BUG] [QUESTION] API vs console logs</title>
      <pubDate>Fri, 08 Dec 2017 23:40:59 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/bug-question-api-vs-console-logs.11103/</link>
      <guid>http://forums.cardhunter.com/threads/bug-question-api-vs-console-logs.11103/</guid>
      <author>invalid@example.com (ParodyKnaveBob)</author>
      <dc:creator>ParodyKnaveBob</dc:creator>
      <content:encoded><![CDATA[Wait. Wait wait wait.<br />
<br />
A console battle log&#039;s RoomID is different from the API&#039;s battle_id ??<br />



<div class="bbCodeBlock bbCodeQuote">
	<aside>
		
		<blockquote class="quoteContainer"><div class="quote"><span style="font-size: 22px"><b>Proxy Error</b></span><br />
The proxy server received an invalid response from an upstream server.<br />
The proxy server could not handle the request <i><a href="http://api.cardhunter.com/battles/4661" target="_blank" class="externalLink" rel="nofollow"><span style="text-decoration: underline">GET /battles/4661</span></a></i>.<br />
<br />
Reason: <b>Error reading from remote server</b></div><div class="quoteExpand">Click to expand...</div></blockquote>
	</aside>
</div>In that case, what <b>is</b> the console log&#039;s RoomID?<br />
And more pertinently, is there no way to...<br />
<br />
<a href="http://forums.cardhunter.com/threads/bug-question-api-vs-console-logs.11103/" class="internalLink">[BUG] [QUESTION] API vs console logs</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>[Request] Modest API or more logs for prospective CH utilities</title>
      <pubDate>Sun, 02 Jul 2017 00:38:01 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/request-modest-api-or-more-logs-for-prospective-ch-utilities.10908/</link>
      <guid>http://forums.cardhunter.com/threads/request-modest-api-or-more-logs-for-prospective-ch-utilities.10908/</guid>
      <author>invalid@example.com (Pyrious)</author>
      <dc:creator>Pyrious</dc:creator>
      <content:encoded><![CDATA[I am and I have been interested in making various CH-related utilities, but there have been some barriers to their creation.<br />
<br />
<br />
<b>Utility</b>: Battle reconstructor / replayer that works by parsing verbose logs.<br />
<br />
<b>Issue</b>: Verbose logs are only messages sent from server to client, so half the game is missing. It seems possible to have a 3rd party spectate and get the whole picture, but that&#039;s not convenient and I&#039;ve shelved the progress for now.<br />
<br />
<b>Solution</b>: Include messages sent...<br />
<br />
<a href="http://forums.cardhunter.com/threads/request-modest-api-or-more-logs-for-prospective-ch-utilities.10908/" class="internalLink">[Request] Modest API or more logs for prospective CH utilities</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Discuss the Card Hunter API here</title>
      <pubDate>Mon, 20 Feb 2017 20:01:00 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/discuss-the-card-hunter-api-here.4811/</link>
      <guid>http://forums.cardhunter.com/threads/discuss-the-card-hunter-api-here.4811/</guid>
      <author>invalid@example.com (Jon)</author>
      <dc:creator>Jon</dc:creator>
      <content:encoded><![CDATA[What&#039;s the Card Hunter API? Read all about it here:<br />
 <br />
<a href="http://www.cardhunter.com/2013/12/card-hunter-api-is-ready/" target="_blank" class="externalLink" rel="nofollow">http://www.cardhunter.com/2013/12/card-hunter-api-is-ready/</a>]]></content:encoded>
      <slash:comments>12</slash:comments>
    </item>
    <item>
      <title>Characters and Items API doesn't work</title>
      <pubDate>Mon, 04 Apr 2016 10:21:16 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/characters-and-items-api-doesnt-work.5398/</link>
      <guid>http://forums.cardhunter.com/threads/characters-and-items-api-doesnt-work.5398/</guid>
      <author>invalid@example.com (illkkill)</author>
      <dc:creator>illkkill</dc:creator>
      <content:encoded><![CDATA[I&#039;m trying to make a website that calculates your win rate based on what character you are using.<br />
When I try to access api.cardhunter.com/battles, it works fine (although really slow).<br />
When I try to access api.cardhunter.com/characters though, the server returns proxy error.<br />
I tried api.cardhunter.com/items just to test whether the api works, and the server returned proxy error too.<br />
What is the problem?<br />
Thanks]]></content:encoded>
      <slash:comments>7</slash:comments>
    </item>
    <item>
      <title>How to retrieve guild information</title>
      <pubDate>Fri, 25 Sep 2015 22:30:36 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/how-to-retrieve-guild-information.8185/</link>
      <guid>http://forums.cardhunter.com/threads/how-to-retrieve-guild-information.8185/</guid>
      <author>invalid@example.com (Justicar Judicator)</author>
      <dc:creator>Justicar Judicator</dc:creator>
      <content:encoded><![CDATA[This may be a dumb question... but how do I retrieve guild information from the api ? Ex. How many people are in the guild, who they are, etc.. <br />
<br />
I don&#039;t see any document regarding guilds on the test-api.cardhunter.com page.<br />
<br />
Thanks for your help]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>scenario fingerprints</title>
      <pubDate>Mon, 13 Jul 2015 01:44:54 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/scenario-fingerprints.7432/</link>
      <guid>http://forums.cardhunter.com/threads/scenario-fingerprints.7432/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[I gave up trying to properly fingerprint scenarios outside of Flash.  Any chance of getting an API call to spit out the fingerprint when a scenario is POST&#039;ed?]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>data dump</title>
      <pubDate>Wed, 26 Nov 2014 23:16:07 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/data-dump.6672/</link>
      <guid>http://forums.cardhunter.com/threads/data-dump.6672/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[<a href="http://forums.cardhunter.com/members/4792/" class="username" data-user="4792, @Flaxative">@Flaxative</a> <a href="http://forums.cardhunter.com/members/2/" class="username" data-user="2, @Farbs">@Farbs</a> - Since the characters and items API don&#039;t work on live, is there any chance we could get a plaintext dump of the tables from the last month or so?]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>spider API framework</title>
      <pubDate>Tue, 13 May 2014 19:30:07 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/spider-api-framework.5858/</link>
      <guid>http://forums.cardhunter.com/threads/spider-api-framework.5858/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[Here&#039;s another PHP framework for processing the CardHunter API.  Data is stored ina JSON text file rather than a database, so it&#039;s not appropriate for applications which require access to a complete history of battle data.  (Those applications should use <a href="http://forums.cardhunter.com/members/2/" class="username" data-user="2, @Farbs">@Farbs</a>&#039; <a href="http://forums.cardhunter.com/threads/a-php-battle-scraper.4924/" class="internalLink">framework</a>.)<br />
<br />
Essentially, this framework passes battle data in a processing method which operates on that battle alone, plus some small...<br />
<br />
<a href="http://forums.cardhunter.com/threads/spider-api-framework.5858/" class="internalLink">spider API framework</a>]]></content:encoded>
    </item>
    <item>
      <title>[API Suggestion] Collection Size, Gold Amount</title>
      <pubDate>Thu, 17 Apr 2014 17:35:38 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/api-suggestion-collection-size-gold-amount.5601/</link>
      <guid>http://forums.cardhunter.com/threads/api-suggestion-collection-size-gold-amount.5601/</guid>
      <author>invalid@example.com (Flaxative)</author>
      <dc:creator>Flaxative</dc:creator>
      <content:encoded><![CDATA[I&#039;d like to be able to get the following info for a player via API<br />
• Collection size (# of unique items they have in inventory)<br />
• Gold amount held<br />
<br />
(I want to be able to show off the Sorcs&#039; collective treasure hoard!)]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>[Bug/Suggestion] characters API should include size of group characters</title>
      <pubDate>Wed, 16 Apr 2014 19:40:30 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/bug-suggestion-characters-api-should-include-size-of-group-characters.5598/</link>
      <guid>http://forums.cardhunter.com/threads/bug-suggestion-characters-api-should-include-size-of-group-characters.5598/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[The characters API (in addition to being defunct on the live server) currently doesn&#039;t expose the size of a character group, which is useful for evaluating custom scenarios.<br />
<br />
------------ random musing below ----------------------<br />
<br />
A little bit of carrot for the devs... it&#039;s possible for a third party to implement a rather fancy guild warfare meta-game given the following:<br />
<br />
- character group sizes<br />
- scenario hash (already implemented on test)<br />
- character data from live server (already fixed...<br />
<br />
<a href="http://forums.cardhunter.com/threads/bug-suggestion-characters-api-should-include-size-of-group-characters.5598/" class="internalLink">[Bug/Suggestion] characters API should include size of group characters</a>]]></content:encoded>
    </item>
    <item>
      <title>[Suggestion] additional player data</title>
      <pubDate>Fri, 21 Mar 2014 02:50:43 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/suggestion-additional-player-data.5449/</link>
      <guid>http://forums.cardhunter.com/threads/suggestion-additional-player-data.5449/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[Musing about the requirements for hot-update forum badges (where the image is periodically regenerated on a server)...<br />
 <br />
Can the user profile (or some other hook) list:<br />
- campaign completion flags<br />
- MP ELO rating<br />
- inventory (&lt;-- this one is probably way too much, but I can still ask, right? ^_^)<br />
 <br />
Looking forward to the Big API Update whenever it rolls out!]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>[Suggestion] Achievements</title>
      <pubDate>Sun, 09 Mar 2014 17:44:31 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/suggestion-achievements.5413/</link>
      <guid>http://forums.cardhunter.com/threads/suggestion-achievements.5413/</guid>
      <author>invalid@example.com (Kalin)</author>
      <dc:creator>Kalin</dc:creator>
      <content:encoded><![CDATA[Right now, all you can actually do in the game is fight battles, and each battle can only be won or lost.  There are several different ways to win a battle, but the reward is always the same no matter which was used.  I&#039;d like to see a special reward or badge for winning battles the hard way, like beating the first map of Cockroaches without earning any points, or the second map without killing Morvin.<br />
 <br />
I&#039;m posting this here because it&#039;s already sort of possible to have achievements using...<br />
<br />
<a href="http://forums.cardhunter.com/threads/suggestion-achievements.5413/" class="internalLink">[Suggestion] Achievements</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Any more API feedback?</title>
      <pubDate>Mon, 27 Jan 2014 22:16:27 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/any-more-api-feedback.5148/</link>
      <guid>http://forums.cardhunter.com/threads/any-more-api-feedback.5148/</guid>
      <author>invalid@example.com (Farbs)</author>
      <dc:creator>Farbs</dc:creator>
      <content:encoded><![CDATA[Tess is doing a review of the API right now, so if you have any further feedback you&#039;d like to see incorporated into that now is a great time to post it!]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>A PHP battle scraper</title>
      <pubDate>Mon, 30 Dec 2013 04:04:04 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/a-php-battle-scraper.4924/</link>
      <guid>http://forums.cardhunter.com/threads/a-php-battle-scraper.4924/</guid>
      <author>invalid@example.com (Farbs)</author>
      <dc:creator>Farbs</dc:creator>
      <content:encoded><![CDATA[Hi,<br />
 <br />
I&#039;ve been working on a php script that read all battles from the Card Hunter API and send them to handler functions. The idea is to run this regularly via a cron job, which would ensure that each battle is sent over to the handlers once and only once.  The handler functions can then do things like count wins, respond to matches between rivals, notify you when particular players are online, or even record wins for each side on particular maps to see whether they&#039;re balanced. There&#039;s...<br />
<br />
<a href="http://forums.cardhunter.com/threads/a-php-battle-scraper.4924/" class="internalLink">A PHP battle scraper</a>]]></content:encoded>
    </item>
    <item>
      <title>[bug] /items battle filter takes wrong battle ID parameter</title>
      <pubDate>Sun, 22 Dec 2013 22:43:27 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/bug-items-battle-filter-takes-wrong-battle-id-parameter.4869/</link>
      <guid>http://forums.cardhunter.com/threads/bug-items-battle-filter-takes-wrong-battle-id-parameter.4869/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[This works:<br />
<a href="http://test-api.cardhunter.com/items?battleId=180" target="_blank" class="externalLink" rel="nofollow">http://test-api.cardhunter.com/items?battleId=180</a><br />
 <br />
This does not:<br />
<a href="http://test-api.cardhunter.com/items?battle_id=180" target="_blank" class="externalLink" rel="nofollow">http://test-api.cardhunter.com/items?battle_id=180</a><br />
 <br />
For comparison, this is the working /characters url:<br />
<a href="http://test-api.cardhunter.com/characters?battle_id=180" target="_blank" class="externalLink" rel="nofollow">http://test-api.cardhunter.com/characters?battle_id=180</a>]]></content:encoded>
    </item>
    <item>
      <title>hourly limits / better filtering</title>
      <pubDate>Sat, 21 Dec 2013 05:39:17 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/hourly-limits-better-filtering.4854/</link>
      <guid>http://forums.cardhunter.com/threads/hourly-limits-better-filtering.4854/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[(NB: thanks so much for putting out an API!  I know it&#039;s a just side project, and it&#039;s hard to design a good API, so the following is just some helpful commentary after trying to do something complicated with the data...)<br />
 <br />
Quick experimentation with the test api has shown that there needs to be either a higher request limit or better server-side filtering.<br />
 <br />
Basically, the difficulty is that one has to submit a bunch of requests to the characters (C) or items (I) table in order to have...<br />
<br />
<a href="http://forums.cardhunter.com/threads/hourly-limits-better-filtering.4854/" class="internalLink">hourly limits / better filtering</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>We killed it :(</title>
      <pubDate>Fri, 20 Dec 2013 21:35:21 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/we-killed-it.4816/</link>
      <guid>http://forums.cardhunter.com/threads/we-killed-it.4816/</guid>
      <author>invalid@example.com (neoncat)</author>
      <dc:creator>neoncat</dc:creator>
      <content:encoded><![CDATA[<div class="bbCodeBlock bbCodeCode">
	<div class="type">Code:</div>
	<pre>Proxy Error
 
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /items.
 
Reason: Error reading from remote server</pre>
</div>]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>Convert `itemID` to Game Data about the Item</title>
      <pubDate>Fri, 20 Dec 2013 20:21:13 +0000</pubDate>
      <link>http://forums.cardhunter.com/threads/convert-itemid-to-game-data-about-the-item.4820/</link>
      <guid>http://forums.cardhunter.com/threads/convert-itemid-to-game-data-about-the-item.4820/</guid>
      <author>invalid@example.com (burtlo)</author>
      <dc:creator>burtlo</dc:creator>
      <content:encoded><![CDATA[<b>How can I convert an <i>itemId </i>into details about the item?</b><br />
 <br />
Currently the <i>/items </i>request returns details about the items used by characters for the players. The data returned is `itemId`. I would like to convert that static game data id to the wiki page <a href="http://wiki.cardhuntria.com/wiki/Items/Azan%27s_Icy_Bulwark" target="_blank" class="externalLink" rel="nofollow">http://wiki.cardhuntria.com/wiki/Items/Azan&#039;s_Icy_Bulwark</a> or raw data describing the item.]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
  </channel>
</rss>
