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.


    "id": 90,
    "url": ""

Python example:

import aiohttp

headers = {'Content-type': 'application/json'}
async with aiohttp.ClientSession(headers=headers) as session:
    async with session.get('') as resp:
        image = await resp.json()

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

Last updated