Report
Reports an image.
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"author_id": "428346579283272370",
"description": "The tag 'maid' does not suit the image.",
"existed": false,
"image_id": 8008
}{"detail":"Bad Request"}{"detail":"Forbidden"}{"detail":"Not Found"}{"detail":"Internal Server Error"}curl -X POST \
'https://api.waifu.im/report' \
-H 'Content-Type: application/json' \
-H 'Accept-Version: v5' \
-H 'Authorization: Bearer TjBY0MBcS3-SEc3Ms6T4GKjHGJkbqM6McejlQdnqo2y47jWNLa4agsWYdJukocDqHpm2zYFO5z2AjMzkUSfLsCz1AgbDhSjKLMIOnhJGFgODgOkSnzaAWzvGZZPdbm6vOTxs2chmz-3DSRVzwQLl__eYE4Wnjtr0aIGzXlo82M0' \
-d '{
"image_id": 8008,
"description": "The tag '\''maid'\'' does not suit the image."
}'
import requests
url = 'https://api.waifu.im/report'
headers = {
'Accept-Version': 'v5',
'Authorization': 'Bearer TjBY0MBcS3-SEc3Ms6T4GKjHGJkbqM6McejlQdnqo2y47jWNLa4agsWYdJukocDqHpm2zYFO5z2AjMzkUSfLsCz1AgbDhSjKLMIOnhJGFgODgOkSnzaAWzvGZZPdbm6vOTxs2chmz-3DSRVzwQLl__eYE4Wnjtr0aIGzXlo82M0',
'Content-Type': 'application/json',
}
data = {
'image_id': 8008,
'description': "The tag 'maid' does not suit the image."
}
response = requests.post(url, headers=headers, json=data)
if response.status_code == 200:
data = response.json()
# Process the response data as needed
else:
print('Request failed with status code:', response.status_code)
Last updated