This module retrieves random fox images from the api.sefinek.net API using native module like https. Each image is appropriately compressed.
npm install random-fox-img
const getRandomFox = require('random-fox-img');
(async () => {
const data = await getRandomFox();
console.log(data.message);
})();
getRandomFox().then(data => console.log(data.message));
{
"success": true,
"status": 200,
"info": { "category": "animals", "endpoint": "fox" },
"message": "https://cdn.sefinek.net/images/animals/fox/red-fox-in-the-wild-2-1624831.jpg"
}
Open a new Issue if you have any questions or issues related to this module or API.
If you like this module, please star the repository.
Copyright 2023-2024 © by Sefinek. All Rights Reserved.