PyScorecard is an unofficial Python library for interacting with the US Department of Education's College Scorecard API.
Use the package manager pip to install PyScorecard.
pip install PyScorecard
from PyScorecard import PyScorecard
scorecard = PyScorecard()
scorecard.set_api_key("YOUR_API_KEY_HERE")
scorecard.set_year("2015")
scorecard.add_filter("school.degrees_awarded.predominant","=",["2","3"])
scorecard.add_field("school.name")
scorecard.add_field("ope6_id")
scorecard.add_fields(["cost.tuition.in_state","cost.tuition.out_of_state"])
data = scorecard.fetch_all()