Waifu.im API Docs
Ask or search…
K
Comment on page

Tags

Get tags

get
https://api.waifu.im/
tags
Get all the tags available.
Here is an example to get a list of all the tags available:
Curl
Python
Javascript
curl -X GET \
'https://api.waifu.im/tags'
import requests
url = 'https://api.waifu.im/tags'
response = requests.get(url)
if response.status_code == 200:
data = response.json()
# Process the response data as needed
else:
print('Request failed with status code:', response.status_code)
const apiUrl = 'https://api.waifu.im/tags';
fetch(apiUrl)
.then(response => {
if (response.ok) {
return response.json();
} else {
throw new Error('Request failed with status code: ' + response.status);
}
})
.then(data => {
// Process the response data as needed
console.log(data);
})
.catch(error => {
console.error('An error occurred:', error.message);
});