Python
Python request method The "endpoint" parameter must be a valid type
get
https://neko-love.xyz
/api/v1/:endpoint
import requests
def nekoGET(endpoint):
r = requests.get("https://neko-love.xyz/api/v1/" + endpoint)
if r.status_code != 200:
print("An error has occurred")
else:
print(r.json()["url"])
nekoGET("neko")
Copy link