In this day and age, everyone and their dog has an API. So why not have an API for dogs? Shibe.online is that API.
To get some dogs, just make a GET request to the following URL:
And you'll get back a JSON response of random images of shibes that's something like this:
[ "image url 1", "image url 2", ... ]
And if those options in the URL aren't self-explanatory enough, here's a simple guide:
|count||integers 1-100||The number of images to be returned.|
|urls||true/false||The API returns URLs by default. By setting this option, it will return the name of the images without the extension.|
|httpsUrls||true/false||Azure doesn't allow you to add certs for custom CDN domains, so all requests to cdn.shibe.online have to be HTTP only. Set this to true, and the URLs will be for shibecdn.azureedge.net, which has HTTPS.|
You can also get cats! Just use the endpoint /api/cats instead of /api/shibes. It works the same way. Also, /api/birds.
That's it! Have a nice day. Here's a shibe:
Here's the open-source source-code: GitHub.