Structured Data Provided by the CPI

Structured Data Provided by the CPI

The Centre for Pedagogical Innovation (formerly CTLET) provides information about Brock University programs and departments through two related services that provide structured data:

  1. A collection of CSV files scraped daily from the registrar's website.
  2. A structured API for faculty and department information, described below.

APIs

You are welcome to experiment with and incorporate this experimental API in your application, however, only the Brock University Registrar's information is considered definitive. This publicly available information is Brock University's property.

How to Use

It's just an HTTP GET, and the page will return by default simple XML indicating the type of search performed, whether it appears or not in our database.

Requests are sent to the url http://cpi.brocku.ca/services/ followed by the format you would like the request returned in, the type of query, and the query itself all separated by a /.

URLformatquery typequery
http://cpi.brocku.ca/services/ xml
html
csv
txt
department
faculty
brock_year
department:four letter code
faculty:full title with either %20 or _
brock_year:not required or UNIX time

API queries against our server are currently limited to 2000 per day.

A typical successful response for a query to http://cpi.brocku.ca/services/xml/department/iasc would look like this:

<response success="true">
	<faculty>Humanities</faculty>
	<dept>IASC</dept>
	<program_code>IASC</program_code>
	<program_name>Interactive Arts and Sciences</program_name>
	<program_description>The Interactive Arts and Science (IASC) program, offered through the Centre for Digital Humanities, provides students an opportunity to study and work in the exciting and rapidly expanding interdisciplinary field of new media and digital interactivity. In this program students will explore the interplay of digital media and our understanding of human identity and values with careful attention to ways in which discourses in technoculture, narrative, gameplay, computing and media production intersect. In addition to core IASC courses that blend theory and practice and facilitate the development of new media portfolios, students can satisfy their individual interests in selection of courses from departments as diverse as Classics, Communication, Popular Culture and Film, Computer Science, Dramatic Arts, Graduate and Undergraduate Studies in Education, English Language and Literature, Geography, History, Music, Studies in Arts and Culture, and Visual Arts.
The IASC program aims to engage students in learning through independent inquiry, problem solving and portfolio building. The program encourages the exploration of digital and interactive tools for analyzing, representing and visualizing ideas in many traditional academic areas. Conceptual strategies such as interactive fiction, games and simulations are tested in hands-on projects and multimedia creation. Students will enjoy the freedom to probe, analyze, manipulate and transform ideas into action. Because of the interdisciplinary nature of interactivity, team-based work creates opportunities to tackle complex projects in new and exciting media.</program_description>
	<program_admissionreq></program_admissionreq>
	<program_url>http://www.brocku.ca/webcal/current/undergrad/iasc.html</program_url>
</response>
Formats
Query Types

Code examples

You can find examples of code, to access the API, on the API code examples page. Currently, there is PHP but we hope that more people will provide code in as many languages as possible.

PHP Example
$xml_string = file_get_contents('http://cpi.brocku.ca/services/xml/department/iasc');
$xml = new SimpleXMLElement($xml_string);
print_r($xml);

Returns

SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [success] => true
        )

    [faculty] => Humanities
    [dept] => IASC
    [program_code] => IASC
    [program_name] => Interactive Arts and Sciences
    [program_description] => The Interactive Arts and Science (IASC) program, offered through the Centre for Digital Humanities, provides students an opportunity to study and work in the exciting and rapidly expanding interdisciplinary field of new media and digital interactivity. In this program students will explore the interplay of digital media and our understanding of human identity and values with careful attention to ways in which discourses in technoculture, narrative, gameplay, computing and media production intersect. In addition to core IASC courses that blend theory and practice and facilitate the development of new media portfolios, students can satisfy their individual interests in selection of courses from departments as diverse as Classics, Communication, Popular Culture and Film, Computer Science, Dramatic Arts, Graduate and Undergraduate Studies in Education, English Language and Literature, Geography, History, Music, Studies in Arts and Culture, and Visual Arts.
The IASC program aims to engage students in learning through independent inquiry, problem solving and portfolio building. The program encourages the exploration of digital and interactive tools for analyzing, representing and visualizing ideas in many traditional academic areas. Conceptual strategies such as interactive fiction, games and simulations are tested in hands-on projects and multimedia creation. Students will enjoy the freedom to probe, analyze, manipulate and transform ideas into action. Because of the interdisciplinary nature of interactivity, team-based work creates opportunities to tackle complex projects in new and exciting media.
    [program_admissionreq] => SimpleXMLElement Object
        (
        )

    [program_url] => http://www.brocku.ca/webcal/current/undergrad/iasc.html
    [last_update] => 2012-08-09 13:41:07
)

Brock University  500 Glenridge Ave., St. Catharines, Ont., Canada L2S 3A1 

[ VISIT BROCK ]

 [ CAMPUS MAP ]

 Telephone: 905 688 5550

© 2017 Brock University, Licensed under Creative Commons.