irl-pussy

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

Fetching an irl-pussy image

Get an irl-pussy image & its details.

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

{
    "id": 65,
    "url": "https://cdn.nekos.pro/irl-pussy/d64856f71270411c87971cac46371d59.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-pussy') 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