Discover/ShanghaiRanking API
live

ShanghaiRanking APIshanghairanking.com

Access ARWU world university rankings, GRAS subject rankings, and university profiles via the ShanghaiRanking API. Filter by year, region, and subject.

Endpoint health
verified 1h ago
get_university_detail
search_universities
get_chinese_universities
get_arwu_rankings
get_gras_subject_rankings
4/5 passing latest checkself-healing
Endpoints
5
Updated
11d ago

What is the ShanghaiRanking API?

The ShanghaiRanking API provides structured access to university rankings data across 5 endpoints, covering ARWU world rankings, GRAS subject-level rankings, Chinese university lists, and individual university profiles. The get_arwu_rankings endpoint returns ranked universities with scores, national ranks, and region codes for a given year, with optional filtering by region name.

Try it
Maximum number of universities to return.
api.parse.bot/scraper/9a025ecd-9ccb-4cf6-a454-be52e290b946/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/9a025ecd-9ccb-4cf6-a454-be52e290b946/get_chinese_universities?limit=10' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace shanghairanking-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Shanghai Ranking API — world rankings, subject rankings, and university search."""
from parse_apis.Shanghai_Ranking_API import (
    ShanghaiRanking, Year, SubjectCode, NotFoundError
)

client = ShanghaiRanking()

# Search for universities by name, inspect the top result.
result = client.university_summaries.search(query="MIT", limit=1).first()
if result:
    print(result.name, result.ranking, result.region, result.ranking_info)

# ARWU world rankings for 2024, bounded iteration.
for entry in client.ranked_universities.arwu(year=Year._2024, limit=5):
    print(entry.rank, entry.name, entry.score, entry.region)

# GRAS subject rankings — Computer Science & Engineering.
for entry in client.ranked_universities.gras(subject_code=SubjectCode.AS0210, year=Year._2024, limit=3):
    print(entry.rank, entry.name, entry.score, entry.region_code)

# List Chinese universities with their world ranking positions.
for cu in client.chinese_universities.list(limit=5):
    print(cu.name, cu.world_ranking, cu.slug)

# Typed error handling around a search call.
try:
    results = client.university_summaries.search(query="NonExistentXYZ123", limit=1).first()
    if results:
        print(results.name)
    else:
        print("No results found for query")
except NotFoundError as exc:
    print(f"Not found: {exc}")

print("exercised: university_summaries.search / ranked_universities.arwu / ranked_universities.gras / chinese_universities.list")
All endpoints · 5 totalmissing one? ·

Retrieve a list of Chinese universities with their current ARWU world ranking position. Each entry includes university name, slug identifier, world ranking, and region. The list is ordered by world ranking. Use the slug to fetch full university details via get_university_detail.

Input
ParamTypeDescription
limitintegerMaximum number of universities to return.
Response
{
  "type": "object",
  "fields": {
    "total": "integer total count of universities returned",
    "universities": "array of university objects with name, slug, world_ranking, cs_ranking, website, region"
  },
  "sample": {
    "data": {
      "total": 1,
      "universities": [
        {
          "name": "Tsinghua University",
          "slug": "tsinghua-university",
          "region": "China",
          "website": "N/A",
          "cs_ranking": "N/A",
          "world_ranking": "18"
        }
      ]
    },
    "status": "success"
  }
}

About the ShanghaiRanking API

ARWU and GRAS Rankings

The get_arwu_rankings endpoint accepts a year parameter (e.g. '2024') and an optional region filter using full region names such as 'United States' or 'China Mainland'. Each result in the rankings array includes rank, name, slug, region, region_code, national_rank, and score. The get_gras_subject_rankings endpoint works similarly but also requires a subject_code — for example, 'AS0210' for Computer Science & Engineering or 'AS0101' for Mathematics — and returns the same ranking shape with the subject code echoed back in the response.

University Search and Chinese University List

The search_universities endpoint accepts a query string for substring name matching and an optional region filter. Results include nameEn, univLogo, univUp (the slug used in other endpoints), region, rankingInfo, and ranking. The get_chinese_universities endpoint returns a flat list of Chinese universities with world_ranking, cs_ranking, website, and region, and accepts a limit parameter to cap result size.

University Detail Profiles

The get_university_detail endpoint takes a slug (obtainable from search_universities or get_chinese_universities) and returns a profile including name, address, website, found_year, and a subject_rankings array listing each subject and the university's rank in it. Slugs follow a human-readable format such as 'harvard-university' or 'tsinghua-university'.

Reliability & maintenanceVerified

The ShanghaiRanking API is a managed, monitored endpoint for shanghairanking.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when shanghairanking.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official shanghairanking.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1h ago
Latest check
4/5 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a university comparison tool using ARWU scores and national ranks from get_arwu_rankings.
  • Track year-over-year ranking changes for a specific institution by querying multiple years.
  • Filter top-ranked universities by region to generate country-specific leaderboards.
  • Retrieve subject-specific standings for Computer Science or Mathematics programs via get_gras_subject_rankings.
  • Populate institution profiles with founding year, address, and website from get_university_detail.
  • Search universities by partial name and region for autocomplete or lookup features using search_universities.
  • List Chinese universities with their world and CS rankings for a regional higher-education dashboard.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does ShanghaiRanking have an official developer API?+
ShanghaiRanking does not publish an official public developer API. This Parse API provides structured access to the same rankings data available on shanghairanking.com.
What does the `get_gras_subject_rankings` endpoint return, and which subject codes are supported?+
It returns a ranked list of universities for a given subject, including rank, name, slug, region, national_rank, and score. The documented subject codes are 'AS0210' for Computer Science & Engineering and 'AS0101' for Mathematics. Other subject codes may work but are not explicitly listed in the current spec.
Does the API cover historical rankings beyond 2024?+
The year parameter on get_arwu_rankings and get_gras_subject_rankings accepts arbitrary year strings, but coverage of earlier years depends on what ShanghaiRanking publishes. Results for years with no data may be empty. You can fork this API on Parse and revise it to add explicit year-range validation or a dedicated historical-years endpoint.
Does the API return citation counts, h-index, or raw indicator scores used to compute ARWU rankings?+
Not currently. The API exposes aggregate score, rank, and national_rank fields, but not the underlying sub-indicators (such as alumni Nobel laureates, highly cited researchers, or Nature/Science papers) that feed into the ARWU methodology. You can fork it on Parse and revise to add the missing endpoint if those fields become accessible.
Can I paginate through ARWU results, or is the full ranked list returned at once?+
The get_arwu_rankings endpoint does not expose pagination parameters — it returns all matching universities in a single response. The get_chinese_universities endpoint accepts a limit integer to cap the result count, but there is no offset or cursor parameter across any endpoint.
Page content last updated . Spec covers 5 endpoints from shanghairanking.com.
Related APIs in EducationSee all →
timeshighereducation.com API
Access Times Higher Education data including global university rankings across dozens of subject areas, detailed university profiles with scoring breakdowns, academic job listings, and site-wide search for articles and university pages.
cucas.cn API
Search for scholarships and study programs across Chinese universities, browse detailed scholarship information, and discover the latest funding opportunities available through China's official university admission system. Find universities and compare academic programs to plan your studies in China.
nirfindia.org API
Access India's NIRF rankings across multiple years and categories to compare higher education institution scores, find participating colleges, and search for specific institutions by name. Get detailed ranking parameters and stay updated with the latest notifications about institutional performance and rankings.
yz.chsi.com.cn API
Search and explore graduate and doctoral programs across Chinese institutions on yz.chsi.com.cn. Browse institutions by name, province, or major; retrieve program details and school information; and access admission brochures to compare programs and enrollment requirements in one place.
shiksha.com API
Search and browse Shiksha colleges by stream/course, then fetch detailed institute profiles and course offerings, plus upcoming exam schedules by stream.
gradschools.com API
Search graduate programs across multiple categories and discover articles about funding, financial aid, and admissions to help guide your grad school journey. Find specific program information and detailed resources all in one place to support your application and enrollment decisions.
scholarshipportal.com API
Search and discover scholarships, degree programmes, and universities across StudyPortals' global education database, with the ability to filter by countries, disciplines, and other criteria. Get detailed information about specific scholarships and programmes to compare educational opportunities that match your academic interests.
YÖK Atlas API
Access Turkey's official higher education database via YÖK Atlas. Search and filter universities and degree programs by city, score type, and field of study; retrieve admission statistics, success rankings, quotas, tuition details, graduate exam outcomes, and full university profiles.