# How to get a percentage of reviewed strings vs. translated strings

**URL:** <https://community.transifex.com/t/how-to-get-a-percentage-of-reviewed-strings-vs-translated-strings/1726>\
**Category:** Tips and Tricks\
**Tags:** api\
**Created:** [March 17, 2020, 3:01pm UTC](https://community.transifex.com/t/how-to-get-a-percentage-of-reviewed-strings-vs-translated-strings/1726 "2020-03-17T15:01:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthonydim](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@anthonydim](https://community.transifex.com/u/anthonydim)\
**Post date:** [March 17, 2020, 3:01pm UTC](https://community.transifex.com/t/how-to-get-a-percentage-of-reviewed-strings-vs-translated-strings/1726/1 "2020-03-17T15:01:39Z")

</div>

Sometimes, you may just want to have a reviewed percentage based on the actual amount of translated words, rather than total words (including untranslated). The following API endpoint can help you get a percentage of reviewed words vs. translated words:

> [https://www.transifex.com/api/2/project/project\_slug/resource/resource\_slug/stats/](https://www.transifex.com/api/2/project/project_slug/resource/resource_slug/stats/)

The above API endpoint is described in our manual here:

> **[Transifex Help Center](https://help.transifex.com/en/)**
>
> Transifex Help Center

The resulting output per language will look like this:

> {  
> “en\_US”: {  
> “reviewed\_percentage”: “0%”,  
> “completed”: “0%”,  
> “untranslated\_words”: 8,  
> “last\_commiter”: “username\_A”,  
> “reviewed”: 0,  
> “translated\_entities”: 0,  
> “translated\_words”: 0,  
> “last\_update”: “2020-03-02 16:51:29”,  
> “untranslated\_entities”: 4  
> },  
> “fr”: {  
> “reviewed\_percentage”: “50%”,  
> “completed”: “75%”,  
> “untranslated\_words”: 2,  
> “last\_commiter”: “username\_A”,  
> “reviewed”: 2,  
> “translated\_entities”: 3,  
> “translated\_words”: 6,  
> “last\_update”: “2020-03-16 19:09:12”,  
> “untranslated\_entities”: 1  
> },…

So, in order to calculate the desired percentage, you just need to do the following:

> reviewed\_words = [reviewed\_percentage x (translated\_words + untranslated\_words)]/100
> 
> reviewed\_percentage\_based\_on\_translated\_words = (reviewed\_words x 100)/translated\_words
