'https://api.ujeebu.com/ai-scraper', CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ 'ApiKey: ' . $apiKey, 'Content-Type: application/json' ], CURLOPT_POSTFIELDS => json_encode([ 'url' => 'https://store.example.com/product/12345', 'prompt' => 'Extract the product name, price, rating, and availability status', 'mm_model' => 'gpt-4o-mini', 'temperature' => 0.0 ]) ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode === 200) { $data = json_decode($response, true); echo json_encode($data['data'] ?? [], JSON_PRETTY_PRINT) . "\n"; } ?>