# RateMyProfessors compare professors API

Compare two or three 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 ids, output, raw, and retrieve structured data including professor identifier, source quality rating, source difficulty rating, rating count, and highest quality-rated profile identifier for feedback comparison, and profile matching.

Documentation: https://openany.si/ratemyprofessors/ratemyprofessors-compare-professors-api/5c572211-3bb0-4372-9de5-e5bb4f4d2228/
API ID: 5c572211-3bb0-4372-9de5-e5bb4f4d2228
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/ratemyprofessors/v1/compare
Page update time: 2026-12-03T02:45:46.895Z
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.680Z. 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 Compare API

Pass two or three comma-separated professor IDs or links in ids. Comparison selectors such as highest\_rated and easiest refer to different feedback measures; retain counts and school identities with each profile.

## What You Can Build

- **Feedback comparison**: Place separate feedback dimensions side by side.
- **Profile matching**: Confirm school identities before comparing similarly named professors.

## Returned Data

| Field | Meaning |
| --- | --- |
| `professors[].id` | Professor identifier |
| `professors[].rating` | Source quality rating |
| `professors[].difficulty` | Source difficulty rating |
| `professors[].ratings` | Rating count |
| `highest_rated` | Highest quality-rated profile identifier |
| `easiest` | Lowest difficulty profile identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RateMyProfessors compare professors 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": {
        "ids": {
          "type": "string",
          "description": "2 or 3 professor ids or professor links, comma-separated."
        },
        "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": [
        "ids"
      ]
    },
    "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"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "easiest": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "highest_rated": {
      "type": "integer"
    },
    "most_would_take_again": {
      "type": "integer"
    },
    "professors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "courses": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "ratings": {
                  "type": "integer"
                }
              }
            }
          },
          "department": {
            "type": "string"
          },
          "difficulty": {
            "type": "number"
          },
          "distribution": {
            "type": "object",
            "properties": {
              "awesome": {
                "type": "integer"
              },
              "awful": {
                "type": "integer"
              },
              "good": {
                "type": "integer"
              },
              "great": {
                "type": "integer"
              },
              "ok": {
                "type": "integer"
              }
            }
          },
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "rating": {
            "type": "number"
          },
          "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"
              }
            }
          },
          "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/compare?ids=1835982%2C2084466&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,
  "count": 2,
  "credits_used": 1,
  "easiest": 2084466,
  "fetched_at": "2026-11-19T12:19:35.806Z",
  "highest_rated": 2084466,
  "most_would_take_again": 2084466,
  "professors": [
    {
      "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
        }
      ],
      "department": "Mathematics",
      "difficulty": 3.7,
      "distribution": {
        "awesome": 16,
        "awful": 5,
        "good": 4,
        "great": 1,
        "ok": 2
      },
      "id": 1835982,
      "name": "Ben Williams",
      "rating": 3.7,
      "ratings": 28,
      "school": {
        "city": "Vancouver",
        "country": "United States",
        "id": 1413,
        "name": "University of British Columbia",
        "state": "BC",
        "url": "https://www.ratemyprofessors.com/school/1413"
      },
      "top_tags": [],
      "url": "https://www.ratemyprofessors.com/professor/1835982",
      "would_take_again_percent": 78.3
    },
    {
      "courses": [
        {
          "code": "FRE101",
          "ratings": 2
        },
        {
          "code": "FRE1010",
          "ratings": 4
        }
      ],
      "department": "Foreign Languages",
      "difficulty": 2.8,
      "distribution": {
        "awesome": 4,
        "awful": 0,
        "good": 1,
        "great": 1,
        "ok": 0
      },
      "id": 2084466,
      "name": "Elizabeth Cramer",
      "rating": 4.5,
      "ratings": 6,
      "school": {
        "city": "",
        "country": "United States",
        "id": 43,
        "name": "Appalachian State University",
        "state": "",
        "url": "https://www.ratemyprofessors.com/school/43"
      },
      "top_tags": [],
      "url": "https://www.ratemyprofessors.com/professor/2084466",
      "would_take_again_percent": 100
    }
  ]
}
```

## 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 many profiles can I compare?
ids accepts two or three professor IDs or source links, comma-separated.

### Is easiest the highest quality rating?
No. easiest and highest_rated describe different measures. Preserve difficulty and quality separately.

### What does would_take_again_percent mean?
It is the source share of feedback expressing willingness to take another class, not a completion or admission probability.

### Do comparison results establish objective teaching quality?
They summarize source student feedback. Keep rating counts, course context and profile identities visible.

### 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-compare-professors-api/5c572211-3bb0-4372-9de5-e5bb4f4d2228/

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