Read one professor profile on Rate My Professors. Pass the numeric id from search, or a /professor/{id} URL. The response is a flat record. difficulty and would_take_again_percent are numbers when the page shows them, and null when the page shows N/A.
1064107 is Kevin Smith, Psychology at Rio Hondo College. The profile repeats the id, name, school, department, rating, difficulty, and would-take-again percent from the smith search card.
GET https://api.piloterr.com/v2/ratemyprofessors/professor?query=1064107
GET https://api.piloterr.com/v2/ratemyprofessors/professor?query=275587
GET and POST take the same query. 275587 is the first card of a chen search (Qiyang Chen) and returns that same id with numeric difficulty and would-take-again.
| Parameter |
Required |
Example |
query |
yes |
1064107 |
query is required. A positive integer is the professor id. A URL must be on ratemyprofessors.com and match /professor/ plus digits. A name or another host returns 400.
| Field |
Type |
Meaning |
id |
string |
Professor id |
name |
string |
Full name |
first_name |
string |
First token of the name |
last_name |
string or null |
The rest of the name |
url |
string |
Profile URL |
department |
string or null |
Department line that is not the trailing "department" label |
school |
string or null |
School |
school_url |
string or null |
School page, such as https://www.ratemyprofessors.com/school/2746 for Rio Hondo College |
rating |
number or null |
Overall quality |
ratings_count |
number or null |
Ratings the page reports |
would_take_again_percent |
number or null |
Percent. Present as a number when the page shows a percent. null for N/A |
difficulty |
number or null |
Level of difficulty. Present as a number when the page shows one. null for N/A |
There is no results wrapper.
- Store Kevin Smith's quality, difficulty, and would-take-again percent from id
1064107 next to the search card for the same id.
- Link the professor to Rio Hondo College with
school_url.
- Open
275587 from a chen search and keep the profile difficulty beside the card difficulty.
| Code |
Meaning |
400 |
Empty query, a non-numeric token, or a domain outside ratemyprofessors.com |
401 |
Missing API key |
404 |
No professor page for that id |
500 |
The fetch failed |
Rate My Professors Search