irl-boobs

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

Fetching an irl-boobs image

Get an irl-boobs image & its details.

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

{
    "id": 90,
    "url": "https://cdn.nekos.pro/irl-boobs/f84de7a566544a2cac1a8cd0fbe460f7.png"
}

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-boobs') 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