Trouve-mot

API gratuite de mots aléatoires

Si pour un projet vous avez besoin de récupérer des mots triés ou non par catégories, vous êtes au bon endroit !

Vous retrouverez ici 6391 mots français parmis 61 catégories différentes.

Récupérer des mots aléatoires

Endpoints :
/api/random     // Génère 1 mot aléatoire   
/api/random/10  // Génère 10 mots aléatoires
Exemple :
fetch("/api/random/2")
    .then((response) => response.json())
    .then((words) => console.log(words))
Output :

Récupérer des mots commençant par...

Endpoints :
/api/startwith/B     // Génère 1 mot aléatoire commençant par B   
/api/startwith/B/10  // Génère 10 mots aléatoires commençant par B
Exemple :
fetch("/api/startwith/B/2")
    .then((response) => response.json())
    .then((words) => console.log(words))
Output :

Récupérer des mots par catégorie

Endpoints :
/api/categorie/19     // Génère 1 mot de la catégorie "ANIMAUX"   
/api/categorie/19/10
Exemple :
fetch("/api/categorie/19/2")
    .then((response) => response.json())
    .then((words) => console.log(words))
Output :

Récupérer le mot du jour

Endpoints :
/api/daily
/api/weekly
/api/monthly
Exemple :
fetch("/api/daily")
    .then((response) => response.json())
    .then((words) => console.log(words))
Output :

Récupérer des mots en fonction de leur longueur

Endpoints :
/api/size/5      // Génère 1 mot aléatoire de 5 caractères   
/api/size/5/10

/api/sizemin/6   // Génère 1 mot aléatoire de minimum 6 caractères
/api/sizemin/6/10

/api/sizemax/4   // Génère 1 mot aléatoire de maximum 4 caractères   
/api/sizemax/4/10 
Exemple :
fetch("/api/sizemin/6/2")
    .then((response) => response.json())
    .then((words) => console.log(words))
Output :