Trying to get the top clips on twitch

I have been trying to get the tops clips via an API but I get the error message:
{“error”:“Not Found”,“status”:404,“message”:""}

code:
import requests

API_ENDPOINT = 'https://api.twitch.tv/kraken/clips/top?period=week&trending=false&limit=1'

ID = 'REMOVED'
auth = 'application/vnd.twitchtv.v5+json'

head = {
    'Client-ID' : ID,
    'Accept' : auth
}

r = requests.post(url = API_ENDPOINT, headers = head)
print(r.text)

requests.post makes a HTTP Post request

This endpoint is a HTTP get request

requests.get is the correct call

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.