API key. $api_url = 'https://smmpwr.com/api/v2'; $api_key = 'YOUR_API_KEY'; function api_call($api_url, $params) { $ch = curl_init($api_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); return json_decode($response, true); } // 1) Service list $services = api_call($api_url, ['key' => $api_key, 'action' => 'services']); // 2) Place an order $order = api_call($api_url, [ 'key' => $api_key, 'action' => 'add', 'service' => 1, 'link' => 'https://www.instagram.com/username/', 'quantity' => 100, ]); // => ['order' => 12345] // 3) Check order status $status = api_call($api_url, ['key' => $api_key, 'action' => 'status', 'order' => $order['order']]); // => ['charge' => '0.0300', 'start_count' => 0, 'status' => 'Pending', // 'remains' => 100, 'currency' => 'USD'] // 4) Balance $balance = api_call($api_url, ['key' => $api_key, 'action' => 'balance']); print_r($balance);