Transifex

  • Documentation
  • API
  • Reports

Reports

Note

The Reports endpoint is only available on the Enterprise plan.

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 used
  • user - the user to get the report for. If omitted, all users of the organization will be returned
  • language_code - the language code to get the report for. If omitted, the report will include data for all languages
  • project_slug - the project slug to get the report for. If omitted, the report will include data for all projects
  • resource_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 the project_slug
  • type - the file format of the response. Accepted inputs are json and csv. If omitted, JSON will be returned
  • time_breakdown - get a report that breaks down each translator's activity by month or year. Supported values are month and year. If omitted, each translator's activity in the specified time period will be consolidated together
  • team_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
  • edit - the number of words this user has changed for an existing translation
  • 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
        }
    }
}