Developer API
Automate your orders easily with our standard SMM V2 API.
API Endpoint URL
https://www.trydoob.in/apiconnect
Send all requests via HTTP POST
POST
Service List
| Parameter | Description |
|---|---|
| key | Your API Key |
| action | services |
Example Response
[
{
"service": "1",
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram Services",
"rate": "0.50",
"min": "100",
"max": "10000",
"dripfeed": false,
"refill": true,
"cancel": true
}
]
POST
Add Order
| Parameter | Description |
|---|---|
| key | Your API Key |
| action | add |
| service | Service ID |
| link | Link to page |
| quantity | Needed quantity |
Example Response
{
"order": 23501
}
POST
Order Status
| Parameter | Description |
|---|---|
| key | Your API Key |
| action | status |
| order | Order ID provided by Add Order |
Example Response
{
"charge": "0.25",
"start_count": "100",
"status": "In progress",
"remains": "0",
"currency": "INR"
}
POST
User Balance
| Parameter | Description |
|---|---|
| key | Your API Key |
| action | balance |
Example Response
{
"balance": "150.00",
"currency": "INR"
}
PHP Code Example
Use this pre-built PHP class to connect your application with our API.
<?php
class SMMApi
{
public $api_url = 'https://www.trydoob.in/apiconnect';
public $api_key = 'LOGIN_TO_GET_YOUR_KEY';
public function order($data) { // add order
$post = array_merge(array('key' => $this->api_key, 'action' => 'add'), $data);
return json_decode($this->connect($post));
}
public function status($order_id) { // get order status
return json_decode($this->connect(array(
'key' => $this->api_key,
'action' => 'status',
'order' => $order_id
)));
}
public function services() { // get services
return json_decode($this->connect(array(
'key' => $this->api_key,
'action' => 'services',
)));
}
public function balance() { // get balance
return json_decode($this->connect(array(
'key' => $this->api_key,
'action' => 'balance',
)));
}
private function connect($post) {
$_post = Array();
if (is_array($post)) {
foreach ($post as $name => $value) {
$_post[] = $name.'='.urlencode($value);
}
}
$ch = curl_init($this->api_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
if (is_array($post)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
}
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
}
// ------------------------------------
// Example Usage
// ------------------------------------
$api = new SMMApi();
// 1. Fetch Services
$services = $api->services();
// print_r($services);
// 2. Check Balance
$balance = $api->balance();
// echo "Balance: " . $balance->balance . " " . $balance->currency;
// 3. Add an Order
$order = $api->order(array('service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100));
// echo "Order ID: " . $order->order;
// 4. Check Order Status
$status = $api->status($order->order);
// echo "Status: " . $status->status;
?>