Slug Creator

Slug Creator API

Development

Convert titles to SEO-friendly URL slugs instantly. Create clean, readable URLs from human-readable text with smart punctuation handling.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

100 requests per minute

Endpoints

1 endpoint available

Overview

The Slug Creator API converts human-readable titles to URL-friendly slugs.

Algorithm

  • Convert to lowercase
  • Remove special characters (non-word characters except spaces)
  • Normalize multiple spaces to single space
  • Trim leading/trailing spaces
  • Replace spaces with hyphens

Examples

  • "Hello World" → "hello-world"
  • "What happened - And what didn't" → "what-happened-and-what-didnt"
  • "10 Tips & Tricks!" → "10-tips-tricks"

Endpoints

POST
/v1/tools/slug-creator
Convert a title to a URL-friendly slug

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
title
string
Required
The human-readable title to convert to a slug

Response Example

{
  "success": true,
  "data": {
    "title": "What happened - And what didn't",
    "slug": "what-happened-and-what-didnt"
  }
}

Error Codes

400
Bad Request - Missing or empty title
401
Unauthorized - Invalid or missing API key
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error

Code Examples

curl -X POST https://api.opentools.ca/v1/tools/slug-creator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "What happened - And what didn'\''t"
  }'

Ready to get started?

Create an API key to start using the Slug Creator API.