-
Notifications
You must be signed in to change notification settings - Fork 10
API Docs
Riku edited this page Mar 11, 2020
·
6 revisions
The API for nekos.cafe is pretty simple as long as you know how HTTP works.
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/"
}
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
}