I have CPT transcript in wordpress website. And create 250 post in CPT transcript.
Now, I want to fetch all transcript data and want to store in another database using rest api url http://example.com/wp-json/wp/v2/transcript/
AND
HTTP request using CURL
$ch = curl_init();
$url = 'http://example.com/wp-json/wp/v2/transcript/';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
return curl_exec($ch);
curl_close($ch);
$ch = curl_init();
$url = 'http://example.com/wp-json/wp/v2/transcript/';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
return curl_exec($ch);
curl_close($ch);
But this return only 10 transcript,
Please help me, how to retrieve all transcript post data.