ऑथेंटिकेशन
की विनंतीच्या बॉडीमध्ये key फील्डमध्ये पाठवली जाते. आम्ही फक्त तिचा SHA-256 हॅश जतन करतो, त्यामुळे डेटाबेसमधून की रिकव्हर करणे अशक्य — जर ती हरवली, तर नवीन जारी करा. की डॅशबोर्डमध्ये कधीही डिसेबल करता येते, ती लगेच काम करणे बंद करते.
एक HTTP एंडपॉइंट संपूर्ण वर्कफ्लो कव्हर करतो: कॅटलॉग वाचा, ऑर्डर दाखल करा, स्टेटस तपासा, Refill आणि रद्दीकरण विनंत्या करा. प्रोटोकॉल बहुतांश SMM पॅनेल्स वापरत असलेल्या फॉर्मॅटशी जुळतो, त्यामुळे तयार इंटिग्रेशनला फक्त URL आणि की बदलणे पुरे.
पत्ता
POST https://webkit.guru/api/v2
फक्त POST. बॉडी application/x-www-form-urlencoded किंवा application/json म्हणून पाठवता येते — दोन्ही फॉर्मॅट स्वीकारले जातात, रिस्पॉन्स नेहमी JSON.
की विनंतीच्या बॉडीमध्ये key फील्डमध्ये पाठवली जाते. आम्ही फक्त तिचा SHA-256 हॅश जतन करतो, त्यामुळे डेटाबेसमधून की रिकव्हर करणे अशक्य — जर ती हरवली, तर नवीन जारी करा. की डॅशबोर्डमध्ये कधीही डिसेबल करता येते, ती लगेच काम करणे बंद करते.
एका IP पत्त्याकडून प्रति मिनिट 60 विनंत्या. त्यावर एंडपॉइंट 429 ने उत्तर देतो आणि Retry-After हेडरसह पुढील प्रयत्नापर्यंत किती सेकंद थांबायचे ते सांगतो. स्टेटस एका कॉलप्रति एक ऑर्डरऐवजी orders द्वारे बॅचमध्ये विनंती करणे चांगले.
action=servicesThe full catalogue with prices, limits and refill flags. Prices already include your markup — these are the amounts charged to your balance.
| पॅरामीटर | प्रकार | आवश्यक | वर्णन |
|---|---|---|---|
| key | string | होय | API key from your dashboard, “API” tab |
| action | string | होय | The string “services” |
रिस्पॉन्स
[
{
"service": 21251,
"name": "Telegram Views",
"type": "Default",
"category": "Telegram",
"rate": 0.41,
"min": 10,
"max": 50000000,
"refill": true,
"cancel": true
}
]action=addCharges your balance and queues the order. If the provider rejects it, the amount is refunded automatically.
| पॅरामीटर | प्रकार | आवश्यक | वर्णन |
|---|---|---|---|
| key | string | होय | API key from your dashboard, “API” tab |
| action | string | होय | The string “add” |
| service | int | होय | Service ID from the services method |
| link | string | होय | Link to the profile or post. The format is validated per platform and metric |
| quantity | int | होय | Quantity within the service min and max |
| runs | int | नाही | Drip-feed: how many runs |
| interval | int | नाही | Drip-feed: interval between runs, in minutes |
रिस्पॉन्स
{ "order": 84213 }action=statusA single order via order, or up to a hundred at once via orders.
| पॅरामीटर | प्रकार | आवश्यक | वर्णन |
|---|---|---|---|
| key | string | होय | API key from your dashboard, “API” tab |
| action | string | होय | The string “status” |
| order | int | नाही | ऑर्डर ID |
| orders | int[] | नाही | Comma-separated IDs, up to 100 |
रिस्पॉन्स
{
"charge": "410.00",
"start_count": "15420",
"status": "in_progress",
"remains": "3180",
"currency": "RUB"
}बॅच रिस्पॉन्स
{
"84213": { "charge": "410.00", "status": "completed", "remains": "0", "start_count": "15420", "currency": "RUB" },
"84214": { "charge": "120.00", "status": "in_progress", "remains": "890", "start_count": "2310", "currency": "RUB" },
"84215": { "error": "Incorrect order ID" }
}action=refillAvailable for services flagged refill. Returns a refill ID to check the status with.
| पॅरामीटर | प्रकार | आवश्यक | वर्णन |
|---|---|---|---|
| key | string | होय | API key from your dashboard, “API” tab |
| action | string | होय | The string “refill” |
| order | int | नाही | ऑर्डर ID |
| orders | int[] | नाही | Comma-separated IDs, up to 100 |
रिस्पॉन्स
{ "refill": 1932 }बॅच रिस्पॉन्स
[
{ "order": 84213, "refill": 1932 },
{ "order": 84214, "error": "Order is not sent to provider yet" }
]action=refill_statusThe ID is ours, not the provider's — you never need to know which supplier fulfils the order.
| पॅरामीटर | प्रकार | आवश्यक | वर्णन |
|---|---|---|---|
| key | string | होय | API key from your dashboard, “API” tab |
| action | string | होय | The string “refill_status” |
| refill | int | नाही | Refill ID |
| refills | int[] | नाही | Comma-separated IDs, up to 100 |
रिस्पॉन्स
{ "status": "Completed" }बॅच रिस्पॉन्स
[
{ "refill": 1932, "status": "Completed" },
{ "refill": 1933, "status": "Pending" }
]action=cancelThe provider may refuse a cancellation, so the order moves to cancel_requested. The actual cancellation and refund are confirmed by status sync.
| पॅरामीटर | प्रकार | आवश्यक | वर्णन |
|---|---|---|---|
| key | string | होय | API key from your dashboard, “API” tab |
| action | string | होय | The string “cancel” |
| order | int | नाही | ऑर्डर ID |
| orders | int[] | नाही | Comma-separated IDs, up to 100 |
रिस्पॉन्स
{ "cancel": 1 }बॅच रिस्पॉन्स
[
{ "order": 84213, "cancel": 1 },
{ "order": 84214, "error": "Incorrect order ID" }
]action=balanceCurrent account balance, in rubles.
| पॅरामीटर | प्रकार | आवश्यक | वर्णन |
|---|---|---|---|
| key | string | होय | API key from your dashboard, “API” tab |
| action | string | होय | The string “balance” |
रिस्पॉन्स
{ "balance": "12480.50", "currency": "RUB" }cURL
curl -X POST https://webkit.guru/api/v2 \
-d key=YOUR_KEY \
-d action=add \
-d service=21251 \
-d link=https://t.me/example/42 \
-d quantity=1000PHP
<?php
$response = file_get_contents('https://webkit.guru/api/v2', false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => 'Content-Type: application/x-www-form-urlencoded',
'content' => http_build_query([
'key' => 'YOUR_KEY',
'action' => 'add',
'service' => 21251,
'link' => 'https://t.me/example/42',
'quantity' => 1000,
]),
],
]));
$order = json_decode($response, true);Python
import requests
response = requests.post("https://webkit.guru/api/v2", data={
"key": "YOUR_KEY",
"action": "add",
"service": 21251,
"link": "https://t.me/example/42",
"quantity": 1000,
})
order = response.json()JavaScript
const response = await fetch("https://webkit.guru/api/v2", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
key: "YOUR_KEY",
action: "add",
service: 21251,
link: "https://t.me/example/42",
quantity: 1000,
}),
});
const order = await response.json();status मेथडचे status फील्ड यापैकी एक मूल्य रिटर्न करते.
बिझनेस एरर्स HTTP 200 आणि error फील्डसह येतात. फक्त ऑथेंटिकेशन आणि रेट लिमिट HTTP स्टेटस कोड वापरतात.
अकाउंट तयार करा, बॅलन्स टॉप अप करा आणि API टॅबवर की जारी करा. वेगळी मंजुरी आवश्यक नाही.
अकाउंट तयार करा