https://developer.mozilla.org/en-US/docs/Web/API/URL
Using Fetch - Web APIs | MDN
let url = new URL("https://my.shop/api/articles");
url.searchParams.set("limit", 10);
url.searchParams.set("offset", 32);
fetch(url)
.then(resp => resp.json())
.then(data => console.log(JSON.stringify(data)))
;
ps. braucht wohl noch auth…