AI Workshop: learn to build apps with AI →
URL API
Parse and manipulate URLs

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


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