Clips API - 404 Errors

Is there something wrong with clips api? It’s returning error 404 for any clip I try.
Here’s the code:

$slug = filter_input(INPUT_GET ,'slug', FILTER_SANITIZE_STRING);

$url = "" . $slug;
$clientid = "myclientid";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
	'Client-ID: '.$clientid

$output = curl_exec($ch);
$response = json_decode($output, true);


Edit: Nevermind. I know why. You can close the topic.

You need to specify API version v5 via Accept: application/vnd.twitchtv.v5+json header. (For anyone else with the same problem coming across this thread)

1 Like

Yeah I completely forgot to add that to the edit. Thanks :wink:

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