RateMyProfessors API endpoint
Search professor names or list global professor results when q and selectors are omitted. The unfiltered global listing defaults to fallback=true, first=5 and an empty forward cursor. Explicit fallback and pagination controls are preserved. Returns professor IDs and rating summaries in source edges, plus native result counts, department facets, fallback status and paging cursors.
/ratemyprofessors/professors/searchSearch professor names, or omit the query and selectors to list global professor results. Searches can be scoped to a school or department. Returns professor IDs and rating summaries in source edges, plus native result counts, department facets, fallback status and paging cursors.
q (optional). Search text. When omitted with no school or department selector, returns the global professor listing and department facets. Whitespace-only text is treated as empty for this unfiltered mode.school_id (optional). Numeric school ID or canonical School Relay ID.department_id (optional). Numeric department ID or canonical Department Relay ID.
Use global department filters
or school department discovery
to find a published ID.fallback (optional). Allow the source to broaden the search when it has few matches. Keyword and scoped searches default to false. The unfiltered global listing defaults to true. An explicit value overrides the default.first (optional). Positive size of the forward page.after (optional). Opaque edge cursor of the last record to skip.last (optional). Size of the backward page. Requires before. Zero returns page metadata without results.before (optional). Opaque edge cursor to stop before.For an unfiltered global listing, omitted forward paging controls use the source defaults first=5 and after="". Explicit first and after values are preserved. Backward requests keep their last and before controls.
Preserve the native cursor on each edge. Use it as after to continue from that record. Check pageInfo.hasNextPage before following pageInfo.endCursor. An empty edge list is a valid result.
Send at most one of first and last, and at most one of after and before.
The API returns the published source data in the data field. This example shows a response excerpt.
{
"code": 200,
"msg": "OK",
"data": {
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uOjA=",
"node": {
"id": "VGVhY2hlci01OTExMw==",
"legacyId": 59113,
"firstName": "Sample",
"department": "Biology"
}
}
],
"pageInfo": {
"hasNextPage": false,
"endCursor": null
},
"resultCount": 1,
"didFallback": false,
"filters": []
}
}
| Field | Filled in, of 5 checked |
|---|---|
| cursor | 5 |
| node | 5 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| q | string | No | Search text. Omit to list global professor results. | ||
| school_id | string | No | Numeric school ID or canonical School Relay ID | ||
| department_id | string | No | Numeric department ID or canonical Department Relay ID | ||
| fallback | boolean | No | true | Allow source fallback. The unfiltered global listing defaults to true. An explicit value overrides the default. | |
| first | integer | No | Size of the forward page Minimum: 1. Maximum: 100. | ||
| after | string | No | Opaque cursor of the last record to skip | ||
| last | integer | No | Size of the backward page. Requires before. Zero returns metadata only Minimum: 0. Maximum: 100. | ||
| before | string | No | Opaque cursor to stop before |
curl -X GET "https://api.crawlora.net/api/v1/ratemyprofessors/professors/search?q=coffee&fallback=true" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uOjA=",
"node": {
"id": "VGVhY2hlci01OTExMw==",
"legacyId": 59113,
"firstName": "Sample",
"department": "Biology"
}
}
],
"pageInfo": {
"hasNextPage": false,
"endCursor": null
},
"resultCount": 1,
"didFallback": false,
"filters": []
}
}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/search?q=coffee&fallback=true" \
-H "x-api-key: $CRAWLORA_API_KEY"