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.

Also read...

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.