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.
Name | Value | Description |
---|---|---|
languages optional | array | Track overall translation and proofreading progresses for defined target languages. For this use Сrowdin language codes. |
xml optional | string | May contain no value. Defines that response should be in XML format. |
json optional | string | May contain no value. Defines that response should be in JSON format. |
jsonp optional | string | Callback function name. Defines that response should be in JSONP format. |
Variables | ||
project-identifier | string | Project identifier. |
login | string | Your username in Crowdin. |
account-key | string | Your account API key. |
<?xml version="1.0" encoding="UTF-8"?>
<status>
<language>
<name>French</name>
<code>fr</code>
<phrases>20</phrases>
<translated>10</translated>
<approved>5</approved>
<words>50</words>
<words_translated>35</words_translated>
<words_approved>15</words_approved>
<translated_progress>50</translated_progress>
<approved_progress>25</approved_progress>
</language>
<language>
<name>Romanian</name>
<code>ro</code>
<phrases>20</phrases>
<translated>0</translated>
<approved>0</approved>
<words>50</words>
<words_translated>35</words_translated>
<words_approved>15</words_approved>
<translated_progress>0</translated_progress>
<approved_progress>0</approved_progress>
</language>
<!-- ............each project language............-->
</status>
<?xml version="1.0" encoding="UTF-8"?>
<status>
<language>
<name>French</name>
<code>fr</code>
<phrases>20</phrases>
<translated>10</translated>
<approved>5</approved>
<words>50</words>
<words_translated>35</words_translated>
<words_approved>15</words_approved>
<translated_progress>50</translated_progress>
<approved_progress>25</approved_progress>
<qa_issues>10</qa_issues>
</language>
<!-- ............each project language............-->
</status>
<?xml version="1.0" encoding="UTF-8"?>
<error>
<code>3</code>
<message>API key is not valid</message>
</error>
curl https://api.crowdin.com/api/project/{project-identifier}/status?login={username}&account-key={account-key}&jsonp=mycallback
<?php
$request_url = 'https://api.crowdin.com/api/project/{project-identifier}/status?login={username}&account-key={account-key}&xml';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$result = curl_exec($ch);
curl_close($ch);
echo $result;