RateMyProfessors API endpoint
Search school names and return a connection with school IDs, cities, states and rating summaries where available. Use the returned Relay IDs for school details, department discovery or campus reviews.
/ratemyprofessors/schools/searchq (required). Search text.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.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. School IDs can recur across pages in the source ordering.
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": {
"avgRatingRounded": 4.4,
"city": "Ann Arbor Charter Twp",
"country": "0-US-United States",
"id": "U2Nob29sLTEyNTg=",
"legacyId": 1258,
"name": "University of Michigan",
"numRatings": 890,
"state": "MI"
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uOjE=",
"node": {
"avgRatingRounded": 3.5,
"city": "Dearborn",
"country": "0-US-United States",
"id": "U2Nob29sLTE1MzQ=",
"legacyId": 1534,
"name": "University of Michigan - Dearborn",
"numRatings": 351,
"state": "MI"
}
}
],
"pageInfo": {
"endCursor": "YXJyYXljb25uZWN0aW9uOjc=",
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "YXJyYXljb25uZWN0aW9uOjA="
},
"resultCount": 4608
}
}
| Field | Filled in, of 8 checked |
|---|---|
| cursor | 8 |
| node | 8 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| q | string | Yes | Search text | university of michigan | |
| 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/schools/search?q=university+of+michigan" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"edges": [
{
"cursor": "YXJyYXljb25uZWN0aW9uOjA=",
"node": {
"avgRatingRounded": 4.4,
"city": "Ann Arbor Charter Twp",
"country": "0-US-United States",
"id": "U2Nob29sLTEyNTg=",
"legacyId": 1258,
"name": "University of Michigan",
"numRatings": 890,
"state": "MI"
}
},
{
"cursor": "YXJyYXljb25uZWN0aW9uOjE=",
"node": {
"avgRatingRounded": 3.5,
"city": "Dearborn",
"country": "0-US-United States",
"id": "U2Nob29sLTE1MzQ=",
"legacyId": 1534,
"name": "University of Michigan - Dearborn",
"numRatings": 351,
"state": "MI"
}
}
],
"pageInfo": {
"endCursor": "YXJyYXljb25uZWN0aW9uOjc=",
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "YXJyYXljb25uZWN0aW9uOjA="
},
"resultCount": 4608
}
}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/search?q=university+of+michigan" \
-H "x-api-key: $CRAWLORA_API_KEY"