<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://war.app/index.php?action=history&amp;feed=atom&amp;title=Get_mod_performance_API</id>
	<title>Get mod performance API - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://war.app/index.php?action=history&amp;feed=atom&amp;title=Get_mod_performance_API"/>
	<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Get_mod_performance_API&amp;action=history"/>
	<updated>2026-04-18T19:56:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://war.app/wiki/index.php?title=Get_mod_performance_API&amp;diff=5470&amp;oldid=prev</id>
		<title>Fizzer: Created page with &quot;The &#039;&#039;&#039;get mod performance API&#039;&#039;&#039; can be used by mod creators to see how well their mod is performing.  Mod creators should strive to make these numbers as low as possible...&quot;</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Get_mod_performance_API&amp;diff=5470&amp;oldid=prev"/>
		<updated>2023-02-04T07:40:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;#039;&amp;#039;&amp;#039;get mod performance API&amp;#039;&amp;#039;&amp;#039; can be used by &lt;a href=&quot;/wiki/Mod&quot; class=&quot;mw-redirect&quot; title=&quot;Mod&quot;&gt;mod&lt;/a&gt; creators to see how well their mod is performing.  Mod creators should strive to make these numbers as low as possible...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;get mod performance API&amp;#039;&amp;#039;&amp;#039; can be used by [[mod]] creators to see how well their mod is performing.  Mod creators should strive to make these numbers as low as possible.&lt;br /&gt;
&lt;br /&gt;
This only returns data from the last 30 days, and only returns server-side hooks (client side hooks are executed on the client and do not keep track of their performance).&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
Issue a GET request to https://www.warzone.com/API/GetModPerformance?ModID=XXX&amp;amp;APIToken=YYY&lt;br /&gt;
&lt;br /&gt;
Where XXX is the ID of your mod, which can be found in your mod developers console.  APIToken can be retrieved using the [[Get API Token API]].  You may only enter the ID of a mod you own.  The API token is optional if you&amp;#039;re executing this via a browser where you&amp;#039;re already signed in to Warzone.com, but it&amp;#039;s required if you execute this in any other context.&lt;br /&gt;
&lt;br /&gt;
==Results==&lt;br /&gt;
&lt;br /&gt;
You will see JSON returned like the following:&lt;br /&gt;
&lt;br /&gt;
  {&lt;br /&gt;
    &amp;quot;PerfData&amp;quot; : [ {&lt;br /&gt;
      &amp;quot;Date&amp;quot; : 1675214052163,&lt;br /&gt;
      &amp;quot;MessageType&amp;quot; : &amp;quot;SendOrders&amp;quot;,&lt;br /&gt;
      &amp;quot;GameID&amp;quot; : 32892576,&lt;br /&gt;
      &amp;quot;Messages&amp;quot; : {&amp;quot;Server_AdvanceTurn_Order&amp;quot;: {&amp;quot;spent&amp;quot;: 5, &amp;quot;times&amp;quot;: 189}}&lt;br /&gt;
    } ]&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
Each object in PerfData represents one performance event. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Date&amp;#039;&amp;#039;&amp;#039; tells you when the event took place.  It&amp;#039;s encoded as the number of milliseconds since Jan 1st 1970.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;MessageType&amp;#039;&amp;#039;&amp;#039; is the type of message from the client that resulted in your mod being invoked.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;GameID&amp;#039;&amp;#039;&amp;#039; is the ID of the multi-player game that is assocated with this event.  You can view it by opening your browser to https://www.warzone.com/MultiPlayer?GameID=XXX&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Messages&amp;#039;&amp;#039;&amp;#039; lists out all functions of your mod that were invoked.  &amp;#039;&amp;#039;&amp;#039;times&amp;#039;&amp;#039;&amp;#039; tells you how many times this message was invoked, and &amp;#039;&amp;#039;&amp;#039;spent&amp;#039;&amp;#039;&amp;#039; tells you how many total milliseconds were spent over all these invocations.  To get the average time per call, you can divide &amp;#039;&amp;#039;&amp;#039;spent&amp;#039;&amp;#039;&amp;#039; by &amp;#039;&amp;#039;&amp;#039;times&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
	&lt;br /&gt;
[[Category:API]]&lt;/div&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
</feed>