API
Interactions
Cringe
Search

Search

The /cringe endpoint allows users to receive appropriate cringe anime responses from the server. This document provides a detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js for handling the requests.

Endpoint Details

  • URL: /cringe
  • Method: GET
  • Content Type: application/json

Request Headers

The request to the /cringe endpoint should be a JSON object with the following headers:

HeaderTypeDescriptionRequired
AuthorizationstringThe unique identifier of the user sending the request.True

Example Request

import axios from "axios";
 
/*
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
*/
const url = "https://waifu.it/api/v4/cringe";
const data = async () => {
  try {
    const { data } = await axios.get(url, { headers: {
      Authorization: "Your-API-Token",
    } });
    return data;
  } catch (err) {
    throw new Error(err.message);
  }
};
 
console.log(data);

Responses

The server will respond with an appropriate message based on the input provided. The possible response messages are as follows:

Content Type: application/json

  "status": 200,
  "message": {}

This documentation should help you use axios (opens in a new tab) for Node.js and requests (opens in a new tab) for Python to interact with the /cringe endpoint.