Skip to main content

API Reference

API endpoint: http://api.utdnebula.com/

The Nebula API allows you to query for data regarding UTD class sections as sourced from Coursebook.

API key is in the HackUTD server in the #project-nebula-general chat.

Authentication

Every request to the Nebula Data API requires a valid API key included in the HTTP header Authorization.

GET /v1/sections HTTP/1.1
Authorization: apikey

An example of code that would search for sections with course number 2020 and print the output to the console:

fetch('https://api.utdnebula.com/v1/sections/search?course_number=2020', {
method: 'GET',
headers: {
Authorization: 'dd1h55UQUb8x5nQIPW2iJ1ABaIDx9iv7',
},
}).then((resp) => {
resp.json().then((json) => {
console.log(json);
});
});

Sections

Sections are specific instantiations of a course with a unique section ID⁠—for example, ACCT 2301 would be a general course classification, while acct2301.001.21f would represent an instance of ACCT 2301, taught by a professor at a specific time during the Fall 2021 semester. An API request with acct2301.001.21f would return data similar to that shown by Coursebook for ACCT 2301.001 during term 2021 Fall.

/v1/sections/id

ValueDescriptionExample
idSection Nameacct2301.001.21f
Returns
{
"term": "string",
"title": "string",
"course_number": "string",
"school": "string",
"location": "string",
"activity_type": "string",
"class_number": "string",
"days": "string",
"assistants": "string",
"times": "string",
"topic": "string",
"core_area": "string",
"department": "string",
"section_name": "string",
"course_prefix": "string",
"instructors": "string",
"section_number": "string"
}

The following specification allows for section querying:

/v1/sections/search?property=value

PropertyDescriptionExample
activity_typeWhether the section is a lecture or a labLecture
assistantsTeaching assistants in the sectionBrad%20Nathan
class_numberClass number80642
core_areaCore area of the class
course_prefixAbbreviation of the courseacct
daysOn what days the section occursMonday%2C%20Wednesday%2C%20Friday
departmentWhat department is the course undermgmt
instructorsThe instructors teaching the sectionCameron%20Holstead
locationWhere the section meetsSOM%201.110
section_nameSection nameacct2301.001.21f
section_numberSection number001
termTerm in which the section occurs21f
timesWhen the section occurs08:00%2008:50
titleCourse titleIntroductory%20Financial%20Accounting
topicCourse topic
Returns
[
{
"term": "string",
"title": "string",
"course_number": "string",
"school": "string",
"location": "string",
"activity_type": "string",
"class_number": "string",
"days": "string",
"assistants": "string",
"times": "string",
"topic": "string",
"core_area": "string",
"department": "string",
"section_name": "string",
"course_prefix": "string",
"instructors": "string",
"section_number": "string"
},
]