Random Neko images Rest API is a free API. You can use it for free. With its help, you can also create a Telegram bot and a website and earn money. It is very easy to do that. And you can do it in all programming languages.
Random Anime Neko images Rest API
Random Anime Neko images Rest API is very easy to use, you will get an endpoint, and simply you have to make a GET request on it.
GET https://api.catboys.com/img
Only one image may be sent per request. The following image content types are supported Neko images API free:
image/jpeg
image/png
image/gif
image/tiff
The response is an Image object within a data envelope. Example response Neko images RestAPI:
{ "url": "https://cdn.catboys.com/images/image_231.jpg", "artist": "unknown", "artist_url": "none", "source_url": "none", "error": "none" }
How To Use Anime Neko images Rest API
PHP
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.catboys.com/img", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
JavaScript
const options = {method: 'GET'}; fetch('https://api.catboys.com/img', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
Python
import requests url = "https://api.catboys.com/img" response = requests.request("GET", url) print(response.text)
For More Detail – https://catboys.com/api