Visualizing Stats Canada Data - Carleton University

Visualizing Stats Canada Data - Carleton University

Accessing Canada's Open Data through APIs Lucia Costanzo MA, MSc, MLIS McLaughlin Library www.lib.uoguelph.ca Learning Objectives Getting Comfortable with APIs by: Understanding how APIs work Learn how APIs are used Gain experience using APIs Gears and Stickpeople: https://www.hrvoice.org/putting-diversity-to-work/coloured-gears/ McLaughlin Library www.lib.uoguelph.ca What is an API?

Application Program Interface A set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or service. Oxford English Dictionary McLaughlin Library www.lib.uoguelph.ca What is an API? McLaughlin Library www.lib.uoguelph.ca What are the Benefits? Efficiency: data easily shared and distributed to various data consumers

Wider Reach: use and reuse of data globally Automation: data collection and cost reduction Leverage Govt Data: available to wider audience Integration: interact directly with current data source https://api-all-the-x.18f.gov/pages/benefits_of_apis/ Check Mark Button: http://www.clker.com/cliparts/l/n/a/E/b/t/check-mark-button-hi.png McLaughlin Library www.lib.uoguelph.ca What are the Disadvantages? Costly: expensive in terms of development time, maintaining API documentation and providing support to users of to implement API Security exposure: Adding an API adds another level of vulnerability to your website

McLaughlin Library www.lib.uoguelph.ca What are APIs used for? WorldCat is union catalog that itemizes the collections of 72,000 libraries in 170 countries and territories. APIs are used to: Search (to retrieve information about bibliographic holdings) Metadata (to retrieve and update bibliographic records) Primo API from ExLibris The main API method is making calls to retrieve information from Primo. McLaughlin Library www.lib.uoguelph.ca

Who uses APIs? Open Canada HathiTrust Data API PLoS Search API

Open American Chemical Society Text Mining arXiv API SAO/NASA Astrophysics Data System (ADS) API BioMed Central API CORE API CrossRef REST API DVN (Dataverse Network) APIs for Data Sharing Digital Public Library of America (DPLA) API

Europeana APIs IEEE Xplore API JSTOR Data for Research Library of Congress

APIs Nature Blogs API Nature OpenSearch API NLM APIs OECD Data APIs ORCID API PLoS Article-Level Metrics API McLaughlin Library www.lib.uoguelph.ca

ScienceDirect APIs Scopus APIs Springer APIs STAT!Ref OpenSearch API Web of Science Web Services World Bank APIs UN Comtrade APIs Wiley Text and Data Mining

What are Web APIs? Web API Interface with URLs You send a request through the URL Server sends back content through response Types of Web APIs: SOAP - Simple Object Access Protocol REST or RESTful Representational State Transfer RPC Remote Procedure Call (Canada Open Data) Popular Tag: https://www.insurancejournal.com/app/uploads/2014/12/most-popular-sign-580x580.jpg McLaughlin Library www.lib.uoguelph.ca Common HTTP Verbs Indicate desired action to be performed for a given resource:

GET: Retrieve resource (most utilized) PUT: Create new resource POST: Update existing resource or create new resource DELETE: Remove resource Canada Open Data only allows for GET actions McLaughlin Library www.lib.uoguelph.ca APIs: The Basics URLs (the address of a World Wide Web page) can be used to make a request (API request or API call) URLs have parameters (similar to variables) Parameters specify things like:

How many results do you want back at once? How do you want the results to be sorted? What date range do you want to search? What location do you want to search? What format do you want the results in? https://schoolofdata.org/2013/11/18/web-apis-for-non-programmers/ McLaughlin Library www.lib.uoguelph.ca Lets get started! Computer Keyboard: https://blog.designveloper.com/wp-content/uploads/2016/08/Programming-languages-for-beginner6.jpg

McLaughlin Library www.lib.uoguelph.ca API Tools JSON Readers Chrome Extension: https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh Online JSON Viewer: http://jsonviewer.stack.hu/ Open Data Canada http://open.canada.ca/en/open-data CKAN API Documentation http://docs.ckan.org/en/latest/api/ McLaughlin Library www.lib.uoguelph.ca

THANK YOU McLaughlin Library www.lib.uoguelph.ca

Recently Viewed Presentations

  • Hidden Markov Model A pozc-specifikus mtrixok hasznlatnak tovbbfejlesztse

    Hidden Markov Model A pozc-specifikus mtrixok hasznlatnak tovbbfejlesztse

    Ez a tevékenység maga is egy számítógépes felhasználás Többek között az ilyen feladatok ellátásának is széles körben elterjedt eszköze a PERL Ezzel foglalkozunk a következő órán * * * * * * CASP6 in numbers . Data as of November...
  • Claves Para Comprender La Infamia Del Tratado De Lisboa I

    Claves Para Comprender La Infamia Del Tratado De Lisboa I

    el proyecto matriz # 112 ¿permanecerÁs impasible? comparte tu conocimiento el fin del letargo el proyecto matriz "es detestable esa avaricia espiritual que tienen los que, sabiendo algo, no procuran la transmisión de esos conocimientos" miguel de unamuno * canciÓn...
  • Volume A - Cengage

    Volume A - Cengage

    Volume C Late Nineteenth Century: 1865-1910 Stephen Crane This photograph captures some of the chaos and random-ness of the Civil War as experienced in Fred Collins's quest for water in the midst of battle, in Stephen Crane's "A Mystery of...
  • Bayonet Charge - Resources for Miss Archer's GCSE classes

    Bayonet Charge - Resources for Miss Archer's GCSE classes

    The poem focuses on a nameless soldier in the First World War (1914-18). It describes the experience of 'going over-the-top'. This was when soldiers hiding in trenches were ordered to 'fix bayonets' (attach the long knives to the end of...
  • Whither Asian Defense Diplomacy? The Evolving Institutional ...

    Whither Asian Defense Diplomacy? The Evolving Institutional ...

    Liberal and neoliberal IR theorists (Nye, Keohane et al.) assert that economic interdependence and other forces work to mitigate conflict. Constructivist IR theorists (Wendt, Finnemore et al.) argue that norm transmission and socialization, primarily at the international level, exert influence...
  • Chapter Thirteen, Lecture Two - Pearson Education

    Chapter Thirteen, Lecture Two - Pearson Education

    Chapter Thirteen, Lecture Two Perseus and the Myths of the Argive Plain Legends of Perseus Danaë and the Shower of Gold Danaë and the Shower of Gold Lynceus (the one spared) in Argos after Danaüs His son Abas has twins...
  • TCEQ Public Participation

    TCEQ Public Participation

    The TCEQ will hold a public meeting if there is significant public interest in an application or if a state legislator requests a public meeting (Texas Health and Safety Code 382.056(K)(1)(2)). A request for a public meeting must be submitted...
  • »Ni mogoče biti kristjan le začasno v posameznih trenutkih ...

    »Ni mogoče biti kristjan le začasno v posameznih trenutkih ...

    Ne delajo in ne predejo, toda povem vam: Še Salomon v vsem svojem veličastvu ni bil oblečen kakor katera izmed njih. Če pa Bog tako oblači travo na polju, ki danes obstaja in jo jutri vržejo v peč, koliko bolj...