Getting started
Quickstart
From an API key to a running order in about three minutes, using the standard provider API your panel already speaks.
You’ll use the provider API v2 — the one your panel speaks — so everything here carries straight over to your panel. All you need is a terminal and an account with some balance.
Create an API key
In the dashboard, open API keys and choose Create key. Name it after where it will live (“Main panel”), keep all four scopes, and copy the key. It starts with tk_live_ and is shown once — we only keep a hash.
The examples below use tk_live_your_key_here. Replace it with your key.
Check your balance
A cheap call that proves the key works.
curl https://ultrasmm.io/api/v2 \
-d key=tk_live_your_key_here \
-d action=balance<?php
$ch = curl_init('https://ultrasmm.io/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'tk_live_your_key_here',
'action' => 'balance',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
// Failures answer HTTP 200 with an "error" key.
if (isset($response['error'])) {
throw new RuntimeException($response['error']);
}
print_r($response);import requests
response = requests.post(
"https://ultrasmm.io/api/v2",
data={
"key": "tk_live_your_key_here",
"action": "balance",
},
timeout=30,
).json()
# Failures answer HTTP 200 with an "error" key.
if isinstance(response, dict) and "error" in response:
raise RuntimeError(response["error"])
print(response)const response = await fetch("https://ultrasmm.io/api/v2", {
method: "POST",
body: new URLSearchParams({
key: "tk_live_your_key_here",
action: "balance",
}),
}).then((res) => res.json())
// Failures answer HTTP 200 with an "error" key.
if (response.error) throw new Error(response.error)
console.log(response){
"balance": "442.51035",
"currency": "USD"
}Got {"error": "Invalid API key"} instead? The key was mistyped or revoked. v2 answers failures with HTTP 200 (only rate limiting uses 429) and puts the reason in an error key, so check for it on every response.
Pick a service
The service list includes your rate per 1,000 with your tier discount already applied, the limits, and whether refill, cancel and drip-feed are available.
curl https://ultrasmm.io/api/v2 \
-d key=tk_live_your_key_here \
-d action=services<?php
$ch = curl_init('https://ultrasmm.io/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'tk_live_your_key_here',
'action' => 'services',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
// Failures answer HTTP 200 with an "error" key.
if (isset($response['error'])) {
throw new RuntimeException($response['error']);
}
print_r($response);import requests
response = requests.post(
"https://ultrasmm.io/api/v2",
data={
"key": "tk_live_your_key_here",
"action": "services",
},
timeout=30,
).json()
# Failures answer HTTP 200 with an "error" key.
if isinstance(response, dict) and "error" in response:
raise RuntimeError(response["error"])
print(response)const response = await fetch("https://ultrasmm.io/api/v2", {
method: "POST",
body: new URLSearchParams({
key: "tk_live_your_key_here",
action: "services",
}),
}).then((res) => res.json())
// Failures answer HTTP 200 with an "error" key.
if (response.error) throw new Error(response.error)
console.log(response)[
{
"service": 101,
"name": "Followers — Standard",
"type": "Default",
"category": "TikTok Followers",
"rate": "1.0120",
"min": "100",
"max": "50000",
"dripfeed": true,
"refill": false,
"cancel": true,
"refill_days": 0,
"start_time": "0–1 h",
"speed_per_day": 15000,
"drop_estimate": "10–25%",
"description": "Lowest price. Mixed-quality global accounts with no refill."
},
{
"service": 102,
"name": "Followers — Premium, 30-day refill",
"type": "Default",
"category": "TikTok Followers",
"rate": "2.2080",
"min": "50",
"max": "100000",
"dripfeed": true,
"refill": true,
"cancel": true,
"refill_days": 30,
"start_time": "0–30 min",
"speed_per_day": 25000,
"drop_estimate": "3–8%",
"description": "Our best seller. Profiles with avatars and posts, low drop, 30-day refill."
}
]We’ll use service 201, Likes — Instant: it needs a video link, starts within minutes and has a minimum of 50.
Place an order
Send the service, a TikTok video link and a quantity. Your balance is charged rate × quantity ÷ 1,000 immediately and you get the order ID back.
curl https://ultrasmm.io/api/v2 \
-d key=tk_live_your_key_here \
-d action=add \
-d service=201 \
--data-urlencode link=https://www.tiktok.com/@mila.makes/video/7431187220394482945 \
-d quantity=500<?php
$ch = curl_init('https://ultrasmm.io/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'tk_live_your_key_here',
'action' => 'add',
'service' => '201',
'link' => 'https://www.tiktok.com/@mila.makes/video/7431187220394482945',
'quantity' => '500',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
// Failures answer HTTP 200 with an "error" key.
if (isset($response['error'])) {
throw new RuntimeException($response['error']);
}
print_r($response);import requests
response = requests.post(
"https://ultrasmm.io/api/v2",
data={
"key": "tk_live_your_key_here",
"action": "add",
"service": "201",
"link": "https://www.tiktok.com/@mila.makes/video/7431187220394482945",
"quantity": "500",
},
timeout=30,
).json()
# Failures answer HTTP 200 with an "error" key.
if isinstance(response, dict) and "error" in response:
raise RuntimeError(response["error"])
print(response)const response = await fetch("https://ultrasmm.io/api/v2", {
method: "POST",
body: new URLSearchParams({
key: "tk_live_your_key_here",
action: "add",
service: "201",
link: "https://www.tiktok.com/@mila.makes/video/7431187220394482945",
quantity: "500",
}),
}).then((res) => res.json())
// Failures answer HTTP 200 with an "error" key.
if (response.error) throw new Error(response.error)
console.log(response){
"order": 184609
}Don’t blindly retry add
If the connection drops after you send add, the order may have been placed. Check with status before sending it again. A second order on the same link is refused while the first is running, which protects you here — but v3’s Idempotency-Key is the clean fix.
Follow the order
Ask for its status as often as you like — every read brings the order up to date first. Batch up to 100 IDs with orders=… when you follow many.
curl https://ultrasmm.io/api/v2 \
-d key=tk_live_your_key_here \
-d action=status \
-d order=184609<?php
$ch = curl_init('https://ultrasmm.io/api/v2');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query([
'key' => 'tk_live_your_key_here',
'action' => 'status',
'order' => '184609',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
// Failures answer HTTP 200 with an "error" key.
if (isset($response['error'])) {
throw new RuntimeException($response['error']);
}
print_r($response);import requests
response = requests.post(
"https://ultrasmm.io/api/v2",
data={
"key": "tk_live_your_key_here",
"action": "status",
"order": "184609",
},
timeout=30,
).json()
# Failures answer HTTP 200 with an "error" key.
if isinstance(response, dict) and "error" in response:
raise RuntimeError(response["error"])
print(response)const response = await fetch("https://ultrasmm.io/api/v2", {
method: "POST",
body: new URLSearchParams({
key: "tk_live_your_key_here",
action: "status",
order: "184609",
}),
}).then((res) => res.json())
// Failures answer HTTP 200 with an "error" key.
if (response.error) throw new Error(response.error)
console.log(response){
"charge": "0.08280",
"start_count": "35643",
"status": "In progress",
"remains": "212",
"currency": "USD"
}start_countis the like count we read before delivering. Your customer’s count should reach start count + quantity.remainscounts down as we deliver.chargeis what you paid net of refunds. If the order ends Partial, it drops by the refund for what wasn’t delivered.
The status goes Pending → Processing → In progress → Completed as delivery runs. See Order lifecycle for exact transition and refund rules.
Next steps
Something unclear or out of date? Write to [email protected] and quote the page.