Filter by ownership (1=Public, 2=Private nonprofit, 3=Private for-profit)
Constraints: {'enum': [1, 2, 3]}
school.state(string, query, optional)
Filter by state abbreviation (e.g., 'CA', 'NY')
school.zip(string, query, optional)
Filter by ZIP code
sort(string, query, optional)
Field to sort by
Examples (3)
Search colleges by namecurl
curl 'https://collegescorecard.ed.gov/schools?school.name=Harvard' \
-d '"<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n"'
import requests
resp = requests.get(
"https://collegescorecard.ed.gov/schools",
params={
'school.name': 'Harvard',
},
json="<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n",
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("college-scorecard")
result = api.fetch("schools", school.name="Harvard")
for item in result:
print(item)
const body = "<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n";
const resp = await fetch("https://collegescorecard.ed.gov/schools?school.name=Harvard", {
body: JSON.stringify(body),
});
const data = await resp.json();
Search colleges by state with limited fieldscurl
curl 'https://collegescorecard.ed.gov/schools?school.state=CA&fields=id%2Cschool.name%2Cschool.city%2Clatest.student.size' \
-d '"<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n"'
import requests
resp = requests.get(
"https://collegescorecard.ed.gov/schools",
params={
'school.state': 'CA',
'fields': 'id,school.name,school.city,latest.student.size',
},
json="<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n",
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("college-scorecard")
result = api.fetch("schools", school.state="CA", fields="id,school.name,school.city,latest.student.size")
for item in result:
print(item)
const body = "<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n";
const resp = await fetch("https://collegescorecard.ed.gov/schools?school.state=CA&fields=id%2Cschool.name%2Cschool.city%2Clatest.student.size", {
body: JSON.stringify(body),
});
const data = await resp.json();
Search with paginationcurl
curl 'https://collegescorecard.ed.gov/schools?school.city=Boston&_page=0&_per_page=20' \
-d '"<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n"'
import requests
resp = requests.get(
"https://collegescorecard.ed.gov/schools",
params={
'school.city': 'Boston',
'_page': '0',
'_per_page': '20',
},
json="<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n",
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("college-scorecard")
result = api.fetch("schools", school.city="Boston", _page=0, _per_page=20)
for item in result:
print(item)
const body = "<html>\n<head><title>404 Not Found</title></head>\n<body>\n<h1>404 Not Found</h1>\n<ul>\n<li>Code: NoSuchKey</li>\n<li>Message: The specified key does not exist.</li>\n<li>Key: schools/index.html</li>\n<li>RequestId: JRC4RVQJ345Q8GK8</li>\n<li>HostId: n2cH0GZ5wkMs+Kj3EaRBs9QWP81KEteSghx7+GRRV2RFuic/ryqMuDYUpzvgGYt+ZCAzSr+Sc+UaLHc6SaaOKw031STKwXC3</li>\n</ul>\n<hr/>\n</body>\n</html>\n";
const resp = await fetch("https://collegescorecard.ed.gov/schools?school.city=Boston&_page=0&_per_page=20", {
body: JSON.stringify(body),
});
const data = await resp.json();