This is a simple API to return random words. Each word in each response will be unique, but multiple calls may return words from previous responses. To get started, send a GET request to /api. By default, this will provide you with an array of five random words.
Example API Call: /api
["oftentimes", "slugs", "comforted", "jumper", "departure"]
To receive more than one word, you can pass an integer using count query parameter. Please note that there is a maximum of 50 words per request.
Example API Call: /api?count=20
["oftentimes", "slugs", "comforted", "jumper", "departure", "involve", "conflicted", "infecting", "abbreviated", "reduced", "imperial", "fryer", "exfiltrate", "serialized", "oversimplify", "stopples", "unforeseen", "exit", "cigar", "benefactors"]
As previously stated, the API will return an array by default. However, by passing type=string to the API as a query parameter it will return a comma-separated string instead.
Example API Call: /api?count=20&type=string
"oftentimes, slugs, comforted, jumper, departure, involve, conflicted, infecting, abbreviated, reduced, imperial, fryer, exfiltrate, serialized, oversimplify, stopples, unforeseen, exit, cigar, benefactors"