API
Same idea as the \tug ip API — parameters on the URL.
GET https://tugsite.com/api/?length=16&upper=1&lower=1&digits=1&symbols=1&count=3
GET https://tugsite.com/api/?type=words&word_count=4&separator=-&capitalize=1&count=2
GET https://tugsite.com/api/?type=words&pool=eff&word_count=4
Standard
length/len— 4–128 (default 16)count/n— 1–10 (default 1)upper,lower,digits,symbols—1/0exclude_ambiguous— drop0 O 1 l I
4-word (type=words)
word_count— 3–8 (default 4)separator/sep—-, space,_,., or emptycapitalize—1/0pool—extended(default) oreff
Output — format=json or text.
Example JSON
{
"passwords": [
"donjon-kamas-triticeum-fervour"
],
"password": "donjon-kamas-triticeum-fervour",
"count": 1,
"type": "words",
"options": {
"word_count": 4,
"count": 1,
"separator": "-",
"capitalize": false,
"pool": "extended"
},
"url": "https://tugsite.com/api/?type=words&word_count=4&count=1&separator=-&capitalize=0&pool=extended",
"word_count": 4,
"pool": "extended"
}
Need IP geolocation? \tug ip.