Ideas to Apps, lesson 4: "Plugging Into APIs"

« Return to the list of lessons

“These examples show how APIs connect your app to a world of possibilities—language, data, and even intelligence. The purpose of this lesson is to show how it is done in practice.”

Provides a practical guide to finding and using APIs (Application Programming Interface), using the Unsplash image service as an example. Covers obtaining API keys and the basic process of integrating an API into an app.

NOTE: The comprehensive management of API keys is not covered in detail in this guidance. Consequently, the provided information alone is not sufficient for deploying an application beyond private use.

Lesson Video

  • Provides examples of API usage: how translation, finance, and AI question-answering apps use APIs.

  • Demonstrates how connecting to APIs is done in practice: choosing an API , finding the developer/API section on the API provider's website (example: Unsplash.com), registering as a developer and signing up for an application for the API, creating API keys, showing where to find the API keys (specifically the "Access key" for a simple app).

  • Demonstrates a simple app that fetches images from Unsplash based on keywords.

  • Emphasizes caution as some APIs cost money and the need to check pricing, usage limits, and billing. Recommends free APIs for practice.

  • Emphasizes the importance of not sharing API keys or code containing them. Advising consultation with professionals for the proper and secure handling of API keys in published apps.

Extra Materials

DEEP DIVE – Understanding APIs
51.5KB ∙ PDF file
Download
This document provides an in-depth explanation of Application Programming Interfaces (APIs), highlighting their importance in modern software development, especially when building AI-assisted applications. It outlines how APIs enable apps to access external data, leverage complex functionalities, and connect various services efficiently. It also describes the basic flow of API operations, including making requests, authentication, processing, and receiving responses.
Download
DEEP DIVE – Where To Find APIs
50.9KB ∙ PDF file
Download
This DEEP DIVE serves as a comprehensive guide for discovering and utilizing APIs for projects and learning purposes. It outlines various sources such as API marketplaces, directories, and fun data APIs, providing specific examples like RapidAPI Hub, Public APIs on GitHub, and ProgrammableWeb. The document also highlights utility APIs for tasks like translation and URL shortening, basic AI service APIs, and government open data portals. Key considerations when selecting APIs, including free tier limits, API key requirements, and documentation quality, are discussed to help users make informed choices. The guide encourages exploration and experimentation with APIs, emphasizing the support of AI assistants for code generation.
Download

Next

Continue to Lesson 5

Leave a comment