Random Name API: One Hour Weekend Project
It might be not completed yet (name it “beta”) but I hope it helps everyone who in needs to generate random names (which is not just practically generate random chars but also human-readable names).
URL:
http://random-name-api.herokuapp.com/api/v1/get_name/<nm>
where nm is the number of names to be generated (in integer).
Example:
http://random-name-api.herokuapp.com/api/v1/get_name/5
will generate 5 random names along with their gender (“M” indicates “male” and “F” indicates “female”).
The number of names is practically unlimited (in theory), but to keep the requests as efficient as possible (because I’m only using one dyno for the app), I’ve limited the number to 100 per request. However, you can use your script in any language to do the loop to get as many result as you want.
python?
I couldn’t imagine any languages that I’m convenient to work with and is a great couple to Heroku. Python it is.
please tech me mastah (bow)
“There should be one– and preferably only one –obvious way to do it.”
“I, teach you, cannot. The master, you are. Yes, hmmm.”