Reports
We are deprecating the API versions namely API v2 and v2.5, to make way for the more usable and maintainable API v3.
As of Nov 30, 2022, API versions, 2 and 2.5 will no longer be operational and relevant requests will begin to fail.
Note: The Reports endpoint is only available on the Premium plan and up.
You must authenticate with a token when calling this endpoint.
Getting an Activity report
URL:
api.transifex.com/organizations/<organization_slug
>/reports/activity/
GET
This request is used to get the activity report for all users, or a user you specify.
The supported parameters are:
from_date
- the start date of the report in yyyy-mm-dd format (required)to_date
- the end date of the report in yyyy-mm-dd format. If omitted, the current date will be useduser
- the user to get the report for. If omitted, all users of the organization will be returnedlanguage_code
- the language code to get the report for. If omitted, the report will include data for all languagesproject_slug
- the project slug to get the report for. If omitted, the report will include data for all projectsresource_slug
- the resource slug to get the report for. If omitted, the report will include data for all resources. To use this parameter, you must specify theproject_slug
type
- the file format of the response. Accepted inputs arejson
andcsv
. If omitted, JSON will be returnedtime_breakdown
- get a report that breaks down each translator's activity by month or year. Supported values aremonth
andyear
. If omitted, each translator's activity in the specified time period will be consolidated togetherteam_id
- the id of the translation team to get the report for. If omitted, the generated report will include data for all the teams you are authorized to access to.
The JSON response is a list of users. For each user, there is a dictionary with information about their localization activity per language:
new
- the number of words this user has translated that have never been translated by anyone before.new_leverage_percentage
- stats about leverage of the Translation Memory for newly translated words. More information can be found here.edit
- the number of words this user has changed for an existing translation. Each time the user changes a translation, the edit count increases.reviewed
- the number of words this user reviewed or proofread
Example:
curl -i --user api:<token> -X GET "https://api.transifex.com/organizations/transifex/reports/activity/?from_date=2017-03-04&to_date=2017-05-01&project_slug=transifex&resource_slug=core&user=test_user"
HTTP/1.0 200 OK
...
{
"user_1": {
"el": {
"new_leverage_percentage": {
"100": 0,
"0-60": 4,
"60-65": 0,
"65-70": 0,
"70-75": 6,
"75-80": 0,
"80-85": 1,
"85-90": 1,
"90-95": 2,
"95-100": 0
},
"reviewed": 0,
"new": 14,
"edit": 7
},
"he": {
"new_leverage_percentage": {
"100": 0,
"0-60": 1447,
"60-65": 228,
"65-70": 135,
"70-75": 124,
"75-80": 152,
"80-85": 133,
"85-90": 34,
"90-95": 135,
"95-100": 136
},
"reviewed": 0,
"new": 2524,
"edit": 50
}
},
"user_2": {
"el": {
"new_leverage_percentage": {
"100": 0,
"0-60": 14,
"60-65": 4,
"65-70": 0,
"70-75": 6,
"75-80": 0,
"80-85": 0,
"85-90": 0,
"90-95": 0,
"95-100": 0
},
"reviewed": 0,
"new": 24,
"edit": 8
}
}
}