RateMyProfessors API endpoint
List the departments attached to a school record with their source IDs and names. Use department IDs with a school ID when filtering professor search.
/ratemyprofessors/schools/departmentsschool_id (required). Positive numeric school ID or canonical School 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": "School",
"departments": [
{
"id": "1",
"name": "Accounting"
},
{
"id": "3",
"name": "Anthropology"
}
],
"id": "U2Nob29sLTEyNTg=",
"legacyId": 1258
}
}
| Field | Filled in, of 148 checked | Values in the sample |
|---|---|---|
| id | 148 | |
| name | 148 | “Accounting” and 147 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| school_id | string | Yes | Positive numeric school ID or canonical School Relay ID | 1258 |
curl -X GET "https://api.crawlora.net/api/v1/ratemyprofessors/schools/departments?school_id=1258" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"__typename": "School",
"departments": [
{
"id": "1",
"name": "Accounting"
},
{
"id": "3",
"name": "Anthropology"
}
],
"id": "U2Nob29sLTEyNTg=",
"legacyId": 1258
}
}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/schools/departments?school_id=1258" \
-H "x-api-key: $CRAWLORA_API_KEY"