University API
The University API provides information about over 80,000 universities, colleges and other institutions of higher learning in 227 countries and territories, including native-language names, acronyms, websites and email domains. US institutions also include enrollment, tuition, student-faculty ratios and degree types from the U.S. Department of Education.
Free users can search by name or country - premium users have access to advanced filters including location, email domain, institution level, enrollment, faculty ratios, and tuition.
Data is compiled from national education registries (such as IPEDS in the US and AISHE in India), Wikidata and the Research Organization Registry (ROR).
Coverage
| Country | Institutions |
|---|---|
| India | 27,500 |
| United States | 8,700 |
| Indonesia | 5,900 |
| China | 3,600 |
| Brazil | 2,700 |
| Japan | 2,000 |
| Canada | 1,800 |
| Germany | 1,400 |
| United Kingdom | 1,200 |
| Russia | 1,200 |
| Nigeria | 1,200 |
| France | 1,100 |
| 215 other countries and territories | 21,700 |
From 10,194 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 220ms | 230ms | 292ms | 460ms | 1086ms |
Didn't find what you were looking for? Suggest an improvement
https://api.api-ninjas.com/v1/university
Returns institutions matching the provided filters, closest name matches first, then by enrollment (largest first). At least one filter parameter is required. Free users can use name or country - all other filters are premium-only. Closed institutions are excluded unless status is set.
Parameters
nameoptionalThe name of the institution to search for. Can be a partial match (e.g., "Harvard" will match "Harvard University") and ignores case and accents. Also matches native-language names (e.g.,
東京大学), acronyms (e.g.,UNAM), former names, and the names of schools within a university (e.g., "Harvard Law School" returns Harvard University). At least one filter parameter (excluding offset/limit) must be provided.countryoptionalThe country to filter by: an English country name, or an ISO 3166 two- or three-letter code (e.g.,
Germany,DEorDEU). Case-insensitive.USAalso returns US territories such as Puerto Rico and Guam. At least one filter parameter (excluding offset/limit) must be provided.cityoptional Premium onlyThe city where the institution is located.
stateoptional Premium onlyThe state, province or region where the institution is located, as a code (e.g.,
MA,ON) or a name (e.g.,Bavaria).regionoptional Premium onlySame as
state.domainoptional Premium onlyAn email domain or email address, e.g.
student.mit.eduorjane@ox.ac.uk. Returns the institutions that use the domain; subdomains are matched to their parent domain. Main institutions are listed before their campuses and affiliated units.leveloptional Premium onlyThe type of institution. One of
university,college,polytechnic,community_college,vocationalorspecialized(e.g., art, music, medical, law, military or religious institutions).controloptional Premium onlyOwnership. One of
public,private_nonprofit,private_forprofitorprivate(private, profit status unknown).recognitionoptional Premium onlySet to
recognizedto return only institutions listed by a national education registry (e.g., IPEDS in the US, AISHE in India).statusoptional Premium onlyactive(default),closedorall. Closed institutions have stopped operating or merged into another institution.idoptional Premium onlyReturn a single institution by its
id(from a previous response). Closed institutions are included.min_faculty_ratiooptional Premium onlyMinimum student-to-faculty ratio as a number (e.g.,
15for 15:1 ratio). US institutions only.max_faculty_ratiooptional Premium onlyMaximum student-to-faculty ratio as a number (e.g.,
20for 20:1 ratio). US institutions only.min_enrolledoptional Premium onlyMinimum number of enrolled students.
max_enrolledoptional Premium onlyMaximum number of enrolled students.
min_tuitionoptional Premium onlyMinimum published annual tuition and fees (in USD). US institutions only.
max_tuitionoptional Premium onlyMaximum published annual tuition and fees (in USD). US institutions only.
offsetoptional Premium onlyThe number of results to skip. Must be zero or a positive integer. Default is
0.limitoptional Premium onlyThe maximum number of results to return. Must be between
1and30. Default is10for premium users, fixed at5for free users.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
The /v1/university endpoint returns a JSON array of objects, or an error if the request is unsuccessful. Not every field is returned for every institution — fields marked optional below are only included when data is available for that particular record. Fields noted as US-only come from the U.S. Department of Education and are not available elsewhere.
nameThe full name of the institution, in English where available.
degree_typesAn array of degree types offered by the institution (e.g., "Bachelor's degree", "Master's degree"). US institutions only.
addressThe street address of the institution.
cityThe city where the institution is located.
stateThe state, province or region where the institution is located: a code for US and Canadian institutions (e.g., "MA" for Massachusetts), the name elsewhere (e.g., "Bavaria").
postal_codeThe postal/zip code of the institution.
countryThe country where the institution is located: "USA" for the US and its territories, "CANADA" for Canada, and the English country name elsewhere (e.g., "Germany").
countyThe county where the institution is located. US institutions only.
timezoneThe timezone abbreviation for US and Canadian institutions (e.g., "EST", "PST"). See
timezone_ianafor all institutions.latitudeThe latitude coordinate of the institution, as a string.
longitudeThe longitude coordinate of the institution, as a string.
phoneThe contact phone number of the institution.
emailThe contact email address of the institution. Only returned for some records.
websiteThe official website URL of the institution.
institution_typeThe type of institution (e.g., "Public", "Private (Not For Profit)", "Private (For Profit)"). Canadian institutions show a category such as "University", "College" or "Career College".
yearsThe length of the institution's longest undergraduate programs: "4 Years", "2 Years" or "Under 2 Years". US institutions only.
enrollmentThe number of enrolled students, as a string. See
enrollment_year.student_faculty_ratioThe student-to-faculty ratio (e.g., "7 to 1"). US institutions only.
tuitionPublished in-state tuition and fees for the latest academic year, in USD. US institutions only.
idUnique API Ninjas institution ID. Stays the same across data updates; pass it as the
idparameter to fetch this institution again.country_codeISO 3166-1 two-letter country code (e.g., "US", "DE").
region_codeISO 3166-2 code of the state, province or region, without the country prefix (e.g., "MA", "BY").
native_nameThe name in the local language, when it differs from
name(e.g., "Technische Universität München").aliasesAn array of other names: official and translated names, former names and common short forms.
acronymThe common acronym (e.g., "TUM", "UNAM").
domainsAn array of web and email domains used by the institution (e.g., "harvard.edu").
foundedThe year the institution was founded.
levelThe type of institution: "university", "college", "polytechnic", "community_college", "vocational" or "specialized".
controlOwnership: "public", "private_nonprofit", "private_forprofit" or "private".
recognition"recognized" when the institution is listed by a national education registry (e.g., IPEDS in the US, AISHE in India).
status"active", or "closed" for institutions that have stopped operating or merged into another institution.
parent_idThe
idof the parent institution, for branch campuses and constituent or affiliated colleges.timezone_ianaThe IANA timezone of the institution (e.g., "America/New_York", "Europe/Berlin").
enrollment_yearThe year the
enrollmentfigure refers to.tuition_in_statePublished in-state tuition and fees for the latest academic year, in USD. US institutions only.
tuition_out_of_statePublished out-of-state tuition and fees for the latest academic year, in USD. US institutions only.
ror_idThe Research Organization Registry ID of the institution (e.g., "03vek6s52").
wikidata_idThe Wikidata item ID of the institution (e.g., "Q13371").
research_outputThe number of scholarly works affiliated with the institution, from OpenAlex.
Live Demo
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/university?name=Harvard&country=USA" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
Frequently Asked Questions
Can I use the University API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the University API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the University API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the University API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.What coverage does the University API provide?
The University API covers over 80,000 universities, colleges and other institutions of higher learning in 227 countries and territories, compiled from national education registries (such as IPEDS in the US and AISHE in India), Wikidata and the Research Organization Registry. Filter bycountrywith an English country name or an ISO code (for exampleGermany,DEorDEU). Enrollment is available for many institutions, while tuition, degree types and student-faculty ratios come from the U.S. Department of Education and are only returned for US institutions. To look up cities or countries more broadly, see the related City API and Country API.How do I search for a specific university by name?
Pass thenameparameter, which supports partial matches (for example, 'Harvard' will match 'Harvard University') and ignores case and accents. It also matches native-language names (such as東京大学), acronyms (such asUNAM), former names, and the names of schools within a university, so 'Harvard Law School' returns Harvard University. Free users can search bynameorcountry, while advanced filters require a premium plan.Can I look up a university from an email address or domain?
Yes. Premium users can pass an email address or domain as thedomainparameter (for examplejane@student.mit.eduorox.ac.uk); subdomains are matched to their parent domain, and the main institution is listed before its campuses and affiliated units. This is useful for verifying student or staff email addresses. Each result also includes adomainsarray. To check that an address can receive mail at all, see the Validate Email API.What fields does the University API response include?
Each result is a JSON object with fields such asname,native_name,aliases,city,state,country,country_code,latitude,longitude,website,domains,founded,level,control, a stableid, and, for US institutions,degree_types,enrollment,student_faculty_ratioandtuition. Fields are only included when data is available; on a failed request you instead receive an error.Can I filter universities by enrollment, tuition, or location?
Yes, premium users can use advanced filters includingcity,state,domain,level(such asuniversityorcommunity_college),control(public or private),min_enrolled,max_enrolled,min_tuition,max_tuition,min_faculty_ratioandmax_faculty_ratio, plusoffsetandlimitfor pagination. Tuition and faculty-ratio filters apply to US institutions only. Closed institutions are excluded unless you setstatus. These filters require a premium plan, which you can start by registering.
Explore API integration use cases for recommended APIs and workflow examples.