Exportar Traduções

Please consider that API 2.0 is now the preferred version to be used. The old API will remain fully functional until the end of 2021.

Crowdin API v2

Compilar arquivo ZIP com as últimas traduções.

This method can be invoked once per 30 minutes if case you are not using one of the organization plans. You can check if ZIP archive with the latest translations was built by status attribute ("built" or "skipped") returned in the response.

Note: Export API call will be ignored if there were no changes in the project since previous export.


Note: Use the combination of project identifier, username, and account key to pass to this endpoint.

GET https://api.crowdin.com/api/project/{project-identifier}/export?login={username}&account-key={account-key}


Nome Valor Descrição
branch opcional string O nome da ramificação da versão relacionada (Gestão de Versões).
async opcional bool Defines whether the call will be executed asynchronously – 1 or not – 0. O padrão é 0. This means that this API method can be invoked and get an immediate response that the request was accepted.
json opcional string Pode não conter valor. Define que a resposta deve estar no formato JSON.
jsonp opcional string Nome da função de retorno de chamada. Define que a resposta deve estar no formato JSONP.
project-identifier string Identificador do projeto.
login string O teu nome de utilizador no Crowdin.
account-key string A tua chave API de conta.


If successful, this method returns a XML structure, as it is shown below.
<?xml version="1.0" encoding="UTF-8"?>
<success status="built">
<?xml version="1.0" encoding="UTF-8"?>
<success status="skipped">
Exemplo de resposta mal-sucedida:
<?xml version="1.0" encoding="UTF-8"?>
  <message>A chave API não é válida</message>


curl \
$request_url = 'https://api.crowdin.com/api/project/{project-identifier}/export?login={username}&account-key={account-key}';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec($ch);

echo $result;

Este artigo foi útil?