url-safe slugs from any text, supports cyrillic
// slug appears here
curl -sX POST 'https://api.whittly.dev/v1/slug' \
-H 'Authorization: Bearer $WHITTLY_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"input":"Hello World! это заголовок","separator":"-"}'
const res = await fetch('https://api.whittly.dev/v1/slug', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify({ input: "Hello World! это заголовок", separator: "-" }),
});
const data = await res.json();
const { data } = await axios.post(
'https://api.whittly.dev/v1/slug',
{ input: "Hello World! это заголовок", separator: "-" },
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
A URL slug is the human-readable part of a URL path — lowercase, hyphen-separated, with no special characters. This tool converts any string, including Cyrillic and other non-ASCII text, into a valid URL slug via transliteration.