Skip to content

Localization API

Get markets translation

Request parameters

Stage https://apg-s2s.online
Prod https://apg-s2s.com
Path /v1/sport/v0/translation/markets/
Method GET
Headers Authorization S2S API auth
Content-Type: application/json
Response Codes 200, 204, 400, 429

Request

Params Data Types Description of property Example
language String one of supported language ("en" - by default) "en"
version String last obtained version - if passed version the same as latest version on server side or empty then returned 204, else returned translations 1

Supported languages

en, en_Mob, ru, uk, es, pt, it, tr, fr, de, ja, zh, zh_Mob, kk, ko, hu, id, en-ca, fr-ca, en_NG, en_TZ, ro, bn, hi, vi, th, ms, uz

Response example:

Open example

Get scores translation

Request parameters

Stage https://apg-s2s.online
Prod https://apg-s2s.com
Path /v1/sport/v0/translation/scores/{sport}
Method GET
Headers Authorization S2S API auth
Content-Type: application/json
Response Codes 200, 204, 400, 429

Request

Params Data Types Description of property Example
language String one of supporeted language ("en" - by default) "en"
version String last obtained version - if passed version the same as latest version on server side or empty then returned 204, else returned translations 1

Supported languages

en, ru, uk, es, pt, it, tr, fr, de, ja, zh, kk, ko, hu, id, en-ca, fr-ca, ro, bn, hi, vi, th, ms, uz

Response example:

{
    "TranslationVersion":"4"
    "ScoreTranslations": {"1":"1st half","2":"Half-Time","3":"2nd half","4":"End of 2nd half","5":"Extra time. 1st half","6":"Half-Time of Extra time","7":"Extra time. 2nd half","8":"Penalty shoot-out","9":"Finished","10":"Live"}
}

Markets Localization Description

Response contains four entities that are used in localization of markets:

  • markets
  • outcomes
  • periods
  • trading types

Each entity is a map of entity id to an array of entity translations. All entities (except trading types) have complex rules for translation. These rules are compactly encoded in condition property. Client code should check every condition in array and first matching should be used for translation.

Translation Format Description