'https://api.ujeebu.com/scrape', CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ 'ApiKey: ' . $apiKey, 'Content-Type: application/json' ], CURLOPT_POSTFIELDS => json_encode([ 'url' => $url, 'js' => true, // Enable JavaScript execution 'wait_for' => 3000 // Wait 3 seconds for content to load ]) ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode === 200) { $data = json_decode($response, true); $html = $data['html'] ?? ''; echo "Rendered HTML: " . strlen($html) . " characters\n"; } ?>