Want to use the API? Login or Register to generate your API key.

API Documentation

Welcome to the API documentation. You can use our API to integrate our services into your own applications. The API response format is JSON.

API URL https://www.smmexchanges.info/api.php
HTTP Method POST
Response Format JSON

POST Service List

Get a list of all active services.

Parameters Description
key Your API Key
action services
Example Response
[
    {
        "service": 1,
        "name": "Instagram Followers [Max: 50K] [Instant]",
        "category": "Instagram Followers",
        "rate": "1.20",
        "min": "100",
        "max": "50000",
        "type": "Default"
    },
    ...
]
                    

POST Add Order

Place a new order.

Parameters Description
key Your API Key
action add
service Service ID
link Link to page/post
quantity Quantity needed
Example Response
{
    "order": 12345
}
                    

POST Order Status

Get the status of an order.

Parameters Description
key Your API Key
action status
order Order ID
Example Response
{
    "charge": "0.24",
    "start_count": "1520",
    "status": "Completed",
    "remains": "0"
}
                    

POST User Balance

Get your current account balance.

Parameters Description
key Your API Key
action balance
Example Response
{
    "balance": "50.00",
    "currency": "USD"
}
                    

POST Refill

Request a refill for an order (if available).

Parameters Description
key Your API Key
action refill
order Order ID
Example Response
{
    "refill": "1"
}
                    

POST Cancel

Cancel an order (only if status is Pending).

Parameters Description
key Your API Key
action cancel
order Order ID
Example Response
{
    "cancel": "1",
    "refunded": "1.20"
}
                    

Example Code

Here are examples of code in different languages to help you get started quickly.

<?php
class Api
{
    public $api_url = 'https://www.smmexchanges.info/api.php';
    public $api_key = '';

    public function __construct($api_key)
    {
        $this->api_key = $api_key;
    }

    public function order($data)
    {
        $post = array_merge(array('key' => $this->api_key, 'action' => 'add'), $data);
        return json_decode($this->connect($post));
    }

    public function status($order_id)
    {
        return json_decode($this->connect(array(
            'key' => $this->api_key,
            'action' => 'status',
            'order' => $order_id
        )));
    }

    public function services()
    {
        return json_decode($this->connect(array(
            'key' => $this->api_key,
            'action' => 'services'
        )));
    }

    public function 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;
    }
}

// Examples
$api = new Api('YOUR_API_KEY');

// Get Services
$services = $api->services();

// Add Order
$order = $api->order(array('service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100));

// Get Status
$status = $api->status($order->order);

// Get Balance
$balance = $api->balance();
?>
import requests
import json

class Api:
    def __init__(self, api_url, api_key):
        self.api_url = api_url
        self.api_key = api_key

    def order(self, data):
        post_data = {'key': self.api_key, 'action': 'add'}
        post_data.update(data)
        return self.connect(post_data)

    def status(self, order_id):
        return self.connect({
            'key': self.api_key,
            'action': 'status',
            'order': order_id
        })

    def services(self):
        return self.connect({
            'key': self.api_key,
            'action': 'services'
        })

    def balance(self):
        return self.connect({
            'key': self.api_key,
            'action': 'balance'
        })

    def connect(self, data):
        response = requests.post(self.api_url, data=data)
        return response.json()

# Examples
api_url = 'https://www.smmexchanges.info/api.php'
api_key = 'YOUR_API_KEY'
api = Api(api_url, api_key)

# Get Services
services = api.services()
print(services)

# Add Order
order = api.order({'service': 1, 'link': 'http://example.com/test', 'quantity': 100})
print(order)

# Get Status
status = api.status(12345)
print(status)

# Get Balance
balance = api.balance()
print(balance)