Developer Portal

API | TheMainSMM - En Ucuz SMM Paneli

Automate your social media marketing with our powerful REST API. Integrate 2666+ services directly into your platform, website, or custom application.

Base URL https://themainsmm.com/api/v2
10+API Methods
<500msResponse Time
99.9%Uptime SLA
JSONResponse Format

Quick Start Guide

Get up and running with the API in 3 simple steps

1

Get Your API Key

Create an account and find your API key in Account Settings.

2

Choose a Service

Browse our 2666+ services and note the service ID you want to order.

3

Send API Request

Make a POST request to the API endpoint with your key, action, and service parameters.

API Methods

Complete reference for all available API endpoints

POST

Service list

Parameters

ParameterDescription
keyYour API key
actionservices
keyYour API key
actionservices

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
    }
]
POST

Add order

Parameters

Default
ParameterDescription
keyYour API key
actionadd
keyYour API key
actionadd
serviceService ID
linkLink to page
quantityNeeded quantity
runs (optional)Runs to deliver
interval (optional)Interval in minutes
Package
ParameterDescription
keyYour API key
actionadd
keyYour API key
actionadd
serviceService ID
linkLink to page
Custom Comments
ParameterDescription
keyYour API key
actionadd
keyYour API key
actionadd
serviceService ID
linkLink to page
commentsComments list separated by \r\n or \n
Poll
ParameterDescription
keyYour API key
actionadd
keyYour API key
actionadd
serviceService ID
linkLink to page
quantityNeeded quantity
answer_numberAnswer number of the poll
Subscriptions
ParameterDescription
keyYour API key
actionadd
keyYour API key
actionadd
serviceService ID
usernameUsername
minQuantity min
maxQuantity max
posts (optional)Use this parameter if you want to limit the number of new (future) posts that will be parsed and for which orders will be created. If posts parameter is not set, the subscription will be created for an unlimited number of posts.
old_posts (optional)Number of existing posts that will be parsed and for which orders will be created, can be used if this option is available for the service.
delayDelay in minutes. Possible values: 0, 5, 10, 15, 20, 30, 40, 50, 60, 90, 120, 150, 180, 210, 240, 270, 300, 360, 420, 480, 540, 600
expiry (optional)Expiry date. Format d/m/Y

Example Response

{
    "order": 23501
}
POST

Order status

Parameters

ParameterDescription
keyYour API key
actionstatus
keyYour API key
actionstatus
orderOrder ID

Example Response

{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}
POST

Multiple orders status

Parameters

ParameterDescription
keyYour API key
actionmulti_status
keyYour API key
actionstatus
ordersOrder IDs (separated by a comma, up to 100 IDs)

Example Response

{
    "1": {
        "charge": "0.27819",
        "start_count": "3572",
        "status": "Partial",
        "remains": "157",
        "currency": "USD"
    },
    "10": {
        "error": "Incorrect order ID"
    },
    "100": {
        "charge": "1.44219",
        "start_count": "234",
        "status": "In progress",
        "remains": "10",
        "currency": "USD"
    }
}
POST

Create refill

Parameters

ParameterDescription
keyYour API key
actionrefill
keyYour API key
actionrefill
orderOrder ID

Example Response

{
    "refill": "1"
}
POST

Create multiple refill

Parameters

ParameterDescription
keyYour API key
actionmulti_refill
keyYour API key
actionrefill
ordersOrder IDs (separated by a comma, up to 100 IDs)

Example Response

[
    {
        "order": 1,
        "refill": 1
    },
    {
        "order": 2,
        "refill": 2
    },
    {
        "order": 3,
        "refill": {
            "error": "Incorrect order ID"
        }
    }
]
POST

Get refill status

Parameters

ParameterDescription
keyYour API key
actionrefill_status
keyYour API key
actionrefill_status
refillRefill ID

Example Response

{
    "status": "Completed"
}
POST

Get multiple refill status

Parameters

ParameterDescription
keyYour API key
actionmulti_refill_status
keyYour API key
actionrefill_status
refillsRefill IDs (separated by a comma, up to 100 IDs)

Example Response

[
    {
        "refill": 1,
        "status": "Completed"
    },
    {
        "refill": 2,
        "status": "Rejected"
    },
    {
        "refill": 3,
        "status": {
            "error": "Refill not found"
        }
    }
]
POST

Create cancel

Parameters

ParameterDescription
keyYour API key
actioncancel
keyYour API key
actioncancel
ordersOrder IDs (separated by a comma, up to 100 IDs)

Example Response

[
    {
        "order": 9,
        "cancel": {
            "error": "Incorrect order ID"
        }
    },
    {
        "order": 2,
        "cancel": 1
    }
]
POST

User balance

Parameters

ParameterDescription
keyYour API key
actionbalance
keyYour API key
actionbalance

Example Response

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

Code Examples

Ready-to-use code snippets in popular languages

<?php
$api_url = 'https://themainsmm.com/api/v2';

$params = [
    'key'      => 'YOUR_API_KEY',
    'action'   => 'add',
    'service'  => 1,
    'link'     => 'https://instagram.com/username',
    'quantity' => 1000,
];

$ch = curl_init($api_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

$result = json_decode($response, true);
print_r($result);
// Output: {"order": 12345}
import requests

api_url = 'https://themainsmm.com/api/v2'

params = {
    'key': 'YOUR_API_KEY',
    'action': 'add',
    'service': 1,
    'link': 'https://instagram.com/username',
    'quantity': 1000,
}

response = requests.post(api_url, data=params)
result = response.json()
print(result)
# Output: {"order": 12345}
curl -X POST 'https://themainsmm.com/api/v2' \
  -d 'key=YOUR_API_KEY' \
  -d 'action=add' \
  -d 'service=1' \
  -d 'link=https://instagram.com/username' \
  -d 'quantity=1000'

# Response: {"order": 12345}
const axios = require('axios');

const apiUrl = 'https://themainsmm.com/api/v2';

const params = new URLSearchParams({
    key: 'YOUR_API_KEY',
    action: 'add',
    service: '1',
    link: 'https://instagram.com/username',
    quantity: '1000',
});

const response = await axios.post(apiUrl, params);
console.log(response.data);
// Output: { order: 12345 }

What is an SMM Panel API?

API Integration

An SMM Panel API (Application Programming Interface) allows you to connect your website, app, or platform directly to our services. Instead of manually placing orders through the dashboard, the API lets your software automatically send orders, check statuses, and manage your account programmatically.

Full Automation

With the API, you can build fully automated social media marketing systems. Your customers place orders on your website, and the API automatically processes them through TheMainSMM. No manual intervention needed. Orders are placed and fulfilled 24/7 without you lifting a finger.

Build Your Own Panel

Use our API to power your own SMM panel or reseller website. Set your own prices, add your branding, and resell our 2666+ services under your own brand. Many successful SMM panels worldwide are built on top of TheMainSMM's API infrastructure.

Real-Time Processing

Our API processes requests in under 500ms with 99.9% uptime guarantee. Every order is queued instantly, statuses are updated in real-time, and refunds are processed automatically when applicable. Built for high-volume resellers handling thousands of orders daily.

Reseller Profit Guide

How resellers make $1,000-$10,000+ monthly using our API

How Resellers Make Money

1
Buy Wholesale from Us

Access our services at the lowest wholesale prices. For example, 1000 Instagram followers at $0.50.

2
Set Your Retail Price

List the same service on your panel or website at $2.00-$5.00. You control the markup.

3
Automate with API

Connect via API so orders from your customers are automatically fulfilled through our system.

4
Scale & Earn

With 100 orders/day at $2 profit each, that is $6,000/month in pure profit. Top resellers do 1000+ orders daily.

Profit Calculator

Our wholesale price (per 1K): $0.50
Your selling price (per 1K): $2.50
Profit per order: $2.00
50 orders/day: $3,000/month
100 orders/day: $6,000/month
500 orders/day: $30,000/month

These are realistic estimates based on average reseller data. Your results depend on your marketing, pricing strategy, and customer base.

Start Reselling Now

Why Use TheMainSMM API?

Fastest Response

Average response time under 500ms with global CDN

99.9% Uptime

Enterprise-grade infrastructure with automatic failover

2666+ Services

Instagram, YouTube, TikTok, Telegram, Facebook & more

Cheapest Prices

Wholesale rates starting from $0.001 per unit

Auto Refill

Automatic refill support for follower services

24/7 Support

Developer support via tickets with fast resolution

Rate Limits & Best Practices

Rate Limits

EndpointLimit
General requests10 req/sec
Order placement20 req/sec
Status checks20 req/sec
Balance inquiry10 req/sec

Best Practices

  • Cache service list responses for at least 10 minutes
  • Use exponential backoff for failed requests
  • Validate links before sending orders
  • Store order IDs for status tracking
  • Handle HTTP errors (429 = rate limited)
  • Keep your API key secure and never expose it in frontend code

Complete Guide to SMM Panel API Integration for Resellers

The social media marketing industry is booming, and smart resellers are leveraging SMM Panel APIs to build profitable automated businesses. Whether you are running your own SMM panel, managing a digital marketing agency, or building a SaaS platform for social media services, integrating with TheMainSMM API gives you access to the largest service catalog at wholesale prices.

How Does the SMM Panel API Work?

The API works on a simple request-response model using HTTP POST requests. You send a JSON-encoded request with your API key, the action you want to perform (like placing an order or checking status), and the required parameters. The server processes your request and returns a JSON response with the result. The entire process takes less than 500 milliseconds.

Common API Use Cases

  • Automated Order Processing: Connect your e-commerce store or custom panel to automatically place orders when customers purchase social media services.
  • White-Label Reselling: Build your own branded SMM panel using our API as the backend. Your customers never see TheMainSMM.
  • Bulk Operations: Place hundreds or thousands of orders simultaneously using the multi-order endpoint.
  • Status Monitoring: Build dashboards that track order statuses, delivery times, and refill activity in real-time.
  • Balance Management: Automate fund tracking and get alerts when your balance is low.

Getting Started as an API Reseller

Starting a reseller business with our API requires minimal technical knowledge. If you are using popular SMM panel software like Perfect Panel, the integration is just a matter of adding our API URL and key in the provider settings. For custom integrations, our code examples in PHP, Python, cURL, and Node.js make it easy to get started in minutes.

Supported Platforms & Services

Our API provides access to services across all major social media platforms including Instagram (followers, likes, views, comments, reels), YouTube (subscribers, views, watch hours, likes), TikTok (followers, views, likes, shares), Telegram (members, views, reactions), Facebook (page likes, post likes, followers), Twitter/X (followers, likes, retweets), Spotify (plays, followers, monthly listeners), and many more. Each service has a unique ID that you reference in your API calls.

Frequently Asked Questions

How do I get my API key?
After creating an account and logging in, go to your Account Settings page. Your unique API key will be displayed there. Keep this key secure and never share it publicly. If your key is compromised, you can regenerate it from the same page.
Is there a minimum deposit to use the API?
There is no special minimum deposit for API access. The same minimum deposit that applies to the dashboard applies to API users. You can start with as little as $1 and begin placing orders immediately through the API.
Can I use the API to build my own SMM panel?
Absolutely! Many of our customers use the API to power their own SMM panels. You can set your own prices, add your branding, and resell all 2666+ services under your own brand. Popular panel software like Perfect Panel has built-in support for adding API providers.
What happens if an order fails?
If an order fails or is cancelled, the funds are automatically refunded to your account balance. You can check the order status using the "status" API method. Failed orders return a "Cancelled" or "Partial" status with the refunded amount.
Do you support auto-refill via API?
Yes! When placing an order through the API, you can enable auto-refill by setting the refill parameter. This automatically refills the order if any drop is detected within the refill period. This is especially useful for follower and subscriber services.
What programming languages are supported?
Our API is language-agnostic since it uses standard HTTP POST requests with JSON responses. We provide code examples in PHP, Python, cURL, and Node.js, but you can use any programming language that supports HTTP requests including Java, Ruby, Go, C#, and more.
Is there a rate limit on API requests?
Yes, to ensure fair usage and system stability, we enforce rate limits of 10-20 requests per second depending on the endpoint. If you exceed the limit, you will receive a 429 (Too Many Requests) response. We recommend implementing exponential backoff in your code to handle rate limiting gracefully.
SMM Panel API Social Media Marketing API SMM Reseller API Cheapest SMM API Instagram API Services YouTube API Services TikTok API Panel Bulk SMM API Automated SMM Panel White Label SMM SMM API Integration Perfect Panel API Social Media Reseller API for SMM Services Cheapest API Provider SMM Panel India API Telegram API Services Facebook API Panel Auto Refill API Drip Feed API Mass Order API SMM Wholesale API REST API SMM Panel JSON API Social Media