API:languages.xml

From TvDBwiki
Jump to: navigation, search

The languages.xml file holds a list of all of the languages available on this website. NOTE: Previous interfaces primarily used the language id for lookups. This new API uses the 2 character abbreviation. This file will rarely change, so you may consider hard-coding these values into your program and updating them only with new releases. In addition to the two letter abbreviations the word "all" can be used as a language option within the API to get information in all languages.

Example Results

<?xml version="1.0" encoding="UTF-8" ?>
<Languages>
 <Language>
   <name>Español</name>
   <abbreviation>es</abbreviation>
   <id>16</id>
 </Language>
 <Language>
   <name>Français</name>
   <abbreviation>fr</abbreviation>
   <id>17</id>
 </Language>
 <Language>
   <name>Hebrew</name>
   <abbreviation>he</abbreviation>
   <id>24</id>
 </Language>
 <Language>
   <name>English</name>
   <abbreviation>en</abbreviation>
   <id>7</id>
 </Language>
</Languages>
Personal tools