I tried summoning various cats with 'Cat as a service', a service that allows you to summon cats at any time via API



'Software as a service' is a general term for the act of providing what goes into ○○ as a service, such as a system that can be treated like a service by running software such as Microsoft 365 on a cloud server. 'Cat as a service' is a system that allows you to summon a cat at any time, so I actually summoned a large number of cats.

Cat as a service (CATAAS)

https://cataas.com/

The homepage of the site looks like this. At the time of writing, there are 1640 cats. Click 'Give me a cat'.



'

https://cataas.com/cat ' opens and a munchkin appears. The cat summoned is random each time, and it seems to change every time you reload.



Scrolling down the page, the basic API is explained. The previously accessed “/cat” is explained as “outputting a random cat.”



◆Tags
By entering the tag attached to each image after 'https://cataas.com/cat/', you can narrow down and call up only cat images with that tag. For example, if you enter '

https://cataas.com/cat/orange,cute ', a cute cat with orange fur will be summoned. Multiple tags can be entered by separating them with commas, but if there is no image with the corresponding tag, the call will fail.



◆GIF animation
If you enter ' https://cataas.com/cat/gif ', you will be able to call up cat images in GIF animation format.



◆Text output
You can add text to the cat image by specifying text after 'https://cataas.com/cat/says/'. For example, if you access the site by specifying ' https://cataas.com/cat/says/hello ', the text you entered will be added to the bottom of the image as shown below.



◆Combined tag and text specification
You can also use tag filters and text input at the same time. If you specify '

https://cataas.com/cat/cute/says/hello ', a cat image tagged with 'cute' will be output, with the word 'hello' at the bottom. It's hard to see because it's overlapping with the background, but if you look closely, you can see that the word 'hello' is indeed displayed.



◆ Change the text size and color
You can also specify the size and color of the text you enter. If you set the size to 50 and the color to red, like this: '

https://cataas.com/cat/says/hello?fontSize=50&fontColor=red ', the image below will be output.



In addition to the basic API, we also provide an 'Advanced' API that allows you to further customize the output results.



There is also an API that outputs all cat data and tag information.



By clicking 'Upload cat' at the top of the page, you can upload your cat image by specifying a tag.



The list of APIs and available options is listed in the documentation , so be sure to check it out if you want to call the cat of your choice.

◆ Forum is currently open
A forum related to this article has been set up on the official GIGAZINE Discord server . Anyone can post freely, so please feel free to comment! If you do not have a Discord account, please refer to the account creation procedure article to create an account!

• Discord | 'Tell me about some unusual APIs!' | GIGAZINE
https://discord.com/channels/1037961069903216680/1252183979919016016

in Review,   Web Service, Posted by log1d_ts