Overview
A university lookup API that answers two questions. Search by name, country or state to get institutions with their domains and websites; US results come from the NCES IPEDS directory with address, coordinates, control, level, highest degree, HBCU and land-grant flags. Or send a domain or a whole email address and the API says whether it is academic: it matches the domain and its parents against every institution's domains, then falls back to academic suffixes such as .edu and .ac.uk. Paid plans unlock the IPEDS figures for US institutions: enrollment, student-faculty ratio, admission rate, in-state and out-of-state tuition, graduate tuition and room and board.
Live Test University Lookup API →
Endpoint
One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.
curl "https://api.apiverve.com/v1/universitylookup?name=Stanford&domain=stanford.edu&email=jane%40cs.stanford.edu&country=US&state=CA&limit=10" \
-H "x-api-key: your_api_key_here"const res = await fetch('https://api.apiverve.com/v1/universitylookup?name=Stanford&domain=stanford.edu&email=jane%40cs.stanford.edu&country=US&state=CA&limit=10', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/universitylookup?name=Stanford&domain=stanford.edu&email=jane%40cs.stanford.edu&country=US&state=CA&limit=10",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/universitylookup?name=Stanford&domain=stanford.edu&email=jane%40cs.stanford.edu&country=US&state=CA&limit=10", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.
Authentication
Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.
A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.
Parameters
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.
| Parameter | Type | Description |
|---|---|---|
nameOptional | string | University name or words from it; US abbreviations match too length 0–150 |
domainOptional | string | Domain to check, e.g. stanford.edu; subdomains match their institution length 0–253 · domain |
emailOptional | string | Email address to check; its domain is used length 0–320 · email |
countryOptional | string | Country name or two-letter code length 0–60 |
stateOptional | string | State or province (two-letter code in the US) length 0–60 |
limitOptional | integer | Maximum universities to return (1-50) default 10 · range 1–50 |
Response
Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.
{
"status": "ok",
"error": null,
"data": {
"domain": null,
"isAcademicDomain": null,
"matchType": null,
"matchedDomain": null,
"count": 1,
"totalMatches": 1,
"universities": [
{
"id": "us-166683",
"name": "Massachusetts Institute of Technology",
"aliases": [
"MIT",
"M.I.T."
],
"country": "United States",
"countryCode": "US",
"stateProvince": "MA",
"city": "Cambridge",
"address": "77 Massachusetts Avenue",
"zip": "02139-4301",
"latitude": 42.359243,
"longitude": -71.093226,
"timezone": "America/New_York",
"domains": [
"mit.edu",
"web.mit.edu"
],
"website": "https://web.mit.edu/",
"phone": "6172531000",
"ipedsUnitId": 166683,
"control": "private_nonprofit",
"level": "four_year",
"highestDegree": "doctorate",
"offersUndergraduate": true,
"offersGraduate": true,
"hbcu": false,
"tribal": false,
"landGrant": true,
"locale": "city_midsize",
"sizeBand": "10000_19999",
"system": null,
"stats": {
"enrollmentTotal": 11920,
"enrollmentUndergraduate": 4576,
"enrollmentGraduate": 7344,
"studentFacultyRatio": 3,
"admissionRate": 5,
"tuitionInDistrict": 60156,
"tuitionInState": 60156,
"tuitionOutOfState": 60156,
"graduateTuitionInState": 59750,
"graduateTuitionOutOfState": 59750,
"roomAndBoard": 19390,
"tuitionYear": "2023-24",
"enrollmentYear": 2023
}
}
]
}
}
Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
domain | object | null | The domain checked (domain and email lookups); null for searches |
isAcademicDomain | object | null | The domain belongs to a university or ends in an academic suffix; null for searches |
matchType | object | null | exact, subdomain or academic_suffix when the domain is academic; null otherwise |
matchedDomain | object | null | The institution domain that matched; null when none did |
count | number | 1 | Number of universities returned |
totalMatches | number | 1 | Number of universities that matched before the limit |
universities | array[1] | ||
id | string | "us-166683" | Our identifier: us-<IPEDS unit id> for US institutions, <country>-<name slug> elsewhere |
name | string | "Massachusetts Institute of Technology" | Institution name |
aliases | array | [MIT, ...] | Other names and abbreviations the institution reports (US) |
country | string | "United States" | Country name |
countryCode | string | "US" | ISO 3166-1 alpha-2 country code |
stateProvince | string | "MA" | State (two-letter code in the US) or province, where known |
city | string | "Cambridge" | City (US) |
address | string | "77 Massachusetts Avenue" | Street address (US) |
zip | string | "02139-4301" | ZIP code (US) |
latitude | number | 42.359243 | Latitude of the campus (US) |
longitude | number | -71.093226 | Longitude of the campus (US) |
timezone | string | "America/New_York" | IANA time zone of the campus (US) |
domains | array | [mit.edu, ...] | Web and email domains of the institution |
website | string | "https://web.mit.edu/" | Main website |
phone | string | "6172531000" | Main phone number, 10 digits (US) |
ipedsUnitId | number | 166683 | IPEDS unit id (US) |
control | string | "private_nonprofit" | public, private_nonprofit or private_for_profit (US) |
level | string | "four_year" | four_year, two_year or less_than_two_year (US) |
highestDegree | string | "doctorate" | doctorate, master, bachelor, associate or non_degree (US) |
offersUndergraduate | boolean | true | Offers undergraduate programmes (US) |
offersGraduate | boolean | true | Offers graduate programmes (US) |
hbcu | boolean | false | Historically Black college or university (US) |
tribal | boolean | false | Tribal college (US) |
landGrant | boolean | true | Land-grant institution (US) |
locale | string | "city_midsize" | Campus setting, e.g. city_large, suburb_midsize, rural_remote (US) |
sizeBand | string | "10000_19999" | Enrollment band: under_1000, 1000_4999, 5000_9999, 10000_19999 or 20000_plus (US) |
system | object | null | Multi-campus system the institution belongs to (US) |
stats | object | {...} | IPEDS enrollment, admissions and cost figures (US); null elsewhere |
enrollmentTotalPremium | number | 11920 | 12-month or fall total enrollment |
enrollmentUndergraduatePremium | number | 4576 | Undergraduate enrollment |
enrollmentGraduatePremium | number | 7344 | Graduate enrollment |
studentFacultyRatioPremium | number | 3 | Students per faculty member |
admissionRatePremium | number | 5 | Percent of applicants admitted |
tuitionInDistrictPremium | number | 60156 | In-district undergraduate tuition and fees, US dollars per year |
tuitionInStatePremium | number | 60156 | In-state undergraduate tuition and fees, US dollars per year |
tuitionOutOfStatePremium | number | 60156 | Out-of-state undergraduate tuition and fees, US dollars per year |
graduateTuitionInStatePremium | number | 59750 | In-state graduate tuition, US dollars per year |
graduateTuitionOutOfStatePremium | number | 59750 | Out-of-state graduate tuition, US dollars per year |
roomAndBoardPremium | number | 19390 | On-campus room and board, US dollars per year |
tuitionYear | string | "2023-24" | Academic year of the cost figures, e.g. 2023-24 |
enrollmentYear | number | 2023 | IPEDS collection year of the enrollment and admissions figures |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read error to tell them apart; see rate limits. |
Use cases
- Student Discount Verification
- Check that a sign-up email belongs to a university before granting an education plan.
- Lead Enrichment
- Turn the domain on an inbound lead into the university behind it, with country and website.
- College Search
- List US colleges in a state with control, level, enrollment and tuition for comparison tools.
- Form Autocomplete
- Suggest institution names as students type their school on an application form.
Other ways to use University Lookup
Set up University Lookup on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.
Related
More in Reference Data: