Request
A few examples in python of how you could use the api.

The shortest way:

1
import requests
2
print(requests.get("https://kawaii.red/api/gif/kiss/token=token/").json())
Copied!
1
import requests
2
​
3
kawaii_token = "token"
4
​
5
def kawaii(main, sub, filter):
6
r = requests.get(f"https://kawaii.red/api/{main}/{sub}/token={kawaii_token}&filter={filter}/")
7
return str(r.json()["response"])
8
​
9
print(kawaii("gif", "kiss", []))
Copied!

Output:

1
"https://api.kawaii.red/gif/kiss/kiss1.gif"
Copied!
If you use the type txt you can leave out the part with ".json()["response"]" completely.
Last modified 5mo ago