New Twitch API (Helix) returns null on Clip request with pagination

Last Edit: I was using “stripslashes” in my PHP code on the output returned by the API before converting it to a JSON object with “json_decode”, it seemed to work well for the first 2 requests but removing the “antislashes” in the last one prevented “json_decode” from making a correct object, thus making my code fail.

I am sorry for the trouble and thank you for your time and patience.
I didn’t need “stripslashes”, I just removed it.

Thank you very much for your help!
WX

Hello again,

I am using PHP and I make a curl request to the API.

The response is completely blank from the server and the status code is 200.

Here is the curl_getinfo dump from the “broken” request:

string(117) “https://api.twitch.tv/helix/clips?broadcaster_id=67852884&after=eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6Ik1qQXcifX0&first=100” array(2) { [0]=> string(42) “Client-ID: CENSORED” [1]=> string(29) “Content-Type:application/json” } array(26) { [“url”]=> string(117) “https://api.twitch.tv/helix/clips?broadcaster_id=67852884&after=eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6Ik1qQXcifX0&first=100” [“content_type”]=> string(31) “application/json; charset=utf-8” [“http_code”]=> int(200) [“header_size”]=> int(550) [“request_size”]=> int(222) [“filetime”]=> int(-1) [“ssl_verify_result”]=> int(0) [“redirect_count”]=> int(0) [“total_time”]=> float(0.280246) [“namelookup_time”]=> float(0.004603) [“connect_time”]=> float(0.01934) [“pretransfer_time”]=> float(0.064084) [“size_upload”]=> float(0) [“size_download”]=> float(51399) [“speed_download”]=> float(183567) [“speed_upload”]=> float(0) [“download_content_length”]=> float(-1) [“upload_content_length”]=> float(-1) [“starttransfer_time”]=> float(0.265061) [“redirect_time”]=> float(0) [“redirect_url”]=> string(0) “” [“primary_ip”]=> string(13) “104.117.18.45” [“certinfo”]=> array(0) { } [“primary_port”]=> int(443) [“local_ip”]=> string(15) “CENSORED” [“local_port”]=> int(60886) }

Edit: Again, the code works fine and the flow of execution is exactly the same as from the request I make in step #3 (from my original post), but it turns out that the last request I make (the one in #5) returns a completely blank page from the Twitch API when I give it the pagination “eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6Ik1qQXcifX0”.

Note: this line: [“size_download”]=> float(51399) is what made me think that there was something wrong with my code, I was getting an empty response but the download size said otherwise, thank you Dist for pointing me in the right direction.