# RateMyProfessors professor API

Look up RateMyProfessors profiles by ID or URL via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, raw, and retrieve structured data including professor identifier, associated school identifier, aggregate quality rating, aggregate difficulty rating, and source rating count for instructor directory, and feedback summary.

Documentation: https://openany.si/ratemyprofessors/ratemyprofessors-professor-api/1bd158ee-243b-4ab1-93b3-f3c52a11d164/
API ID: 1bd158ee-243b-4ab1-93b3-f3c52a11d164
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/ratemyprofessors/v1/professor
Page update time: 2026-12-03T02:45:46.920Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:45:45.832Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits used",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## RateMyProfessors Professor API

Use id for a professor token or profile URL. Aggregate ratings, course references and latest\_ratings describe different parts of the profile; the latest entries are not the entire rating history.

## What You Can Build

- **Instructor directory**: Match names to stable professor and school IDs.
- **Feedback summary**: Keep rating counts with each displayed aggregate.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Professor identifier |
| `school.id` | Associated school identifier |
| `rating` | Aggregate quality rating |
| `difficulty` | Aggregate difficulty rating |
| `ratings` | Source rating count |
| `would_take_again_percent` | Share expressing willingness to take again |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RateMyProfessors professor API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The professor's id (the number in ratemyprofessors.com/professor/<id>) or that URL."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "courses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "ratings": {
            "type": "integer"
          }
        }
      }
    },
    "credits_used": {
      "type": "integer"
    },
    "department": {
      "type": "string"
    },
    "department_id": {
      "type": "string"
    },
    "difficulty": {
      "type": "number"
    },
    "fetched_at": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "last_name": {
      "type": "string"
    },
    "latest_ratings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "attendance": {
            "type": "string"
          },
          "clarity": {
            "type": "integer"
          },
          "course": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "difficulty": {
            "type": "integer"
          },
          "for_credit": {
            "type": "boolean"
          },
          "grade": {
            "type": "string"
          },
          "helpfulness": {
            "type": "integer"
          },
          "id": {
            "type": "integer"
          },
          "online": {
            "type": "boolean"
          },
          "professor_note": {
            "type": "null"
          },
          "quality": {
            "type": "integer"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "text": {
            "type": "string"
          },
          "textbook": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "thumbs_down": {
            "type": "integer"
          },
          "thumbs_up": {
            "type": "integer"
          },
          "would_take_again": {
            "type": "boolean"
          }
        }
      }
    },
    "lock_status": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "rating": {
      "type": "number"
    },
    "rating_distribution": {
      "type": "object",
      "properties": {
        "1": {
          "type": "integer"
        },
        "2": {
          "type": "integer"
        },
        "3": {
          "type": "integer"
        },
        "4": {
          "type": "integer"
        },
        "5": {
          "type": "integer"
        }
      }
    },
    "ratings": {
      "type": "integer"
    },
    "school": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "similar": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "rating": {
            "type": "integer"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "top_tags": {
      "type": "array",
      "items": {}
    },
    "url": {
      "type": "string"
    },
    "would_take_again_percent": {
      "type": "number"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/ratemyprofessors/v1/professor?id=1835982&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "courses": [
    {
      "code": "184",
      "ratings": 1
    },
    {
      "code": "MATH105",
      "ratings": 1
    },
    {
      "code": "MATH220",
      "ratings": 5
    },
    {
      "code": "MATH221",
      "ratings": 17
    },
    {
      "code": "MATH308",
      "ratings": 1
    },
    {
      "code": "MATH427",
      "ratings": 2
    },
    {
      "code": "MATH527",
      "ratings": 1
    }
  ],
  "credits_used": 1,
  "department": "Mathematics",
  "department_id": "38",
  "difficulty": 3.7,
  "fetched_at": "2026-11-19T12:19:36.374Z",
  "first_name": "Ben",
  "id": 1835982,
  "last_name": "Williams",
  "latest_ratings": [
    {
      "attendance": "non mandatory",
      "clarity": 5,
      "course": "MATH221",
      "date": "2025-01-20T04:24:23Z",
      "difficulty": 3,
      "for_credit": true,
      "grade": "B+",
      "helpfulness": 5,
      "id": 40575124,
      "online": false,
      "professor_note": null,
      "quality": 5,
      "tags": [
        "Amazing lectures",
        "Lots of homework",
        "Hilarious"
      ],
      "text": "Ben was a real fun guy. I was on exchange and I was shocked of how clear a mathematics lecture could be when taught by a good professor. You don't need a textbook because he is the textbook. Just come to the lectures, do the exercises, and you will survive just fine. The notes are so good, that I keep coming back to them for review.",
      "textbook": null,
      "thumbs_down": 0,
      "thumbs_up": 0,
      "would_take_again": true
    },
    {
      "attendance": "non mandatory",
      "clarity": 5,
      "course": "MATH221",
      "date": "2025-01-20T03:42:34Z",
      "difficulty": 3,
      "for_credit": true,
      "grade": "A-",
      "helpfulness": 5,
      "id": 40574992,
      "online": false,
      "professor_note": null,
      "quality": 5,
      "tags": [
        "Amazing lectures",
        "Inspirational",
        "Hilarious"
      ],
      "text": "2023W2\nThe lectures are super clear and informative. Easy to follow. The mid terms are not hard but the final exam might be a shocking! Pretty good, speaking of overall experience.",
      "textbook": null,
      "thumbs_down": 0,
      "thumbs_up": 0,
      "would_take_again": true
    },
    {
      "attendance": "non mandatory",
      "clarity": 5,
      "course": "MATH221",
      "date": "2024-07-02T01:36:51Z",
      "difficulty": 4,
      "for_credit": true,
      "grade": "A",
      "helpfulness": 5,
      "id": 39604680,
      "online": false,
      "professor_note": null,
      "quality": 5,
      "tags": [
        "Amazing lectures",
        "Gives good feedback",
        "Inspirational"
      ],
      "text": "Fantastic lecturer, always approachable in office hours, the man is a genius. Definitely learned a great deal of matrix algebra and walked away with a good understand of the concepts. Always encourages his students to look at the material more deeply. Final was a bit hard, but I would pick still Ben any day of the week for any course.",
      "textbook": true,
      "thumbs_down": 0,
      "thumbs_up": 0,
      "would_take_again": true
    },
    {
      "attendance": "mandatory",
      "clarity": 5,
      "course": "MATH221",
      "date": "2024-06-28T05:40:58Z",
      "difficulty": 4,
      "for_credit": true,
      "grade": "Not sure yet",
      "helpfulness": 5,
      "id": 39598483,
      "online": false,
      "professor_note": null,
      "quality": 5,
      "tags": [
        "Amazing lectures",
        "Inspirational",
        "Respected"
      ],
      "text": "Dr. Williams is a top-favourite professor in my opinion. His teaching style encouraged real understanding of a problem and applying methods learned in lecture to find the solution. There was a lot of work needed to study/do homework but in the end it paid off, and I surprisingly found myself really enjoying this math course thanks to Dr. Williams.",
      "textbook": true,
      "thumbs_down": 0,
      "thumbs_up": 0,
      "would_take_again": true
    },
    {
      "attendance": "non mandatory",
      "clarity": 5,
      "course": "MATH221",
      "date": "2024-05-10T19:50:00Z",
      "difficulty": 4,
      "for_credit": true,
      "grade": "A+",
      "helpfulness": 5,
      "id": 39275274,
      "online": false,
      "professor_note": null,
      "quality": 5,
      "tags": [
        "Caring",
        "Accessible outside class"
      ],
      "text": "His lectures are engaging and this class had tons of online resources available (mini-lecture videos covering specific topics, finals from different years, for example).  He's active on piazza and he's approachable during office hours and immediately after the lecture. Never made me feel dumb for having a question :) final was difficult tho lol",
      "textbook": null,
      "thumbs_down": 2,
      "thumbs_up": 0,
      "would_take_again": true
    }
  ],
  "lock_status": "none",
  "name": "Ben Williams",
  "rating": 3.7,
  "rating_distribution": {
    "1": 5,
    "2": 2,
    "3": 4,
    "4": 1,
    "5": 16
  },
  "ratings": 28,
  "school": {
    "city": "Vancouver",
    "country": "United States",
    "id": 1413,
    "name": "University of British Columbia",
    "state": "BC",
    "url": "https://www.ratemyprofessors.com/school/1413"
  },
  "similar": [
    {
      "id": 3064264,
      "name": "Balázs Elek",
      "rating": 5,
      "url": "https://www.ratemyprofessors.com/professor/3064264"
    },
    {
      "id": 2970225,
      "name": "Gabriel Currier",
      "rating": 5,
      "url": "https://www.ratemyprofessors.com/professor/2970225"
    },
    {
      "id": 2642846,
      "name": "Jens Malmquist",
      "rating": 5,
      "url": "https://www.ratemyprofessors.com/professor/2642846"
    }
  ],
  "top_tags": [],
  "url": "https://www.ratemyprofessors.com/professor/1835982",
  "would_take_again_percent": 78.3
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How is the professor identified?
Use the numeric profile ID or ratemyprofessors.com/professor URL.

### Are quality and difficulty one score?
No. They are separate feedback dimensions. A higher difficulty value does not mean a higher quality rating.

### Is latest_ratings the complete history?
No. Use the Professor Ratings API to browse the rating entries and apply its course filter.

### Can school and similar-profile entries be assumed identical?
No. Retain their separate IDs and verify school context when matching names.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/ratemyprofessors/ratemyprofessors-professor-api/1bd158ee-243b-4ab1-93b3-f3c52a11d164/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
