LanguagesList

List of languages

Introduction

Most of the TraceParts APIs depend on a language ID. TraceParts data is available in many languages and is also related to the information provided by the supplier of the product. If there was no data entered for the selected language then the default language is used. TraceParts cannot decide which default language will be used, because it has been chosen by the supplier of the product.

API Key

This web service requires an API Key. Please use the form to request your API Key.

Description

The API returns the “TraceParts Language ID” and the label of this language, written in this current language.

Building a URL

The LanguagesList API request takes the following form:

https://ws.tracepartsonline.net/tpowebservices/LanguagesList?parameters

Parameters

Certain parameters are required while others are optional. As it is standard in URLs, all parameters are separated using the ampersand (&) character. The list of parameters and their possible values are enumerated below.

Required parameters

Parameter NameData typeDefault valueDescription
ApiKeystringnoneCode calling an API to track and control how the API is used
FormatstringnoneAnswer file type (xml, json)

Example of LanguagesList API

The request below returns all languages as an xml file.

https://ws.tracepartsonline.net/tpowebservices/LanguagesList?Format=xml&ApiKey={ApiKey}

LanguagesList responses

LanguagesList responses are returned in the format indicated by the Format parameter within the URL request’s path.

JSON Output

A sample HTTP request is shown below, displaying some of the available languages.

{
"languageId":"bg",
"languageName":"български език"
},
{
"languageId":"br",
"languageName":"Português do Brasil"
},
{
"languageId":"cs",
"languageName":"Česky"
},
{
"languageId":"da",
"languageName":"Dansk"
},
{
"languageId":"de",
"languageName":"Deutsch"
},
{
"languageId":"el",
"languageName":"ελληνικα"
}

XML Output

Same example as above.

<WsLanguage>
<LanguageId>bg</LanguageId>
<LanguageName>български език</LanguageName>
</WsLanguage>
<WsLanguage>
<LanguageId>br</LanguageId>
<LanguageName>Português do Brasil</LanguageName>
</WsLanguage>
<WsLanguage>
<LanguageId>cs</LanguageId>
<LanguageName>Česky</LanguageName>
</WsLanguage>
<WsLanguage>
<LanguageId>da</LanguageId>
<LanguageName>Dansk</LanguageName>
</WsLanguage>
<WsLanguage>
<LanguageId>de</LanguageId>
<LanguageName>Deutsch</LanguageName>
</WsLanguage>
<WsLanguage>
<LanguageId>el</LanguageId>
<LanguageName>ελληνικα</LanguageName>
</WsLanguage>

LanguagesList response elements

LanguagesList responses contain two elements:

  • “languageId”: defined by TraceParts, as two characters, usable with other APIs.
  • “languageName”: label of the language, written in its current language.

Developer support

Please contact us for any problems, questions or comments related to this web service.

Last updated November 18, 2014