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.
https://themainsmm.com/api/v2
Quick Start Guide
Get up and running with the API in 3 simple steps
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
Service list
Parameters
| Parameter | Description |
|---|---|
key | Your API key |
action | services |
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
| Parameter | Description |
|---|---|
key | Your API key |
action | add |
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
quantity | Needed quantity |
runs (optional) | Runs to deliver |
interval (optional) | Interval in minutes |
| Parameter | Description |
|---|---|
key | Your API key |
action | add |
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
| Parameter | Description |
|---|---|
key | Your API key |
action | add |
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
comments | Comments list separated by \r\n or \n |
| Parameter | Description |
|---|---|
key | Your API key |
action | add |
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
quantity | Needed quantity |
answer_number | Answer number of the poll |
| Parameter | Description |
|---|---|
key | Your API key |
action | add |
key | Your API key |
action | add |
service | Service ID |
username | Username |
min | Quantity min |
max | Quantity 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. |
delay | Delay 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
}
Order status
Parameters
| Parameter | Description |
|---|---|
key | Your API key |
action | status |
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
| Parameter | Description |
|---|---|
key | Your API key |
action | multi_status |
key | Your API key |
action | status |
orders | Order 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"
}
}
Create refill
Parameters
| Parameter | Description |
|---|---|
key | Your API key |
action | refill |
key | Your API key |
action | refill |
order | Order ID |
Example Response
{
"refill": "1"
}
Create multiple refill
Parameters
| Parameter | Description |
|---|---|
key | Your API key |
action | multi_refill |
key | Your API key |
action | refill |
orders | Order 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"
}
}
]
Get refill status
Parameters
| Parameter | Description |
|---|---|
key | Your API key |
action | refill_status |
key | Your API key |
action | refill_status |
refill | Refill ID |
Example Response
{
"status": "Completed"
}
Get multiple refill status
Parameters
| Parameter | Description |
|---|---|
key | Your API key |
action | multi_refill_status |
key | Your API key |
action | refill_status |
refills | Refill 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"
}
}
]
Create cancel
Parameters
| Parameter | Description |
|---|---|
key | Your API key |
action | cancel |
key | Your API key |
action | cancel |
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
| Parameter | Description |
|---|---|
key | Your API key |
action | balance |
key | Your API key |
action | balance |
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
Access our services at the lowest wholesale prices. For example, 1000 Instagram followers at $0.50.
List the same service on your panel or website at $2.00-$5.00. You control the markup.
Connect via API so orders from your customers are automatically fulfilled through our system.
With 100 orders/day at $2 profit each, that is $6,000/month in pure profit. Top resellers do 1000+ orders daily.
Profit Calculator
These are realistic estimates based on average reseller data. Your results depend on your marketing, pricing strategy, and customer base.
Start Reselling NowWhy 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
| Endpoint | Limit |
|---|---|
| General requests | 10 req/sec |
| Order placement | 20 req/sec |
| Status checks | 20 req/sec |
| Balance inquiry | 10 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.