webleads-tracker

Home > TraceParts for Developers > 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 refer to this chapter 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:

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

 

Parameters

Certain parameters are required while others are optional. As 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 Name

Data type

Default value

Description

ApiKey

string

none

Code calling an API to track and control how the API is used

Format

string

none

Answer file type (xml, json or csv)

 

Optional parameters

Parameter Name

Data type

Default value

Description

UserEmail

string

none

User email / User ID

ActiveJsonLight

boolean

0

Enables the light version when json is the answer file type

Example of LanguagesList API

The request below returns all languages as an xml file.

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

By changing the Format and adding the ActiveJsonLight, LanguagesList returns all languages as a light Json file.

http://ws.tracepartsonline.net/tpowebservices/LanguagesList?Format=json&ActiveJsonLight=1&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