Advertisement
Networking
URL API Demonstration
Parse, construct, and validate absolute URLs, protocols, ports, and pathnames.
Checking support...
Feature Not SupportedThis browser does not support the URL API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after execution...
Native JavaScript Code Example (Zero Libraries)
const u = new URL('https://mohitkrgupta.dev/tools/webapi-utils?search=fetch');
console.log(u.hostname, u.searchParams.get('search'));About the URL API Web API
URL API is used to parse, construct, normalize, and encode URLs.
Specification:W3C & WHATWG Web API Standard
Sponsored Content