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 3575 mots français parmis 27 catégories différentes.

Récupérer des mots aléatoires

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

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

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

Récupérer des mots par catégorie

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

Récupérer le mot du jour

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

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

Endpoints :
https://trouve-mot.fr/api/size/5      // Génère 1 mot aléatoire de 5 caractères   
https://trouve-mot.fr/api/size/5/10

https://trouve-mot.fr/api/sizemin/6   // Génère 1 mot aléatoire de minimum 6 caractères
https://trouve-mot.fr/api/sizemin/6/10

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