rokas' blog

posts | shitposts

Cat 🐈 API

Catto fetched from CatAPI here

Today I discovered the most important API on the Internet - The Cat API. As far as I know, it is the most direct way of receiving cats from the web, (even more than the lovely random.cat). It is also a role model for any API.

The site contains thorough documentation, a roadmap, a forum, and some examples of the API in action. This kind of thoroughness and level of communication is quite rare, even among services that are paid. Hell, half the APIs that companies brought for use in hackathons could not hold a candle to performance and documentation of this glorious API.

Okay, but besides presentation, this is a great choice for dummy endpoints for your projects (or non-dummy, if your project is cat-related), especially if they deal with user content and images. The Cat API provides randomized images of various sizes, so it's great for testing whether everything displays correctly. There are also endpoints that return some string, integer data, and wikipedia links. Oh, there are public and auth-requiring endpoints, too.

I do have to warn that if this is used for testing, dev time might turn into cat scrolling time. Totally not speaking from experience.

And yes this page is fetching random cats from that API.

This post is part of my attempt at #100DaysToOffload.

back