26-FEB-2020: Created for SP20
Accessing Application Programming Interfaces (API)s
- How can we leverage the power of a remote database system programatically in python?
- Use the requests library and supporting modules to request information from an API
- Parse data returned from an API into useful products for our own purposes
- Api directory at Programmable Web
- aprequest.io for request building
- Donors choose main site whose servers also host an API which our sample program interacts with
- Donors Choose API Documentationcd
- Sample script for asking DonorsChoose for search results
- The urllib package for python 3 provides a suite of tools for fetching URL data. I believe it uses the Requests library in the back end.
- Requests library (http for humans)
- National Highway Traffic Safety Administration API list (Great!--no key required)
- NHTSA API call sample python code (very simple)
- RFC 2616: HTTP standard specification, heavy reading, nice to know about
When you have decided on an API, please make an entry in our tracker spreadsheet
- Discuss course plan: project design for course
- API Fundamentals: Donors Choose API and sample tweaking according to the specification below
- API Design project and worktime
Use data from an API service to answer one or more compelling inquiry questions of your design
program requirement 1
Engineer a python script that uses the requests library to make calls to an API of your choosing. Assemble data that is returned from that API to answer the question or set of questions you designed for this project.
program requirement 2
Once you have data assembled that speaks to your research question, format the results of your API inquiry in a format that is understandable by a non-pythonista and can be posted on our course website and on the walls of our classroom 1136! Graphs, charts, figures, tables, images--all of these are welcome and invited.
Complete your API project and upload it to your github account.
arrow_upwardback to schedule