GetArt

From TheGamesDB Wiki
Jump to: navigation, search

This API feature returns a list of available artwork types and locations specific to the requested game id in the database. It also lists the resolution of any images available. Scrapers can be set to use a minimum or maximum resolution for specific images.

Changelog:

5-27-12: Added support for returning ClearLOGO


Parameters:

id (integer) (required): The numeric ID of the game in our database that you like to fetch artwork details for.


Example Request:

A query to return all art for the game with an ID number of "2" - http://thegamesdb.net/api/GetArt.php?id=2

Example Response:

<?xml version="1.0" encoding="UTF-8" ?>

<Data>
  <baseImgUrl>http://thegamesdb.net/banners/</baseImgUrl>
  <Images>
    <fanart>
        <original width="1920" height="1080">fanart/original/2-1.jpg</original>
        <thumb>fanart/thumb/2-1.jpg</thumb>
    </fanart>
    <fanart>
        <original width="1920" height="1080">fanart/original/2-2.jpg</original>
        <thumb>fanart/thumb/2-2.jpg</thumb>
    </fanart>
    <fanart>
        <original width="1920" height="1080">fanart/original/2-3.jpg</original>
        <thumb>fanart/thumb/2-3.jpg</thumb>
    </fanart>
    <fanart>
        <original width="1920" height="1080">fanart/original/2-4.jpg</original>
        <thumb>fanart/thumb/2-4.jpg</thumb>
    </fanart>
    <fanart>
        <original width="1920" height="1080">fanart/original/2-5.jpg</original>
        <thumb>fanart/thumb/2-5.jpg</thumb>
    </fanart>
    <fanart>
        <original width="1920" height="1080">fanart/original/2-6.jpg</original>
        <thumb>fanart/thumb/2-6.jpg</thumb>
    </fanart>
    <boxart side="back" width="1525" height="2162" thumb="boxart/thumb/original/back/2-1.jpg">boxart/original/back/2-1.jpg</boxart>
    <boxart side="front" width="1525" height="2160" thumb="boxart/thumb/original/front/2-1.jpg">boxart/original/front/2-1.jpg</boxart>
    <banner width="760" height="140">graphical/2-g2.jpg</banner>
    <banner width="760" height="140">graphical/2-g3.jpg</banner>
    <screenshot>
        <original width="1920" height="1080">screenshots/2-1.jpg</original>
        <thumb>screenshots/thumb/2-1.jpg</thumb>
    </screenshot>
    <clearlogo width="400" height="95">clearlogo/2.png</clearlogo>
  </Images>
</Data>
Personal tools
Namespaces

Variants
Actions
Navigation
Contents
Toolbox