Skip to content

API Docs

Riku edited this page Mar 11, 2020 · 6 revisions

Nekos.cafe API

The API for nekos.cafe is pretty simple as long as you know how HTTP works.

Basic endpoints

https://nekos.cafe/api/info - GET

This endpoint provides information about the API, such as total files, if invite mode is on, or if admin signups are enabled, this is mainly for the frontend to decide to hide or unhide certain elements as they may not be needed. Example below.

{
  "inviteonly": true,
  "adminreg": false,
  "totalfiles": 63,
  "uploadURL": "https://i.nekos.cafe/"
}

User endpoints

https://nekos.cafe/api/user/info - POST

This endpoint requests the header token which contains the token of the user, it returns the username and the file count associated with the user. Example below.

{
  "username": "Moptop",
  "filecount": 36
}
Clone this wiki locally