Reports

Following is the sample cURL request to read the reports of a challenges

curl --location 'https://onecompiler.com/api/v1/reports?access_token=your_access_token' --header 'Content-Type: application/json' --data '{
    "type": "challengesCountByUsers",
    "filters": {
        "challengeIds": ["c1", "c2", "c3"],
        "userIds": ["u1", "u2", "u3"]
    }
}'

Note: challengeIds & userIds help to filter the data. If you pass empty arrays, it will return all the data.

Following are the types of reports available

  • userSummary
  • userScoreOverTime
  • userStatsOverTime
  • userSuccessVsFailVsPartial
  • successVsFailVsPartialByLanguage
  • userStatsByLanguage
  • usersChallengeLevelStats
  • challengesStatsSummary
  • topLanguagesByUsers
  • challengeDetailsByUsers
  • challengeSummary
  • challengeAndProblemProgressDetails
  • challengesCountByUsers
  • topUsersByScore
  • challengeScoreStats
  • problemStats
  • challengeProblemStats
  • challengesStatsOverTime
  • totalScoreByUserByChallenge
  • challengeTags