Streams API returning incorrect results

Thank you for the replies.

@DallasNChains - yes, I am specifying a Client-ID. Here is my current curl function:

function getCurl($url, $client_id) {
$ch = curl_init();

$options = [
	CURLOPT_HTTPHEADER => [
		'Client-ID: '.$client_id,
		'Content-type: text/plain',
		],
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_URL => $url
];

curl_setopt_array($ch, $options);

$data = curl_exec($ch);
curl_close($ch);

return $data;

}

As an aside, if I access the url passed to this function and tack on the &client_id=… the results are correct (shows a result ONLY for the channels I specify. I’m only seeing this behaviour (returns 25 results regardless of how many channels I specify) when I access the endpoint via PHP.

To confuse things even more, if I do this all through PHP’s file_get_contents it works perfectly fine.

Thanks for any pointers.