What is it?
The Diwigo slug API turns any title into a clean URL slug: accents removed, any alphabet transliterated, words joined by dashes.
It answers with JSON and is included in the free plan: 10,000 requests per API key and per month.
Example request
GET https://landing.diwigo.com/api/?key=YOUR_API_KEY&slug=Crème%20brûlée%20à%20l'érable
Parameters
| Parameter | Description |
|---|---|
key | Your API key (required) |
slug | Text |
sep | - or _ (default -) |
max | Maximum length, 10–200 (default 80) |
Code examples
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&slug=Crème%20brûlée%20à%20l'érable"
const res = await fetch("https://landing.diwigo.com/api/?key=YOUR_API_KEY&slug=Crème%20brûlée%20à%20l'érable");
const data = await res.json();
console.log(data);
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY&slug=Crème%20brûlée%20à%20l'érable");
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.get("https://landing.diwigo.com/api/?key=YOUR_API_KEY&slug=Crème%20brûlée%20à%20l'érable")
print(response.json())
Use cases
- SEO-friendly URLs for blog posts and products
- Clean file names
- Readable identifiers from user input
URL slug: questions and answers
What does the URL slug API do?
The Diwigo slug API turns any title into a clean URL slug: accents removed, any alphabet transliterated, words joined by dashes.
How do I call the URL slug API?
Send a GET request to https://landing.diwigo.com/api/?key=YOUR_API_KEY&slug=Crème%20brûlée%20à%20l'érable with your own API key instead of YOUR_API_KEY. It answers with JSON.
Is the URL slug API free?
Yes, it is included in the free plan: 10,000 requests per API key and per calendar month, shared by all Diwigo endpoints. Higher limits are available on request.