How to include multiple paramaters in an API call

If you need to apply more than one value to a single parameter in a single API endpoint, then you need to enclose the API endpoint in quotation marks.

For example, let’s assume that you want to pull translations from Transifex. If you use the following API endpoint:

https://www.transifex.com/api/2/project/project_slug/resource/source_slug/translation/lang_code/

then you will get a JSON serialized string which includes all the translations related to the specific target language and the specific resource. If you want to get only the translations that have been reviewed as well as the actual file instead of a JSON serialized string, then the API endpoint should be formatted as follows:

https://www.transifex.com/api/2/project/project_slug/resource/source_slug/translation/lang_code/?mode=reviewed&file”

1 Like