Web API Cookbook
by Joe Attardi
Your comprehensive guide to modern web APIs and browser capabilities. Master the tools you need to build powerful web applications.
Also available from

What Readers Are Saying
“Web API Cookbook covers a wide range of browser-based APIs and provides valuable examples for all skill levels. Plus, Joe's writing style and thoughtful explanations make the learning enjoyable. This is a must-read for web developers!”— Sarah Shook, Software developer/owner, Shook LLC
“This book offered fresh insights and introduced me to APIs I never knew existed.”— Bret Little, Staff Software Engineer, Shopify
What You'll Learn
Asynchronous APIs
Explore fundamental asynchronous JavaScript concepts, including callback functions and Promises.
Simple Persistence with the Web Storage API
Store and retrieve data using persistent storage.
URLs and Routing
Work with the URL and History APIs.
Network Requests
Communicate with remote servers and APIs.
IndexedDB
Learn how to use IndexedDB to store and retrieve large amounts of structured data.
Observing the DOM
Explore how to observe changes in the DOM using MutationObserver, IntersectionObserver, and ResizeObserver.
Forms
Discover how to handle form submissions and input validation using the FormData and Constraint Validation API.
The Web Animations API
Learn how to create and control animations using the Web Animations API.
The Web Speech API
Discover how to add speech recognition and synthesis capabilities to web applications.
Working With Files
Learn how to handle file uploads and downloads using the File API.
Internationalization
Explore how to create internationalized web applications that can be easily localized.
Web Components
Discover how to create reusable custom elements using the Web Components API.
UI Elements
Use dialogs and other interactive elements.
Device Integration
Interact with sensors and services on your device.
Measuring Performance
Capture performance metrics.
Working With the Console
Learn about different ways to present information using the Console API.
CSS
Explore CSS related APIs.
Media
Work with images and video.
Ready to Master Web APIs?
Get your copy today and start building better web applications.