Art 114: Interactive Media and Design

Spring 2025 | Harrisburg Area Community College

Instructor: Rich Hauck, MPS

APIs

Application Programming Interfaces (APIs) are a way for two computer programs to communicate with one another. With Web APIs, the data is often transferred in JSON format.


Star Wars Example

The following example uses SWAPI to populate a table with Star Wars Opening Crawl text.

See the Pen SWAPI API Example by Rich Hauck (@richhauck) on CodePen.


Library of Congress (LOC) Example

This example generates pulls a single instance from the Library of Congress (https://www.loc.gov).

For context:

See the Pen Camden Yards via LOC API by Rich Hauck (@richhauck) on CodePen.