RateMyProfessors API endpoint
List the course names and rating counts associated with a professor. Use a returned course name as the course filter on the professor ratings route.
/ratemyprofessors/professors/coursesEach courseCodes entry also carries the source's teacherId (null for every sampled professor).
professor_id (required). Positive numeric professor ID or canonical Teacher Relay ID.The API returns the published source data in the data field. This example shows a response excerpt.
{
"code": 200,
"msg": "OK",
"data": {
"__typename": "Teacher",
"courseCodes": [
{
"courseCount": 9,
"courseName": "EECS-270"
},
{
"courseCount": 13,
"courseName": "EECS-280"
}
],
"id": "VGVhY2hlci0yODkzODE0",
"legacyId": 2893814
}
}
| Field | Filled in, of 3 checked | Values in the sample |
|---|---|---|
| courseCount | 3 | 3 to 13, median 9 |
| courseName | 3 | “EECS-270” and 2 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| professor_id | string | Yes | Positive numeric professor ID or canonical Teacher Relay ID | 2893814 |
curl -X GET "https://api.crawlora.net/api/v1/ratemyprofessors/professors/courses?professor_id=2893814" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"__typename": "Teacher",
"courseCodes": [
{
"courseCount": 9,
"courseName": "EECS-270"
},
{
"courseCount": 13,
"courseName": "EECS-280"
}
],
"id": "VGVhY2hlci0yODkzODE0",
"legacyId": 2893814
}
}Request schema
No body schema
Response schema
Inline response schema
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | ratemyprofessors.sourceObject | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/ratemyprofessors/professors/courses?professor_id=2893814" \
-H "x-api-key: $CRAWLORA_API_KEY"