API

HTTP Method POST / GET
API URL https://catsmm.com/api/v2
API Key Lấy API Key tại Thông tin tài khoản
Response format JSON

Service list

Parameters Description
key Your API Key
action services
Example response
[
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "First Category",
        "rate": "0.90",
        "min": "50",
        "max": "10000",
        "refill": true,
        "cancel": true
    },
    {
        "service": 2,
        "name": "Comments",
        "type": "Custom Comments",
        "category": "Second Category",
        "rate": "8",
        "min": "10",
        "max": "1500",
        "refill": false,
        "cancel": true
    }
]

Add order

Parameters Description
key Your API Key
action add
service Service ID
link Link to page
quantity Needed quantity
Example response
{
    "order": 23501,
    "newBalance": "1,234.56"
}

Order status

Parameters Description
key Your API Key
action status
order Order ID
Example response
{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

Multiple orders status

Parameters Description
key Your API Key
action status
orders Order IDs (separated by a comma, up to 100 IDs)
Example response
{
    "1": {
        "charge": "20.00000000",
        "start_count": "9379",
        "status": "Completed",
        "remains": "0",
        "currency": "USD"
    },
    "123": {
        "error": "Incorrect order ID"
    },
    "3": {
        "charge": "0.02000000",
        "start_count": "10460",
        "status": "Canceled",
        "remains": "0",
        "currency": "USD"
    }
}

Create refill

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

Get refill status

Parameters Description
key Your API Key
action refill_status
refill Refill ID
Example response
{
  "status": "Completed"
}

Get refill status

Parameters Description
key Your API Key
action refill_status
refills Refills ID (separated by a comma, up to 100 IDs)
Example response
[
    {
        "refill": "1",
        "status": "Rejected"
    },
    {
        "refill": "2",
        "status": "Rejected"
    },
    {
        "refill": "3",
        "status": {
            "error": "Refill not found"
        }
    }
]

Create cancel

Parameters Description
key Your API Key
action status
orders Order IDs (separated by a comma, up to 100 IDs)
Example response
[
    {
        "order": 9,
        "cancel": {
            "error": "Incorrect order ID"
        }
    },
    {
        "order": 2,
        "cancel": 1
    }
]

User balance

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

Example PHP Code

<?php

#services list 
$post_data = [
    'action' => 'services'
];


#add default order
$post_data = [
    'action' => 'add',
    'link' => 'https://...',
    'quantity' => 100,
    'service' => 20
];


#add custom comments / custom comments package order
$post_data = [
    'action' => 'add',
    'link' => 'https://...',
    'comments' => "msg1\nmsg2\nmsg3",
    'service' => 15
];

#add package order
$post_data = [
    'action' => 'add',
    'link' => 'https://...',
    'service' => 10
];

#add custom comment likes order
$post_data = [
    'action' => 'add',
    'link' => 'https://...',
    'quantity' => 100,
    'service' => 10,
    'username' => 'vsmm'
];

#order status
$post_data = [
    'action' => 'status',
    'order' => 120494
];

#order multiple status
$post_data = [
    'action' => 'status',
    'orders' => '120494,120495,120496'
];

#create refill
$post_data = [
    'action' => 'refill',
    'order' => 120494
];

#refill status
$post_data = [
    'action' => 'refill_status',
    'refills' => '1,2,3'
];

#multi refill status
$post_data = [
    'action' => 'refill_status',
    'refills' => '1,2,3'
];

#cancel
$post_data = [
    'action' => 'cancel',
    'orders' => '1,2,3'
];

#user balance
$post_data = [
    'action' => 'balance',
];


### api key ###
$post_data['key'] = 'Your API Key';


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://catsmm.com/api/v2');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true); # USING POST METHOD, GET METHOD ALSO AVAILABLE
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$result = curl_exec($ch);
curl_close($ch);

var_dump($result); // show response



#also can using with GET method, such as: https://catsmm.com/api/v2?key=YOUR_API_KEY&action=services

?>