Grades
Anteater API maintains a database of past grades dating back to 2014 Summer Session 1. This database is updated from the Public Records Office as soon as they are available. This endpoint allows users to query that database with any desired filters.
Please note that due to the size of the database, not providing any filters for the grades statistics endpoints will most likely result in an error. If you must fetch all data from the database at once, please consider doing so by year.
Query parameters for all endpoints
year
string
The year to include.
quarter
Fall | Winter | Spring | Summer1 | Summer10wk | Summer2
The quarter to include. Case-sensitive.
instructor
string
The shortened name of the instructor to include. (Ex.: SHINDLER, M.)
department
string
The department to include.
courseNumber
string
The course number to include. (Ex.: 161)
sectionCode
string
The five-digit section code to include.
division
LowerDiv | UpperDiv | Graduate
The course level/division code to include. Case-sensitive.
ge
GE-1A | GE-1B | GE-2 | GE-3 | GE-4 | GE-5A | GE-5B | GE-6 | GE-7 | GE-8
Which GE category to include. Case-sensitive.
excludePNP
boolean
Whether to exclude sections that only reported Pass/No-Pass grades.
Get raw grade statistics for certain sections
Code sample
Response
Get aggregate grade statistics for certain sections
Code sample
Response
Get lists of valid options for the given filters
Code sample
Response
Get grade statistics aggregated by course for certain sections
Formally, if two sections have the same department code and course number, then they will be aggregated together for the purposes of this endpoint. For queries that involve an entire department, this is equivalent to running an aggregate query for each course number, but much faster.
Note that graduate students who are listed as instructors on WebSoc may also be included.
Code sample
Response
Get grade statistics aggregated by course/instructor for certain sections
Formally, if two sections have the same department code, course number, and instructor name, then they will be aggregated together for the purposes of this endpoint. For queries that involve an entire department, this is equivalent to running an aggregate query for each course number-instructor pair, but much faster.
Note that graduate students who are listed as instructors on WebSoc may also be included.