API Documentation
POST
/api/v1/slugURL Slug
Generate URL-friendly slugs from text
generators
Parameters
inputstringText to convert
separatorstringSeparator character
Default: -
lowercasebooleanConvert to lowercase
Default: true
maxLengthnumberMaximum length
Example Request
curl -X POST https://devtools.at/api/v1/slug \
-H "Content-Type: application/json" \
-d '{"input":"Hello World! This is a Test.","maxLength":20}'Example Response
{
"success": true,
"data": {
"result": "hello-world-this-is"
},
"meta": {
"processingTime": 1
}
}Try it out
Test this endpoint directly in your browser
Response
Click "Execute Request" to see the response