This is a simple API to deliver random images various animals.
This API currently supports the following animals:
- Goats
goats - Otters
otters(Thanks to users@.griselda.@mhroom._@.kofu) - Pandas
pandas(Thanks to@mhroom._) - Cats
cats(Thanks tothecatapi.com) - Dogs
dogs(Thanks todog.ceo) - Foxes
foxes(Thanks torandomfox.ca) - Big Cats
big_cats(Thanks to@.griselda.) - Ducks
ducks(Thanks torandom-d.uk) - Seals
seals(Thanks to@336kasza)
- Method:
GET - Description: Returns a random image of the specified animal.
{
"message": "OK",
"url": "<url to the image>"
}- Method:
GET - Description: Returns a static image of the specified animal.
You can download the image from the GitHub Container Registry and run it with Docker.
docker pull ghcr.io/discusss/lacabra-img:latestYou will need to set the following environment variables, either in a .env file or in the command line:
PORT: The port on which the server will run. Default is3000.HOST: The host on which the server will run. Default is0.0.0.0ENABLE_METRICS(Optional): If set totrue, the server will expose a/metricsendpoint with Prometheus metrics. Default isfalse.METRICS_PASSWD(Optional): The password to access the/metricsendpoint. Default islacabra.DOMAIN: The domain of the server. Default islocalhost:3000.USE_HTTPS: If set totrue, the server will use HTTPS. Default isfalse.