creampie

Here's an example of fetching a creampie image with the creampie endpoint.

Fetching a creampie image

Get a creampie image & its details.

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

Please note, this returns NSFW images.

{
    "id": 33,
    "character_name": "Dehya (Genshin Impact)",
    "url": "https://cdn.nekos.pro/creampie/bcc9704ef6a241408e2136cad472dc5a.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/creampie') 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