RateMyProfessors API endpoint
List the professors related to a public RateMyProfessors profile. Returns native professor IDs, names, departments, rating summaries, and page cursors. Use a returned ID to get the corresponding profile.
/ratemyprofessors/professors/relatedList related professors from the public profile. The response preserves the published identities, departments, rating summaries, and continuation cursors. Use a returned Teacher Relay ID to look up that professor’s profile.
professor_id (required). Numeric professor ID or canonical Teacher Relay ID.first (optional). Size of the forward page. Zero returns page metadata without professors.after (optional). Opaque edge cursor of the last record to skip.last (optional). Size of the backward page. Use it alone to request the last entries or pair it with before to page back. Zero returns page metadata without professors.before (optional). Opaque edge cursor to stop before.Send at most one of first and last, and at most one of after and
before. Preserve the cursor strings exactly.
The API returns the native connection in the data field. An empty edge
list is valid. Each returned edge has a source cursor. The page cursors can be blank on an explicit zero-size page.
| Field | Filled in, of 3 checked |
|---|---|
| cursor | 3 |
| node | 3 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| professor_id | string | Yes | Numeric professor ID or canonical Teacher Relay ID | 2893814 | |
| first | integer | No | Size of the forward page. Zero returns metadata only Minimum: 0. Maximum: 100. | ||
| after | string | No | Opaque cursor of the last record to skip | ||
| last | integer | No | Size of the backward page. 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/related?professor_id=2893814" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uOjA=",
"node": {
"avgDifficultyRounded": 0,
"avgRatingRounded": 5,
"department": "",
"departmentId": null,
"firstName": "Greg",
"id": "VGVhY2hlci0yNzYyOTky",
"lastName": "Bodwin",
"legacyId": 2762992,
"numRatings": 0,
"wouldTakeAgainPercentRounded": 100
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uOjE=",
"node": {
"avgDifficultyRounded": 0,
"avgRatingRounded": 5,
"department": "",
"departmentId": null,
"firstName": "Raed",
"id": "VGVhY2hlci0yNDYyODI0",
"lastName": "Almomani",
"legacyId": 2462824,
"numRatings": 0,
"wouldTakeAgainPercentRounded": 100
}
}
],
"pageInfo": {
"endCursor": "YXJyYXljb25uZWN0aW9uOjI=",
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "YXJyYXljb25uZWN0aW9uOjA="
}
}
}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/related?professor_id=2893814" \
-H "x-api-key: $CRAWLORA_API_KEY"