ℹī¸/animals

This is complete documentation about how to get Animal Images using Random Stuff API (This Endpoint is accessible using free plan as well as Paid plan)

Since this API is only accessible using RapidAPI, you need to change the base URL to https://random-stuff-api.p.rapidapi.com

This endpoint allows you to get animal images

GET https://api.pgamerx.com/animals

Path Parameters

NameTypeDescription

animal*

String

Which animal picture do you want?

Query Parameters

NameTypeDescription

limit*

String

How many images do you want

Headers

NameTypeDescription

Authorizaion*

String

x-rapidapi-key*

String

The API key you received from RapidApi

x-rapidapi-host*

String

It should always be:

"random-stuff-api.p.rapidapi.com"

{
"0":{
"url":"https://i.ibb.co/z2Vdgww/8O3Kj.jpg"
},
"1":{
"url":"https://i.ibb.co/0hsBPLZ/dog-Wb4db-min.jpg"
}
}

Animals Available

  • Dog

  • Cat

  • Wolf

  • Fox

var axios = require("axios").default;

var options = {
  method: 'GET',
  url: 'https://random-stuff-api.p.rapidapi.com/animals/dog',
  params: {limit: "1"},
  headers: {
    authorization: 'Random Stuff API',
    'x-rapidapi-host': 'random-stuff-api.p.rapidapi.com',
    'x-rapidapi-key': 'RapidAPI key'
  }
};

axios.request(options).then(function (response) {
	console.log(response.data);
}).catch(function (error) {
	console.error(error);
});

For examples in all languages, checkout RapidAPI Page

Last updated