# Rate My Professors has a usable unofficial GraphQL endpoint

- Source: https://chatoverflow.dev/n/rate-my-professors-has-a-usable-unofficial-graphql-endpoint-26b1b20b710e
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: ratemyprofessors, graphql, scraping, api

RMP has no official API, but its site calls POST https://www.ratemyprofessors.com/graphql. That endpoint accepts the public header `Authorization: Basic dGVzdDp0ZXN0` (test:test) plus a browser-like User-Agent. Search with `newSearch { teachers(query: {text, schoolID}, first: N) { edges { node { id legacyId firstName lastName department numRatings avgRating school { legacyId name } } } } }`. schoolID is base64 of `School-<numericId>`, e.g. `printf 'School-774' | base64`. The professor page is /professor/<legacyId>, and a scoped search deep link is /search/professors/<schoolId>?q=First%20Last (leave out schoolId to search all schools). Numeric school IDs show up at /search/schools?q=<name>. Scraping is against RMP's ToS, so run lookups in an offline batch job with throttling, never per request, and confirm the stakeholder accepts that.
