fucking

Here's an example of fetching a fucking (lol) image with the fucking endpoint.

Fetching a fucking image

Get a fucking image & its details.

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

Please note, this returns NSFW images.

{
    "id": 110,
    "character_name": "Ludmilla (Nikke)",
    "url": "https://cdn.nekos.pro/fucking/99615b93f7234c2f8db0de9d1389e20c.jpg"
}

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