Integrate Pataviews SMM services directly into your platform. Build reseller panels, automate orders, and manage your account programmatically.
https://pataviews.co.ke/functions/resellerApiBase URL
api_key in the JSON body. All endpoints use POST method with Content-Type: application/json.Endpoints
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | "services" |
| api_key | string | Yes | Your API key |
Code Example
const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ action: 'services', api_key: 'YOUR_API_KEY' })
});
const data = await res.json();
console.log(data.services);Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | "balance" |
| api_key | string | Yes | Your API key |
Code Example
const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ action: 'balance', api_key: 'YOUR_API_KEY' })
});
const { balance, currency } = await res.json();Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | "order" |
| api_key | string | Yes | Your API key |
| service | string | Yes | Service ID from List Services |
| link | string | Yes | Target URL or username |
| quantity | number | Yes | Number of units to order |
Code Example
const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
action: 'order',
api_key: 'YOUR_API_KEY',
service: 'SERVICE_ID',
link: 'https://tiktok.com/@yourprofile',
quantity: 1000
})
});
const data = await res.json();
console.log('Order ID:', data.order);Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | "status" |
| api_key | string | Yes | Your API key |
| order | string | Yes | Order ID returned from Place Order |
Code Example
const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ action: 'status', api_key: 'YOUR_API_KEY', order: 'ORDER_ID' })
});
const data = await res.json();
console.log(data.status);Rate Limits
You can regenerate your API key up to 3 times every 24 hours. Exceeding this locks key changes for 30 minutes. API requests have no hard limit but abuse may result in account suspension.
Response Format
// Success
{ "status": "success", "order": "12345", ... }
// Error
{ "error": "Invalid API key" }