4. XML API specification.

Download complete information about all templates in a single zipped XML file: http://www.templatemonster.com/webapi/xml/t_info.zip

4.1. t_info.zip.

URL::

http://www.templatemonster.com/webapi/xml/t_info.zip

Description:

Download complete information about all templates in a single zipped XML file.

Status:

0.1

Synopsis:

http://www.templatemonster.com/webapi/xml/t_info.zip

Parameters:

No

Response:

XML file contains an XML-encoded array. The array consists of the following arrays:

FieldTypeDescription
idintegeran item number of the template
stateintegerequals 0 for hidden templates. Equals 1 for visible templates. Equals 2 for exclusively sold templates.
priceintegera regular price of the template (in USD)
exc_priceintegeran exclusive price of the template (in USD)
inserted_datedatedate of addition in YYYY-MM-DD format
downloadsintegerthe number of downloads
template_typestringa type of the template
update_datedateThe date of the latest update in the format YYYY-MM-DD hh:mm:ss
is_flashinteger (1/0) 1-true1 for Flash Intro templates
is_adultinteger (1/0) 1-true1 for Adult templates
<width>980px</width> Width of the template in pixels
sources_available_listarrayThe list of IDs corresponding to the node <sources></sources> of the directories archive t_info_dir.zip. The list contains IDs of the source formats included into redistributable package of the template.
screenshots_listarrayAn array of all the screenshots and time of the screenshot modification. Full URL is displayed. Contains small_preview and main_preview arrays that have the 1 value for the screenshots of the small template preview and main template preview (the image showing on roll-over) accordingly.
software_required_listarrayThe list of IDs corresponding to the node <softwares></softwares> of the directories archive t_info_dir.zip. The list contains IDs of the software needed for editing and changing sources of the template.
authorintegera template author
is_full_siteinteger (1/0) 1-true1 for Full Site templates
is_real_sizeinteger (1/0) 1-true1 if a "Real Size" screenshot exists
screenshots_listarrayan array of all screenshots and screenshots file modification time. Full URL is displayed.
keywordsstringa list of all keywords associated with a particular template (space separated).
stylesarrayan array of all styles of a particular template
categoriesarrayan array of all categories of a particular template
sourcesstringinformation about sources available for this template( depricated).
descriptionstringa description of the template.
software_requiredstringa software required for editing the template (depricated).
pagesarrayan array of all pages of the template. Each page consists of the name of the page and the list of screenshots. Each screenshot consists of the screenshot name and the URL. Full URL is displayed.
packagesintThe number of the package to which the template belongs.

Response example:

<?xml version="1.0" encoding="utf-8" ?>
<templates>
  <template id="21000">
  <id>21000</id>
  <state>1</state>
  <price>140</price>
  <exc_price>1100</exc_price>
  <inserted_date>2008-09-15 05:15:02</inserted_date>
  <update_date>2008-10-15 04:33:57</update_date>
  <downloads>0</downloads>
  <template_type>
    <type_id>16</type_id>
    <type_name>ZenCart Templates</type_name>
  </template_type>
  <is_flash>0</is_flash>
  <is_adult>0</is_adult>
  <width>766px</width>
  <author>
    <author_id>85</author_id>
    <author_nick>Delta</author_nick>
  </author>
  <package>
    <package_id>132</package_id>
  </package>
  <is_full_site>0</is_full_site>
  <is_real_size>1</is_real_size>
  <screenshots_list>
    <screenshot>
       <uri>http://images.templatemonster.com/screenshots/21000/21000-banner.jpg</uri>
       <filemtime>2008-08-28 08:08:20</filemtime>
    </screenshot>
    <screenshot>
       <uri>http://images.templatemonster.com/screenshots/21000/21000-m.jpg</uri>
       <filemtime>2008-08-28 08:08:20</filemtime>
       <small_preview>1</small_preview>
    </screenshot>
    <screenshot>
       <uri>http://images.templatemonster.com/screenshots/21000/21000-rs.jpg</uri>
       <filemtime>2008-08-28 08:08:20</filemtime>
    </screenshot>
    <screenshot>
       <uri>http://images.templatemonster.com/screenshots/21000/21000-z-b.jpg</uri>
       <filemtime>2008-08-28 08:08:20</filemtime>
       <main_preview>1</main_preview>
    </screenshot>
    <screenshot>
       <uri>http://images.templatemonster.com/screenshots/21000/21000-z-b.jpg</uri>
       <filemtime>2008-08-28 08:08:203</filemtime>
       <main_preview>1</main_preview>
    </screenshot>
    <screenshot>
       <uri>http://images.templatemonster.com/screenshots/21000/21000-z-html.html</uri>
       <filemtime>2008-08-28 08:08:20</filemtime>
    </screenshot>
  </screenshots_list>
  <keywords>photo video store online shop camera products electronics portable monitor cable system technology processor installation hardware memory cards digital storage utilities panasonic reviews canon powershot bestsellers sony flash raynox lenses prices buy</keywords>
  <styles>
     <style>
        <style_id>16</style_id>
        <style_name>Neutral</style_name>
     </style>
  </styles>
  <categories>
    <category>
      <category_id>13</category_id>
      <category_name>Neutral</category_name>
    </category>
    <category>
      <category_id>40</category_id>
      <category_name>Art Photography</category_name>
    </category>
    <category>
      <category_id>42</category_id>
      <category_name>Online store/shop</category_name>
    </category>
    <category>
      <category_id>50</category_id>
      <category_name>Electronics</category_name>
    </category>
    <category>
      <category_id>78</category_id>
      <category_name>Zero Downloads</category_name>
    </category>
    <category>
      <category_id>110</category_id>
      <category_name>Zen cart Templates</category_name>
    </category>
  </categories>
  <sources_available_list>
   <source>
    <source_id>3</source_id>
   </source>
   <source>
    <source_id>12</source_id>
   </source>
  </sources_available_list>
  <sources>.PSD; &lt;br&gt; .PHP;</sources>
  <description>;</description>
  <software_required_list>
    <software>
      <software_id>29</software_id>
    </software>
    <software>
      <software_id>30</software_id>
    </software>
    <software>
      <software_id>64</software_id>
    </software>
    <software>
      <software_id>8</software_id>
    </software>
    <software>
      <software_id>26</software_id>
    </software>
    <software>
      <software_id>53</software_id>
    </software>
  </software_required_list>
  <software_required>PHP 4.3.2 or higher (PHP 4.4.x for optimal performance); Apache 1.3.x and MySQL 3.2.x or higher; Zen Cart 1.3.8 only;  Adobe Photoshop CS+; Adobe Dreamweaver (or any php-editor); For uncompressing a template ZIP package:WinZip 9+ (Windows);Stuffit Expander 10+ (Mac); </software_required>
  <pages>
    <page>
      <name>Main</name>
      <screenshots>
        <scr>
         <description>REAL SIZE SCREENSHOT</description>
         <uri>http://images.templatemonster.com/screenshots/21000/21000-rs.jpg</uri>
         <scr_type_id>0</scr_type_id>
         <width>0</width>
         <height>0</height>
         <href></href>
       </scr>
       <scr>
         <description/>
         <uri>http://images.templatemonster.com/screenshots/21000/21000-z-html.html</uri>
         <scr_type_id>127</scr_type_id>
         <width>430</width>
         <height>60</height>
         <href></href>
       </scr>
       <scr>
         <description>Zen-cart Main page preview</description>
         <uri>http://images.templatemonster.com/screenshots/21000/21000-z-b.jpg</uri>
         <scr_type_id>122</scr_type_id>
         <width>430</width>
         <height>586</height>
         <href></href>
       </scr>
      </screenshots>
    </page>
   </pages>
  </template>
 </templates>
 

4.2. template_updates.php.

The script allows to download complete information about templates that were updated during a certain period.

URL:

http://www.templatemonster.com/webapi/template_updates.php

Description:

Returns XML with information about templates that were updated during a certain period.

Status:

0.1

Synopsis:

http://www.templatemonster.com/webapi/template_updates.php?from=<from_date_time>&to=<to_date_time>

Parameters:

ParameterTypeDescription
fromdate & time (19 chars length)Date & time in "YYYY-MM-DD hh:mm:ss" format
todate & time ( 19 chars length)Date & time in "YYYY-MM-DD hh:mm:ss" format

Response:

XML file contains an XML-encoded array. The array consists of the following arrays:

FieldTypeDescription
idintegeran item number of the template
stateintegerequals 0 for hidden templates. Equals 1 for visible templates. Equals 2 for exclusively sold templates.
priceintegera regular price of the template (in USD)
exc_priceintegeran exclusive price of the template (in USD)
inserted_datedatedate of addition in YYYY-MM-DD format
downloadsintegerthe number of downloads
template_typestringa type of the template
update_datedateThe date of the latest update in the format YYYY-MM-DD hh:mm:ss
is_flashinteger (1/0) 1-true1 for Flash Intro templates
is_adultinteger (1/0) 1-true1 for Adult templates
<width>980px</width> Width of the template in pixels
sources_available_listarrayThe list of IDs corresponding to the node <sources></sources> of the directories archive t_info_dir.zip. The list contains IDs of the source formats included into redistributable package of the template.
screenshots_listarrayAn array of all the screenshots and time of the screenshot modification. Full URL is displayed. Contains small_preview and main_preview arrays that have the 1 value for the screenshots of the small template preview and main template preview (the image showing on roll-over) accordingly.
software_required_listarrayThe list of IDs corresponding to the node <softwares></softwares> of the directories archive t_info_dir.zip. The list contains IDs of the software needed for editing and changing sources of the template.
authorintegera template author
packagesintThe number of the package to which the template belongs.
is_full_siteinteger (1/0) 1-true1 for Full Site templates
is_real_sizeinteger (1/0) 1-true1 if a "Real Size" screenshot exists
screenshots_listarrayan array of all screenshots and screenshots file modification time. Full URL is displayed.
keywordsstringa list of all keywords associated with a particular template (space separated).
stylesarrayan array of all styles of a particular template
categoriesarrayan array of all categories of a particular template
sourcesstringinformation about sources available for this template( depricated).
descriptionstringa description of the template.
software_requiredstringa software required for editing the template (depricated).
pagesarrayan array of all pages of the template. Each page consists of the name of the page and the list of screenshots. Each screenshot consists of the screenshot name and the URL. Full URL is displayed.

Response example:

http://www.templatemonster.com/webapi/template_updates.php?from=2005-07-16%2022:00:00&to=2005-07-17%2000:00:00

4.3. template_xml.php.

Receive full template info in xml format by the template number.

URL:

http://www.templatemonster.com/webapi/template_xml.php

Description:

Returns xml with the info about the requested template- template_number.

Synopsis:

http://www.templatemonster.com/webapi/template_xml.php?template_number=<template_number>

Parameters:

ParameterTypeDescription
template_numberintegerTemplate number

Response:

XML file contains an XML-encoded array. The response format is similar to template_updates.php and t_info.xml.

4.4. t_info_dir.zip.

Directories Archive.

URL:

http://www.templatemonster.com/webapi/xml/t_info_dir.zip

Description:

Download full info about directories in XML format. Contains sources, softwares, categories and authors notes packed into .zip archive.

Synopsis:

http://www.templatemonster.com/webapi/xml/t_info_dir.zip

Parameters:

No

Response:

FieldTypeDescription
sourcesarrayList of sources included with the template, value-name pairs format.
softwaresarrayList of software required for template customization, value-name pairs format.
categoriesarrayList of template categories, value-name pairs format.
authorsarrayList of the template authors, value-name pairs format.
packagesarrayList of the packages that templates belong to, value-name pairs format.

Response example:

http://www.templatemonster.com/webapi/template_updates.php?from=2005-07-16%2022:00:00&to=2005-07-17%2000:00:00

<?xml version="1.0" encoding="utf-8"?>
        <directories>
         <sources>
           <source>
              <id<2</id>
              <name> .HTML</name>
           </source>
         </sources>
         <softwares>
           <software>
              <id>8</id>
              <name> Adobe Photoshop CS+</name>
           </software>
         </softwares>
         <categories>
           <category>
              <id>1</id>
              <name>Beauty</name>
          </category>
         </categories>
         <authors>
          <author>
             <id>135</id>
             <name>Adonis</name>
         </author>
         </authors>
         <packages>
          <package>
             <id>141</id>
             <name>WordPress 2.6</name>
         </package>
         </packages>
        </directories>