Skip to content
Merth1470Public

About

SEO Slug Generator API

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

SEO Slug Generator API

A professional, production-ready, SEO-friendly Slug Generator API built with FastAPI. Converts titles into clean, unique, SEO-optimized slugs with advanced features.

Features

  • FastAPI, Python 3.11
  • Turkish and multilingual character support
  • Uniqueness enforcement
  • Redis or in-memory caching
  • Optional date and category in slug
  • Slug validation endpoint
  • API key-based access control & rate limiting
  • Smart deduplication (removes repeated meaningless words)
  • Command-line tool
  • Analytics endpoint
  • Full CRUD support
  • Swagger/OpenAPI docs
  • Unit tests (pytest)
  • Docker & docker-compose deployment
  • (Optional) QR code generator for slugs

Quick Start

Local

pip install -r requirements.txt
uvicorn app.main:app --reload

Docker

docker-compose up --build

API Endpoints

  • POST /generate-slug — Generate a slug
  • GET /all — List all slugs
  • POST /check-slug — Check if a slug exists
  • PUT /update/{slug} — Update a slug
  • DELETE /delete/{slug} — Delete a slug
  • GET /analytics — Analytics

All endpoints require x-api-key header.

Command-line Tool

python -m app.slugger "Some Title" --category blog --date 2025-07-20

Testing

pytest

License

MIT

About

SEO Slug Generator API

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages