Search
The /bonk
endpoint allows users to receive appropriate bonk 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:
/bonk
- Method: GET
- Content Type: application/json
Request Headers
The request to the /bonk
endpoint should be a JSON object with the following headers:
Header | Type | Description | Required |
---|---|---|---|
Authorization | string | The 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/bonk";
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 /bonk
endpoint.