paizuri

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

Fetching a paizuri image

Get a paizuri image & its details.

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

Please note, this returns NSFW images.

{
    "id": 111,
    "character_name": "Raiden Shogun",
    "url": "https://cdn.nekos.pro/paizuri/6d7e0c57e5044e46be429a65cc16a6a0.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/paizuri') 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