ecchi

Here's an example of fetching an ecchi image with the ecchi endpoint.

Fetching a vtuber image

Get an ecchi image & its details.

GET https://nekos.pro/api/ecchi

Please note, this returns NSFW images.

{
    "id": 304,
    "character_name": "Mifune Miyu",
    "url": "https://cdn.nekos.pro/ecchi/68149c0f338343809f5fe92eefea28bf.jpg"
}

Python example:

import aiohttp

headers = {'Content-type': 'application/json'}
async with aiohttp.ClientSession(headers=headers) as session:
    async with session.get('https://nekos.pro/api/ecchi') as resp:
        image = await resp.json()
        print(image['url'])

This example assumes you are using asyncio & running a Discord bot, which you should be using instead of requests, which is blocking.

Last updated