RateMyProfessors API endpoint
Read the native department options shown in the global professor search before a keyword or school is chosen. Use a nonempty published option ID to filter professor search.
/ratemyprofessors/professors/search/departmentsRead the native Department selector from the global professor search
before choosing a keyword or school. The response preserves option
order, labels, and IDs. Pass a nonempty option ID as
department_id to professor search.
The source also lists labels with blank IDs and the route preserves them.
This route takes no parameters. It returns the set of options currently published for the global search page. Use school department discovery for a specific school.
| Field | Filled in, of 1 checked | Values in the sample |
|---|---|---|
| field | 1 | “teacherdepartment_s” |
| options | 1 | median 150 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/ratemyprofessors/professors/search/departments" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"filters": [
{
"field": "teacherdepartment_s",
"options": [
{
"id": "",
"value": ""
},
{
"id": "RGVwYXJ0bWVudC0xNDIz",
"value": "asl deaf studies"
}
]
}
]
}
}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.ProfessorDepartmentFilters | No | ||||
| data.filters | array | No | ||||
| data.filters[].field | string | No | ||||
| data.filters[].options | array | No | ||||
| data.filters[].options[].id | string | No | ||||
| data.filters[].options[].value | string | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 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/search/departments" \
-H "x-api-key: $CRAWLORA_API_KEY"