🚀Quick Start

Important notes.

Please note that all of our API endpoints are free to use, however you must link back to Nekos.Pro somewhere in your application where people can easily see it, unless you're a Patreon subscriber.

Making your first request.

Making your first request is a simple matter. This will return a lovely neko image, which is nice. Here's a Python example that's async friendly:

import aiohttp

headers = {'Content-type': 'application/json'}
async with aiohttp.ClientSession(headers=headers) as session:
    async with session.get('https://nekos.pro/api/neko') as resp:
        image = await resp.json()
        print(image['url'])

And here's a non-async friendly example:

import requests

url = 'https://nekos.pro/api/neko'
headers = {'Content-type': 'application/json'}
image = requests.get(url, headers=headers)
print(image.json()['url'])

Click below to be taken to a list of our available API endpoints.

📌API Endpoints

Last updated