API

Conecta tu panel o sistema y automatiza tus pedidos.

Dirección de la API
MétodoPOST
RespuestaJSON
Clave de la API Iniciar sesión

Errores

{"error": "Invalid API key"} {"error": "Incorrect request"} {"error": "Incorrect service ID"} {"error": "Not enough funds on balance"} {"error": "Incorrect order ID"}

Ejemplo en PHP

Clase lista para copiar: ya viene con la dirección de la API de este panel. Solo agrega tu clave.

Ejemplo en PHP

services Lista de servicios

ParámetroDescripción
keyTu clave de la API
actionservices
Ejemplo de respuesta
[ { "service": 1, "name": "Instagram Followers", "type": "Default", "category": "Instagram", "rate": "4.80", "min": "100", "max": "10000", "dripfeed": false, "refill": true, "cancel": true } ]

add Nuevo pedido

ParámetroDescripción
keyTu clave de la API
actionadd
serviceID del servicio
linkEnlace del perfil o de la publicación
quantityCantidad
runsRepeticiones (opcional, Drip-feed)
intervalIntervalo en minutos (opcional, Drip-feed)
Ejemplo de respuesta
{ "order": 23501 }

status Estado del pedido

ParámetroDescripción
keyTu clave de la API
actionstatus
orderID del pedido
Ejemplo de respuesta
{ "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "R$" }

status Estado de varios pedidos

ParámetroDescripción
keyTu clave de la API
actionstatus
ordersIDs de los pedidos, separados por comas (hasta 100)
Ejemplo de respuesta
{ "1": { "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "R$" }, "10": { "error": "Incorrect order ID" } }

refill Pedir reposición

ParámetroDescripción
keyTu clave de la API
actionrefill
orderID del pedido
Ejemplo de respuesta
{ "refill": "1" }

refill Reposición de varios pedidos

ParámetroDescripción
keyTu clave de la API
actionrefill
ordersIDs de los pedidos, separados por comas (hasta 100)
Ejemplo de respuesta
[ { "order": 1, "refill": 1 }, { "order": 3, "refill": { "error": "Incorrect order ID" } } ]

refill_status Estado de la reposición

ParámetroDescripción
keyTu clave de la API
actionrefill_status
refillID de la reposición
Ejemplo de respuesta
{ "status": "Completed" }

refill_status Estado de varias reposiciones

ParámetroDescripción
keyTu clave de la API
actionrefill_status
refillsIDs de las reposiciones, separados por comas (hasta 100)
Ejemplo de respuesta
[ { "refill": 1, "status": "Completed" }, { "refill": 2, "status": "Rejected" }, { "refill": 3, "status": { "error": "Refill not found" } } ]

cancel Cancelar pedidos

ParámetroDescripción
keyTu clave de la API
actioncancel
ordersIDs de los pedidos, separados por comas (hasta 100)
Ejemplo de respuesta
[ { "order": 9, "cancel": { "error": "Incorrect order ID" } }, { "order": 2, "cancel": 1 } ]

balance Saldo

ParámetroDescripción
keyTu clave de la API
actionbalance
Ejemplo de respuesta
{ "balance": "100.84292", "currency": "R$" }

Ejemplo en PHP

<?php class Api { /** API URL */ public $api_url = 'https://sheepsmm.com/api/v2'; /** Your API key */ public $api_key = ''; /** Add order */ public function order($data) { $post = array_merge(['key' => $this->api_key, 'action' => 'add'], $data); return json_decode((string)$this->connect($post)); } /** Get order status */ public function status($order_id) { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'status', 'order' => $order_id])); } /** Get orders status */ public function multiStatus($order_ids) { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'status', 'orders' => implode(",", (array)$order_ids)])); } /** Get services */ public function services() { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'services'])); } /** Refill order */ public function refill(int $orderId) { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'refill', 'order' => $orderId])); } /** Refill orders */ public function multiRefill(array $orderIds) { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'refill', 'orders' => implode(',', $orderIds)]), true); } /** Get refill status */ public function refillStatus(int $refillId) { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'refill_status', 'refill' => $refillId])); } /** Get refill statuses */ public function multiRefillStatus(array $refillIds) { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'refill_status', 'refills' => implode(',', $refillIds)]), true); } /** Cancel orders */ public function cancel(array $orderIds) { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'cancel', 'orders' => implode(',', $orderIds)]), true); } /** Get balance */ public function balance() { return json_decode($this->connect(['key' => $this->api_key, 'action' => 'balance'])); } private function connect($post) { $ch = curl_init($this->api_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); $result = curl_exec($ch); if (curl_errno($ch) != 0 && empty($result)) { $result = false; } curl_close($ch); return $result; } } // Examples $api = new Api(); $services = $api->services(); # all services $balance = $api->balance(); # balance $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100]); # Default $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100, 'runs' => 10, 'interval' => 60]); # Drip-feed $order = $api->order(['service' => 1, 'link' => 'http://example.com/test', 'comments' => "good pic\ngreat photo"]); # Custom Comments $order = $api->order(['service' => 1, 'link' => 'http://example.com/test']); # Package $order = $api->order(['service' => 1, 'username' => 'username', 'min' => 100, 'max' => 110, 'delay' => 30, 'expiry' => '11/11/2030']); # Subscriptions $status = $api->status($order->order); # status, charge, remains, start count, currency $statuses = $api->multiStatus([1, 2, 3]); $refill = (array) $api->multiRefill([1, 2]); $refillIds = array_column($refill, 'refill'); if ($refillIds) { $refillStatuses = $api->multiRefillStatus($refillIds); }