CPNT 262 Assignment 3 - Fetching API Data

In this assignment you'll be fetching data asynchronously from a public API and displaying in on a web page.

You may use an API endpoint of your choice that has not been demonstrated in class. Have fun with it!

Speak to your instructor if you'd like to try something that doesn't quite fit the requirements listed below.


Criteria

This assignment will be marked out of 10 points. Each of the following requirements are worth 2 points each:

1. Using fetch() to retrieve data

Using the fetch() Web API retrieve an array or object from a public API using a GET request.

The retrieved data must include

Data must be logged to the browser console to receive full marks.

2. HTML Output

Display the above information on an index.html page.

3. Interactivity

An interactive element of your choice, and related to the data, must be included on your page.

Examples:

The action should be directly related to either retrieving more data or changing the way the current data is displayed.

4. Error handling

All errors must be handled gracefully. For example, the page should display a human-readable error to the user if:

5. Documentation


General Requirements

While this assignment is not testing your HTML or CSS skills, points will be deducted if conventions of accessibility and visual hierarchy aren't followed.


Submission Requirements