API Documentation

Compatible with the SMM Panel API v2 standard. It integrates with PerfectPanel, Glycon, JAP, SmartPanel and similar systems.
You can create and use your API key from your profile page.

Base URL

https://easygram.net/api/myservices.php

GET POST Both HTTP methods are supported.

Authentication

The key parameter is required in all requests.

Parameter Type Description
key string Your API key from your profile (required)

Get API Key

Endpoints

action=balance

Query account balance.

  • key API key
  • action balance
action=services

List all active services.

  • key API key
  • action services
action=add

Create a new order.

  • key API key
  • action add
  • service Service ID
  • link Target URL
  • quantity Quantity
action=status

Query order status.

  • key API key
  • action status
  • order Order ID

Example Requests

1. Balance Query:

curl "https://easygram.net/api/myservices.php?key=API_KEY&action=balance"

2. Service List:

curl "https://easygram.net/api/myservices.php?key=API_KEY&action=services"

3. Create Order:

curl -X POST "https://easygram.net/api/myservices.php" \ -d "key=API_KEY" \ -d "action=add" \ -d "service=1" \ -d "link=https://instagram.com/username" \ -d "quantity=1000"

4. Order Status:

curl "https://easygram.net/api/myservices.php?key=API_KEY&action=status&order=12345"

PHP Example

<?php $apiUrl = "https://easygram.net/api/myservices.php"; $apiKey = "API_KEY"; // Balance Query function getBalance($url, $key) { $response = file_get_contents($url . "?key=" . $key . "&action=balance"); return json_decode($response, true); } // Service List function getServices($url, $key) { $response = file_get_contents($url . "?key=" . $key . "&action=services"); return json_decode($response, true); } // Create Order function addOrder($url, $key, $serviceId, $link, $quantity) { $postData = [ "key" => $key, "action" => "add", "service" => $serviceId, "link" => $link, "quantity" => $quantity ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postData)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); return json_decode($response, true); } // Order Status function getStatus($url, $key, $orderId) { $response = file_get_contents($url . "?key=" . $key . "&action=status&order=" . $orderId); return json_decode($response, true); } // Usage $balance = getBalance($apiUrl, $apiKey); print_r($balance); $services = getServices($apiUrl, $apiKey); print_r($services); $order = addOrder($apiUrl, $apiKey, 1, "https://instagram.com/username", 1000); print_r($order); $status = getStatus($apiUrl, $apiKey, $order["order"]); print_r($status); ?>

Response Structures

action=balance

{ "balance": "125.50", "currency": "USD" }

action=services

[ { "service": "1", "name": "Instagram Followers [USD]", "type": "default", "category": "Instagram", "rate": "45.00", "min": "100", "max": "10000", "dripfeed": false, "refill": false, "cancel": true } ]

action=add (Success)

{ "order": 12345 }

action=status

{ "status": "pending", "start_count": "0", "remains": "1000", "currency": "USD" }

Order Statuses

Status Description
pending Order pending
in_progress Order processing
completed Order completed
partial Partially completed
canceled Order canceled
refunded Refunded

Error Messages

Error Description
API Key is missing API key not provided
Invalid API Key Invalid or inactive API key
Invalid action Invalid action parameter
Missing parameters Required parameters missing
Service ID not found Service not found or inactive
Quantity below minimum Quantity is below the minimum limit
Quantity above maximum Quantity is above the maximum limit
Not enough funds Insufficient balance
Order not found Order not found
System error A system error occurred

Error Response Example

{ "error": "Not enough funds" }

In case of an error, the response contains an error key. You can handle errors by checking for the presence of this key.

Important Notes

  • All prices are in USD (US Dollar).
  • The rate value shows the price per 1000 units.
  • Order cost is calculated using the formula (quantity / 1000) × rate.
  • Do not share your API key with anyone.
  • Excessive requests may cause your account to be suspended.