Youtube Data API get oldest videos from a channel

Viewed 943

I successfully get the most recent videos from a youtube channel by using order=date, i now want to get the oldest videos due to youtube api not returning pages after 500 results. Is there a parameter than can accomplish this?

     $ch = curl_init();
            curl_setopt($ch,CURLOPT_URL,'https://www.googleapis.com/youtube/v3/search?
key='.$api_key.'&channelId='.$channel_id.'&part=snippet,id&order=date&maxResults='.$limit.'&fields=*');

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
            $result = curl_exec($ch);
            curl_close($ch);
1 Answers
Related