Skip to main content
Version: 1.0.0

NSFW Images

/random/lewd

This route allows you to get a random NSFW image URL. Please note that this route is NSFW and you should only use it if you are over 18.

Examples

Using the fetch API

fetch('https://nekonya.classydev.fr/api/v1/random/lewd')
.then((res) => res.json())
.then((data) => console.log(data)); // { url: 'https://nekonya.classydev.fr/images/lewds/...' }

Using Axios

axios.get('https://nekonya.classydev.fr/api/v1/random/lewd')
.then((res) => console.log(res.data)); // { url: 'https://nekonya.classydev.fr/images/lewds/...' }

Using the official clients

Depending on the language you are using, some clients may or may not include support for the NSFW route. Please refer to the documentation of the client you are using to see if it supports this route.

Response

The response is a JSON object with the following properties:

PropertyDescription
urlThe URL of the image.