Convert arbitrary text into a URL-safe slug.
Takes input text and produces a lowercase (optional) slug using the requested separator. Designed as a GET-first helper with universal dryrun support. Drop this helper wherever you want to convert arbitrary text into a URL-safe slug with a single HTTP call. Send the documented inputs and the API streams back polished results you can hand directly to your users.
/text/slugifyParameters
Query Parameters
| Name | Type | Description |
|---|---|---|
| text | string · required | The text to convert into a slug. |
| lower | boolean | Force lowercase output when true. |
| separator | string | Replacement string for whitespace and punctuation (1-3 characters). |
| dryrun | boolean | If present and not explicitly false/0, no mutations occur (still returns preview data). |
All helper calls accept your Dataczar key via the ak query parameter. Need one? Create or copy a key on Dataczar Connect and drop it into each request.
Responses
Status 200
Slug generated successfully.
{
"ok": true,
"data": {
"slug": "dataczar-api-platform",
"original_length": 24
},
"meta": {
"service": "text/slugify",
"dryrun": false,
"request_id": "req_123"
}
}Examples
Request
"GET /text/slugify?text=Hello%20World&ak=demo"Response
{
"ok": true,
"data": {
"slug": "hello-world",
"original_length": 11
},
"meta": {
"dryrun": false
}
}Request
"POST /text/slugify {\"text\":\"FAST Mode\",\"separator\":\"_\",\"lower\":false}"Response
{
"ok": true,
"data": {
"slug": "FAST_Mode",
"original_length": 8
},
"meta": {
"dryrun": false
}
}Test Contracts
[
{
"name": "basic_slug",
"method": "GET",
"params": {
"text": "Dataczar API"
},
"expect": {
"slug": "dataczar-api"
}
},
{
"name": "custom_separator",
"method": "POST",
"body": {
"text": "Hello Again",
"separator": "_",
"lower": false
},
"expect": {
"slug": "Hello_Again"
}
}
]Grab your Dataczar API key
Every helper runs with the same simple API key. Sign in (or create a free Dataczar account) at Dataczar Connect to issue keys in seconds, then drop the key into any `ak=` parameter and start shipping.
Tip: reuse the same key across these helpers, or rotate keys per project from the Connect dashboard.