irl-ass

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

Fetching an irl-ass image

Get an irl-ass image & its details.

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

{
    "id": 70,
    "url": "https://cdn.nekos.pro/irl-ass/b37e4d61f83c4d2ba6898b394d0e0b11.jpeg"
}

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/irl-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