The Course Reqs API returns a a course's information and all of its pre-requisites, co-requisites, and equivalencies. For its pre-requisites, it returns all of the course's pre-requisites and each of the pre-requisites' pre-requisites until it reaches the bottom level at which there are no pre-requisites left.

tl;dr The API returns the entire pre-requisite chain of the specified course. For example: [https://www.course-reqs.com/api/course/ubc/cpsc/310.](https://www.course-reqs.com/api/course/ubc/cpsc/310)

More info...

API Documentation

🔗 Course Reqs API & FlowChart GitHub

🔗 Course Reqs Scraper GitHub

✨ Projects Using the Course Reqs API