vtuber

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

Fetching a vtuber image

Get a vtuber image & its details.

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

Please note, this returns NSFW images.

{
    "id": 170,
    "vtuber_name": "Shiori Novella",
    "url": "https://cdn.nekos.pro/vtuber/ed949c4812f548bdaa3245b541fdd949.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/vtuber') 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