Project Details
Returns specific project details.
Request type: POST
API Endpoint
https://api.translized.com/project
Parameters
Param | Type | Required | Description |
---|---|---|---|
projectId | String | True | Id of your project |
Example requests
- cURL
- Javascript Fetch
- Javascript Axios
curl -X POST -H "Content-Type: application/json" \
-H "api-token: 42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6" \
-d "{"projectId": "A3KJtLw4mt"}" \
https://api.translized.com/project
fetch('https://api.translized.com/project', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
body: JSON.stringify({ projectId: 'A3KJtLw4mt' }),
})
.then((res) => res.json())
.then((data) => console.log(data))
.catch((err) => console.log(err));
const response = await axios.post(
'https://api.translized.com/project',
{
projectId: 'A3KJtLw4mt',
},
{
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
}
);
const data = response.result;
info
- projectId can be found inside your project's settings. (Translized App > Your Project > Settings )
Example response
{
"result": {
"id": "ZwCEF5Qj1b",
"name": "Test",
"createdAt": "2022-05-30T19:57:40.789Z",
"primaryLanguage": "en",
"statistics": {
"totalTerms": 1822,
"totalTranslated": 1822,
"totalWords": 10801,
"languageStatistics": {
"en": 1822,
"de": 0
}
}
}
}