Methods

PYBOSSA server stats

Endpoint: /stats/

Allowed methods: GET

GET

Gives you the global stats of the PYBOSSA server.

  • title: the title for the endpoint.
  • locs: localizations for anonymous users that have contributed.
  • projects: statistics about total published and draft projects.
  • show_locs: if GEOIP is enabled to show that data.
  • stats: Number of anonymous and authenticated users, number of draft and published projects, number of tasks, taskruns and total number of users.
  • tasks: Task and Taskrun statistics.
  • tasks: Task and Taskrun statistics.
  • top_5_projects_24_hours: Top 5 projects in the last 24 hours.
  • top_5_users_24_hours: Top 5 users in the last 24 hours.
  • users: User statistics.

Example output

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
  "locs": "[]",
  "projects": {
    "label": "Projects Statistics",
    "values": [
      {
        "label": "Published",
        "value": [
          0,
          534
        ]
      },
      {
        "label": "Draft",
        "value": [
          0,
          1278
        ]
      }
    ]
  },
  "show_locs": false,
  "stats": {
    "n_anon": 27587,
    "n_auth": 11134,
    "n_draft_projects": 1278,
    "n_published_projects": 534,
    "n_task_runs": 1801222,
    "n_tasks": 553012,
    "n_total_projects": 1812,
    "n_total_users": 38721
  },
  "tasks": {
    "label": "Task and Task Run Statistics",
    "values": [
      {
        "label": "Tasks",
        "value": [
          0,
          553012
        ]
      },
      {
        "label": "Answers",
        "value": [
          1,
          1801222
        ]
      }
    ]
  },
  "template": "/stats/global.html",
  "title": "Global Statistics",
  "top5_projects_24_hours": [],
  "top5_users_24_hours": [],
  "users": {
    "label": "User Statistics",
    "values": [
      {
        "label": "Anonymous",
        "value": [
          0,
          27587
        ]
      },
      {
        "label": "Authenticated",
        "value": [
          0,
          11134
        ]
      }
    ]
  }
}