Application Programming Interfaces
Middle School – Wizard Level II – Class 3
When students complete Application Programming Interfaces, they will be able to:
- Browser and Third-Party APIs
- GET and POST Requests
- 1. Introduction to Application Programming InterfacesAn API allows one application to interact with another.
In this lesson, students are introduced to what an API is and the value of learning how to utilize APIs to connect different applications. Students create an ISS (International Space Station) tracker using the ISS API. Ajax requests are used to interact with the ISS API.
- 2. Exploring the Browser APIsThe Navigator API allows access to media devices on your computer.
In this lesson, students learn about third-party and browser APIs. Students use the Navigator browser API to create a fun magic camera application. CSS filter properties are added to create interesting filter effects for the camera.
- 4. Sending Data to APIRequest parameters allow for the return of specific data from an API endpoint.
In this lesson, students create an application that helps them find activities when they are bored. Students create an API and send objects to the Ajax request using the data parameter so that only specific data is returned from the API. The application is enhanced by adding relevant background images.
- 5. Mid-term Project Part IHTML input options can be used to interact with APIs.
In this lesson, students begin building the first part of the mid-term project. This engaging quiz project utilizes knowledge and skills learned so far to create APIs to ask and answer fun quiz questions. The application uses varying levels of difficulty and utilizes a for loop to traverse quiz categories.
- 6. Mid-term Project Part IIRandom numbers can be used to rearrange data returned from an API.
In this lesson, students complete the quiz application started in lesson 5. The answer choices for quiz questions are put in random order using random library functions. Answer choices are saved to an array and processed.
- 7. Create an API key to log into the APIAPI keys are required to access many popular APIs.
In this lesson, students learn how to generate and use API keys to access an API. The Imagga API is used to obtain an API key allowing access to the API. Students create a fun and useful color extractor application.
- 8. Let’s explore the server side of an APIUnderstand how APIs are able to return data based on your request from the server.
In this lesson, students deal with large amounts of data and learn how to limit results with the In this lesson, students explore how a server is able to return data from an API request. Basic database concepts are covered along with basic SQlite commands. Students practice creating and using an API which accesses a database of songs, artists, and genres.
- 9. Inserting new data using an APIInsert new data into a database using API endpoints.
In this lesson, students use GET and POST API requests to retrieve or add data to an existing database. AJAX type parameters are used to GET or POST data. Students practice posting new records to the music database used in previous lessons
In this lesson, students learn how to use the Python request module to get or post API requests. Students utilize request status code as they build an engaging ASCII generator application. Students learn how to preserve formatting when printing a response.
- 11. The Final Project Part IAPIs allow for the easy creation of new applications by exchanging data with existing applications.
Students begin building a final portfolio-worthy meme generator application using knowledge and skills learned throughout the classes. Loops and “in keywords” are used to add API information to an array for processing. Students practice sending a variety of options to the meme generator.
- 12. The Final Project Part IIAPIs allow for the easy creation of new applications by exchanging data with existing applications.
In this final lesson, students complete their API project by adding more functionality to their meme generator application. New memes urls are saved to a new database and an API is created to insert the values using Sqlite. The anonymous function is introduced.
All students start in Intro to Programming at Wizard Level I. If you have previous coding experience, take the Advanced Placement test. Returning students can continue with the class where they left off.
- Intro to Programming (CLASS FULL)on Mondays & Thursdays (6 weeks, 2 classes per week)
- Intro to Programming (CLASS FULL)on Fridays (12 weeks, 1 class per week)
- Intro to Programming (CLASS FULL)on Sundays (12 weeks, 1 class per week)
- Intro to Programming (CLASS FULL)on Tuesdays (12 weeks, 1 class per week)
- Intro to Programmingon Wednesdays (12 weeks, 1 class per week)
- Intro to Programmingon Saturdays (12 weeks, 1 class per week)
- Intro to Programmingon Thursdays (12 weeks, 1 class per week)
- Intro to Programmingon Sundays (12 weeks, 1 class per week)
- Intro to Programmingon Tuesdays & Fridays (6 weeks, 2 classes per week)
#1 Most Comprehensive Program for Your Student’s Success!
The CodeWizardsHQ program comes with everything your child needs to be successful in learning to code.
All of the below are included at no extra cost.
Course Duration & Time Commitment
All courses are 12 weeks long. A Wizard will receive a certification for their achievement at the end of the course.
Expect a weekly time commitment of 2-3 hours. 1 hour of class time, plus 1-2 hours of practice time, with instructors support throughout, including weekends.
Our goal is to make all our students successful. If your child is not happy with our program, please notify us within the first four class sessions and you will receive a full refund.