ass

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

Fetching an ass image

Get an ass image & its details.

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

Please note, this returns NSFW images.

{
    "id": 54,
    "character_name": "Original Character",
    "url": "https://cdn.nekos.pro/ass/39b21775f8d2400a9f25a9db54ccd880.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/ass') 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