All pages
Powered by GitBook
1 of 1

Loading...

Paon

Get a paon image

GET https://api.night-api.com/images/animals/paon/:id

Path Parameters

Name
Type
Description

Headers

Name
Type
Description

ID

Number

An image ID

authorization*

String

Your API key

{ 
    status: 400, 
    content: 'Clé invalide' 
}
{
    "status": 200,
    "content": {
        "id": 18,
        "url": "https://cdn.night-api.com/api/images/animals/paon/HSpg6YgX92xnPY16AsoJxVXPs8KVQE.png"
    }
}
const axios = require("axios");

axios.get('https://api.night-api.com/images/animals/paon', {
    headers: {
        authorization: "Your API token"
    }
})
.then(function (response) {
    console.log(response.data);
})