# QS ranking table API

Browse QS ranking rows by edition, country, city and university name via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, per_page, ranking, and retrieve structured data including resolved edition year, university name, overall score, and per-indicator source values for ranking comparison, and rank display.

Documentation: https://openany.si/market/apis/qs-top-universities/qs-top-universities-qs-ranking-table-api/?offering=edd9ba30-9872-449a-a616-ebb7dca85d0f
API ID: edd9ba30-9872-449a-a616-ebb7dca85d0f
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/qs/v1/rankings
Page update time: 2026-12-03T02:45:46.859Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:45:45.372Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "QS ranking table 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": {
        "ranking": {
          "type": "string",
          "description": "Ranking link or path, e.g. `world-university-rankings/2026`, `university-subject-rankings/computer-science-information-systems`, `sustainability-rankings`, or its id from `/qs/v1/ranking-list`. Default: the latest World University Rankings."
        },
        "year": {
          "type": "string",
          "description": "Edition year, e.g. `2025` (picks that year's table of the same ranking)."
        },
        "region": {
          "type": "string",
          "description": "Region, e.g. `Europe` or `Asia`."
        },
        "country": {
          "type": "string",
          "description": "Two-letter country code, lower case, e.g. `gb` (several: comma-separated)."
        },
        "city": {
          "type": "string",
          "description": "City, e.g. `London`."
        },
        "q": {
          "type": "string",
          "description": "Search the table by university name, e.g. `tokyo`."
        },
        "sort_by": {
          "type": "string",
          "description": "`rank`, `university`, `overallscore` or an indicator (`indicator_76`, ids in the rows and in `/qs/v1/ranking-filters`)."
        },
        "order": {
          "type": "string",
          "description": "`asc` or `desc`.",
          "enum": [
            "asc",
            "desc"
          ]
        },
        "study_level": {
          "type": "string",
          "description": "Only universities offering a study level: 2 Bachelors, 3 Masters, 4 MBA, 5 PhD.",
          "enum": [
            "2",
            "3",
            "4",
            "5"
          ]
        },
        "subject": {
          "type": "string",
          "description": "Only universities offering a subject (subject id from `/qs/v1/ranking-filters`)."
        },
        "page": {
          "type": "integer",
          "description": "Page number, default 1."
        },
        "per_page": {
          "type": "integer",
          "description": "Rows per page (1-100), default 50."
        },
        "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."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {}
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "advanced_profile": {
            "type": "boolean"
          },
          "city": {
            "type": "string"
          },
          "core_id": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "dagger": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "indicators": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "group": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "rank": {
                  "type": "string"
                },
                "score": {
                  "type": "number"
                }
              }
            }
          },
          "logo": {
            "type": "string"
          },
          "more_info": {
            "type": "array",
            "items": {}
          },
          "name": {
            "type": "string"
          },
          "overall_score": {
            "type": "integer"
          },
          "overall_score_display": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "qs_stars": {
            "type": "array",
            "items": {}
          },
          "rank": {
            "type": "integer"
          },
          "rank_display": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "stars": {
            "type": "null"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "per_page": {
      "type": "integer"
    },
    "ranking": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "year": {
          "type": "integer"
        }
      }
    },
    "total": {
      "type": "integer"
    },
    "total_pages": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/qs/v1/rankings?output=json&per_page=1&ranking=world-university-rankings%2F2026&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
{
  "applied_filters": {},
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:19:33.364Z",
  "items": [
    {
      "advanced_profile": false,
      "city": "Cambridge",
      "core_id": "410",
      "country": "United States",
      "dagger": false,
      "id": "294850",
      "indicators": [
        {
          "group": "Research & Discovery",
          "id": "73",
          "name": "Citations per Faculty",
          "rank": "7",
          "score": 100
        },
        {
          "group": "Research & Discovery",
          "id": "76",
          "name": "Academic Reputation",
          "rank": "4",
          "score": 100
        },
        {
          "group": "Learning Experience",
          "id": "36",
          "name": "Faculty Student Ratio",
          "rank": "16",
          "score": 100
        },
        {
          "group": "Employability",
          "id": "77",
          "name": "Employer Reputation",
          "rank": "2",
          "score": 100
        },
        {
          "group": "Employability",
          "id": "3819456",
          "name": "Employment Outcomes",
          "rank": "7",
          "score": 100
        },
        {
          "group": "Global Engagement",
          "id": "14",
          "name": "International Student Ratio",
          "rank": "153",
          "score": 91.6
        },
        {
          "group": "Global Engagement",
          "id": "15",
          "name": "International Research Network",
          "rank": "98",
          "score": 94.1
        },
        {
          "group": "Global Engagement",
          "id": "18",
          "name": "International Faculty Ratio",
          "rank": "63",
          "score": 100
        },
        {
          "group": "Global Engagement",
          "id": "3924415",
          "name": "International Student Diversity",
          "rank": "130",
          "score": 92.3
        },
        {
          "group": "Sustainability",
          "id": "3897497",
          "name": "Sustainability Score",
          "rank": "33",
          "score": 93.8
        }
      ],
      "logo": "https://www.topuniversities.com/sites/default/files/massachusetts-institute-of-technology-mit_410_medium.jpg",
      "more_info": [],
      "name": "Massachusetts Institute of Technology (MIT)",
      "overall_score": 100,
      "overall_score_display": "100",
      "path": "/universities/massachusetts-institute-technology-mit",
      "qs_stars": [],
      "rank": 1,
      "rank_display": "1",
      "region": "North America",
      "stars": null,
      "url": "https://www.topuniversities.com/universities/massachusetts-institute-technology-mit"
    }
  ],
  "next_page": 2,
  "page": 1,
  "per_page": 1,
  "ranking": {
    "id": "4061771",
    "path": "/world-university-rankings/2026",
    "title": "QS World University Rankings 2026",
    "url": "https://www.topuniversities.com/world-university-rankings/2026",
    "year": 2026
  },
  "total": 1504,
  "total_pages": 1504
}
```

## 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.

## Available implementations
- apish: https://openany.si/market/apis/qs-top-universities/qs-top-universities-qs-ranking-table-api/?offering=edd9ba30-9872-449a-a616-ebb7dca85d0f

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