For the complete documentation index, see llms.txt. This page is also available as Markdown.

🐕Dog

Get a dog image

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

Path Parameters

Name
Type
Description

ID

Number

An image ID

Headers

Name
Type
Description

authorization*

String

Your API key

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

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

Last updated

Was this helpful?