Skip to content

Closing down - Get assignment grades

Deprecated
GET
/assignments/{assignment_id}/grades

[!WARNING] Closing down notice: This operation is closing down and will be removed on August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Gets grades for a GitHub Classroom assignment. Grades will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.

API method documentation

assignment_id
required
integer

The unique identifier of the classroom assignment.

Response

Media type application/json
Array<object>
Classroom Assignment Grade

Grade for a student or groups GitHub Classroom assignment

object
assignment_name
required

Name of the assignment

string
assignment_url
required

URL of the assignment

string
starter_code_url
required

URL of the starter code for the assignment

string
github_username
required

GitHub username of the student

string
roster_identifier
required

Roster identifier of the student

string
student_repository_name
required

Name of the student’s assignment repository

string
student_repository_url
required

URL of the student’s assignment repository

string
submission_timestamp
required

Timestamp of the student’s assignment submission

string
points_awarded
required

Number of points awarded to the student

integer
points_available
required

Number of points available for the assignment

integer
group_name

If a group assignment, name of the group the student is in

string
Examples
Example default
[
{
"assignment_name": "Introduction to Strings",
"assignment_url": "https://classroom.github.com/classrooms/1337/assignments/1337",
"starter_code_url": "",
"github_username": "octocat",
"roster_identifier": "octocat@github.com",
"student_repository_name": "intro-to-strings-1337-octocat",
"student_repository_url": "https://github.com/timeforschool/intro-to-strings-1337-octocat",
"submission_timestamp": "2018-11-12 01:02",
"points_awarded": 10,
"points_available": 15,
"group_name": "octocat-and-friends"
},
{
"assignment_name": "Introduction to Strings",
"assignment_url": "https://classroom.github.com/classrooms/1337/assignments/1337",
"starter_code_url": "",
"github_username": "monalisa",
"roster_identifier": "monalisa@github.com",
"student_repository_name": "intro-to-strings-1337-monalisa",
"student_repository_url": "https://github.com/timeforschool/intro-to-strings-1337-monalisa",
"submission_timestamp": "2018-11-12 01:11",
"points_awarded": 15,
"points_available": 15,
"group_name": "monalisa-and-friends"
}
]

Resource not found

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Gone

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}