通过强大的 REST API 将我们的服务直接集成到您的平台。快速、可靠且易于实现。立即打造您自己的增长工具或代理面板。
我们的 API 基于 REST 原则构建。使用标准 HTTP 响应码、身份验证和动词。所有请求应发送到基础 URL,并以 JSON 格式返回响应。
https://smmto.com/api/v2
要验证请求,您必须在每个请求中将唯一的 API 密钥作为 `key` 参数包含。您可以在账户控制面板中找到 API 密钥。
POST https://smmto.com/api/v2
Content-Type: application/json
{
"key": "your-api-key-here",
"action": "services"
}
请保密您的 API 密钥。不要在公共仓库、客户端代码或文档中分享。如已泄露,请立即重新生成。
为我们平台上任何可用的社交媒体服务下新订单。
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| key | string | Yes | Your unique API key |
| action | string | Yes | "add" |
| service | integer | Yes | Service ID (from Services List) |
| link | string | Yes | Target URL (e.g. Channel link) |
| quantity | integer | Yes | Total quantity to deliver |
请求示例
{
"key": "your-api-key",
"action": "add",
"service": 1,
"link": "https://t.me/yourchannel",
"quantity": 1000
}
响应示例
{
"order": 23501,
"status": "success"
}
查看先前下单的订单状态和进度。
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | "status" |
| order | integer | Yes | The ID of the order |
{
"charge": "0.5000",
"start_count": "1200",
"status": "In Progress",
"remains": "450",
"currency": "USD"
}
效率至关重要。使用批量端点在一次 API 调用中下最多 100 个订单。
{
"key": "your-api-key",
"action": "add_bulk",
"orders": [
{ "service": 1, "link": "link_1", "quantity": 100 },
{ "service": 2, "link": "link_2", "quantity": 250 }
]
}
Cancel a pending or in-progress order by order ID.
{
"key": "your-api-key",
"action": "cancel",
"order": 23501
}
Request a refill for eligible orders that dropped below the guaranteed level.
{
"key": "your-api-key",
"action": "refill",
"order": 23501
}
Retrieve the full list of available services, rates, min/max quantities, and metadata.
{
"key": "your-api-key",
"action": "services"
}
API 使用标准 HTTP 状态码表示成功或失败。
| 代码 | 消息 | 描述 |
|---|---|---|
| 400 | Invalid request | Missing or invalid parameters |
| 401 | Invalid API key | Authentication failed |
| 404 | Service not found | Invalid service ID |
| 429 | Rate limit exceeded | Too many requests |
| 500 | Internal error | Server-side error |
API requests are limited to 100 requests per minute per API key. Exceeding this limit returns HTTP 429. Contact support for higher throughput on reseller plans.
v2.0 — Unified REST endpoint at /api/v2 with bulk orders, refill status, and improved error responses.
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
services |
响应示例
[
{
"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
}
]
响应示例
{
"order": 23501
}
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
status |
order |
Order ID |
响应示例
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
status |
orders |
Order IDs (separated by a comma, up to 100 IDs) |
响应示例
{
"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"
}
}
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
refill |
order |
Order ID |
响应示例
{
"refill": "1"
}
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
refill |
orders |
Order IDs (separated by a comma, up to 100 IDs) |
响应示例
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"refill": {
"error": "Incorrect order ID"
}
}
]
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
refill_status |
refill |
Refill ID |
响应示例
{
"status": "Completed"
}
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
refill_status |
refills |
Refill IDs (separated by a comma, up to 100 IDs) |
响应示例
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
cancel |
orders |
Order IDs (separated by a comma, up to 100 IDs) |
响应示例
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]
| 参数 | 描述 |
|---|---|
key |
Your API key |
action |
balance |
响应示例
{
"balance": "100.84292",
"currency": "USD"
}