RoboHash is a custom API based around the return of a pseudo-randomized image determined by a text string or IP address.
GitHub Link: LOCATED HERE
API Endpoint: LOCATED HERE
This API is free, with the ability/blueprints to build and host your own randomly generated image structures.
In this small demo, I have simply referenced the default image structures based around text strings.
However, there are many potential casual and professional uses for this API besides ‘character generation’.
There are over 40,000,000 unique combinations available just in the default set.
For professional uses, this API could be modified to create unique visual identifiers, such as bar codes, for different products based off of their name.
In a forum setting, a user’s IP could be referenced and used as a semi-anonymous identifier.
At a basic level, you would be able to see posts from the same IP address without the user needing a username or account in order to post.
As a fun example, an easy use for the API in a casual enviorment would be random character/enemy generation for an in-browser video game.
There are actually a handful of online sites that assign default avatars in a similar manner, using a similar API, if I had to guess.
The hardest part of this API was figuring out how to reassign image src based on user input.