GET /courses/{subject}/{catalog_number}/prerequisites.{format}
This method returns parsed and raw representation of prerequsites for a given course
Name | Value | Name | Value |
Request Protocol | GET | Requires API Key | Yes |
Method ID | 1181 | Enabled | Yes |
Service Name | courses | Service ID | 239 |
Information Steward | Registrar | Data Type | Scraped |
Update Frequency | Every request (live) | Cache Time | 0 seconds |
- Please see the following blog post on how to interpret the data.
http://hxhl95.github.io/course-prerequisites-string-parser/ - Any value can be
null
GET /courses/{subject}/{catalog_number}/prerequisites.{format}
Parameter | Type | Required | Description |
subject | input | yes | Valid uWaterloo subject name |
catalog_number | input | yes | Valid uWaterloo course number |
format | input | yes | The format of the output |
key | filter | yes | Valid API key |
callback | filter | no | JSONP callback format |
Output Formats
- json
- xml
GET /courses/{subject}/{catalog_number}/prerequisites.{format}
- https://api.uwaterloo.ca/v2/courses/PHYS/375/prerequisites.json
- https://api.uwaterloo.ca/v2/courses/CS/486/prerequisites.xml
- https://api.uwaterloo.ca/v2/courses/PHYS/375/prerequisites.json?callback=myResponse
Field Name | Type | Value Description |
subject | string | Requested subject acronym |
catalog_number | string | Registrar assigned class number |
title | string | Class name and title |
prerequisites | number | Raw listing of course prerequisites |
prerequisites_parsed | list | Parsed prerequisites |
Any value can be null
{
"meta":{
"requests":117,
"timestamp":1381955389,
"status":200,
"message":"Request successful",
"method_id":1181,
"version":2.07,
"method":{
}
},
"data":{
"subject":"PHYS",
"catalog_number":"375",
"title":"Stars",
"prerequisites":"Prereq: PHYS 112 or 122 and two of PHYS 234, 241, 242, 256, 258\/358, 263, 275",
"prerequisites_parsed":[
[
1,
"PHYS112",
"PHYS122"
],
[
2,
"PHYS234",
"PHYS241",
"PHYS242",
"PHYS256",
[
1,
"PHYS258",
"PHYS358"
],
"PHYS263",
"PHYS275"
]
]
}
}