The API supports getting a list of public files available in the translation center, optionally filtered by language and category.
GET /public-files gets a list of public files.
To filter the list, set category to a category ID (see below)
or language to a language code,
to get only files that match those criteria.
Large result sets are paginated--pass a page number to access subsequent pages.
Example request with Curl:
API_KEY={YOUR_API_KEY}
curl -H "X-Proz-API-Key: $API_KEY" \
'https://twb.translationcenter.org/api/v1/public-files?language=ara&category=1'
Example response:
[
{
"url": "https://twb.translationcenter.org/workspace/public-files/download/id/118750",
"name": "WoR CRISIS TERMS Arabic.doc",
"description": "Crisis terms translated from English into Arabic.",
"languages": [
{
"language_code": "ara",
"language_name": "Arabic"
},
{
"language_code": "eng",
"language_name": "English"
}
],
"categories": [
{
"category_id": 1,
"category_name": "General crisis terms"
}
],
"bytes": 1004544
}
]
GET /public-files/categories gets a list of categories by which public files can be filtered.
Pass one of these category_id values as the category parameter when getting public files.
Example request with Curl:
API_KEY={YOUR_API_KEY}
curl -H "X-Proz-API-Key: $API_KEY" \
https://twb.translationcenter.org/api/v1/public-files/categories
Example response:
[
{
"category_id": 1,
"category_name": "General crisis terms"
},
{
"category_id": 2,
"category_name": "Medical terms"
},
{
"category_id": 3,
"category_name": "Ebola"
}
]
GET /public-files/languages gets a list of languages in which public files are available.
Pass the language code as the language parameter when getting public files.
Example request with Curl:
API_KEY={YOUR_API_KEY}
curl -H "X-Proz-API-Key: $API_KEY" \
https://twb.translationcenter.org/api/v1/public-files/languages
Example response:
[
{
"language_code": "ara",
"language_name": "Arabic"
},
{
"language_code": "eng",
"language_name": "English"
},
{
"language_code": "ben",
"language_name": "Bengali"
},
{
"language_code": "hin",
"language_name": "Hindi"
},
{
"language_code": "fas",
"language_name": "Persian (Farsi)"
},
{
"language_code": "rus",
"language_name": "Russian"
},
{
"language_code": "tgl",
"language_name": "Tagalog"
},
{
"language_code": "deu",
"language_name": "German"
},
{
"language_code": "ind",
"language_name": "Indonesian"
},
{
"language_code": "esl",
"language_name": "Spanish"
}
]