URL API
Parse and manipulate URLs

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


URLs are fundamental to the web, and JavaScript provides the URL API for parsing, constructing, and manipulating URLs programmatically. This is especially useful when working with query parameters and building dynamic links.

In this unit, you’ll learn how to work with URLs in JavaScript. We’ll cover the URL constructor for parsing URLs, the URLSearchParams interface for working with query strings, and techniques for building and modifying URLs dynamically.

These skills are essential for building applications that work with navigation, handle query parameters, and construct links programmatically.

Lessons in this unit:

0: ▶︎ Introduction
1: The URL object
2: URLSearchParams
3: Get the URL fragment
4: Set the URL fragment
5: The Navigator object