parse and build url query strings
curl -sX POST 'https://api.whittly.dev/v1/querystring/parse' \
-H 'Authorization: Bearer $WHITTLY_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"input":"https://example.com?name=alice&role=admin"}'
const res = await fetch('https://api.whittly.dev/v1/querystring/parse', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify({ input: "https://example.com?name=alice&role=admin" }),
});
const data = await res.json();
const { data } = await axios.post(
'https://api.whittly.dev/v1/querystring/parse',
{ input: "https://example.com?name=alice&role=admin" },
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
A query string is the part of a URL after the ? character, containing key=value pairs separated by &. This tool parses query strings into a readable table, lets you edit individual values, and rebuilds the encoded string.