irl-fucking

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

Fetching an irl-fucking image

Get an irl-fucking image & its details.

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

{
    "id": 39,
    "url": "https://cdn.nekos.pro/irl-fucking/f8e506f13f024812b009d84ebbe33c89.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-fucking') 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