API Documentation
API v2 reference — including optional service statistics, refill requests, refill status, and cancellation requests.
| HTTP Method | POST |
|---|---|
| API URL | https://www.ytbot.com/api/v2 |
| API Key | Get an API key on the Account page |
| Response format | JSON |
| Download Examples | Example of PHP Code |
Service List
Retrieve available services with your account's pricing. By default the response uses the standard service-list format. You can optionally include detailed service performance statistics.
| Parameter | Description |
|---|---|
key | Your API key (required) |
action | services (required) |
include_stats (optional) | Set to 1 to include the statistics object for each service. Omit or set to 0 for the standard response. |
Standard request (POST)
key=YOUR_API_KEY&action=services
Example standard response
[
{
"service": "280",
"name": "YouTube Views",
"type": "Default",
"category": "YouTube Views",
"dripfeed": true,
"description": "Service description",
"refill": false,
"cancel": true,
"rate": "1.20",
"min": "50",
"max": "10000"
}
]
Illustrative values. rate is the reseller price per 1,000 units (except service types priced differently). refill and cancel describe button availability; individual requests may still be ineligible.
Optional Service Statistics
Enable this feature with include_stats=1. It adds one statistics object inside each service record; it does not create a separate response format or endpoint.
Request (POST)
key=YOUR_API_KEY&action=services&include_stats=1
Example statistics-enabled response
[
{
"service": "280",
"name": "YouTube Views",
"type": "Default",
"category": "YouTube Views",
"dripfeed": true,
"description": "Service description",
"refill": false,
"cancel": true,
"rate": "1.20",
"min": "50",
"max": "10000",
"statistics": {
"available": true,
"performance": 3,
"advanced_drop_tracking": true,
"uptime": 100,
"day": {
"completed_orders": "Less Than 5",
"estimated_start": 14312,
"speed_ranges": [
{"quantity_min": 0, "quantity_max": 40, "speed_per_day": 711}
],
"eta_percent": null,
"drop_rate": null
},
"week": {
"completed_orders": 16,
"estimated_start": 24818,
"speed_ranges": [
{"quantity_min": 0, "quantity_max": 40, "speed_per_day": 456},
{"quantity_min": 40, "quantity_max": 2000, "speed_per_day": 1901}
],
"eta_percent": 84,
"drop_rate": 0
},
"month": {
"completed_orders": "More Than 100",
"estimated_start": 18191,
"speed_ranges": [
{"quantity_min": 0, "quantity_max": 80, "speed_per_day": 305}
],
"eta_percent": 79,
"drop_rate": 1
}
}
}
]
Illustrative response: values change as new service statistics are calculated; advanced_drop_tracking also depends on current tracking configuration. All percentages are numeric values without the percent symbol.
Statistics Fields
| Field | Type | Description |
|---|---|---|
statistics.available | Boolean | Whether the cached statistics record is marked available. Individual statistics can still be null. |
statistics.performance | Integer or null | YTbot's global service performance score, not a reseller-specific rating. |
statistics.advanced_drop_tracking | Boolean | Whether advanced automatic drop detection is enabled for the service's tracking type. It is independent of refill eligibility and is not a guarantee against drops. |
statistics.uptime | Number or null | Uptime percentage. null indicates unavailable or insufficient data. |
statistics.day, .week, .month | Object | Statistics from the corresponding reporting period; each contains the fields below. |
completed_orders | Integer, string or null | Number of completed orders; privacy/sample-size thresholds can produce "Less Than 5" or "More Than 100". |
estimated_start | Integer or null | Estimated time until order start, in seconds. null when there is no usable estimate. |
speed_ranges | Array or null | Each entry contains quantity_min, quantity_max, and speed_per_day. null when no valid bands exist. |
eta_percent | Number or null | Calculated on-time / ETA performance percentage for the reporting period, or null if unavailable. |
drop_rate | Number or null | Drop percentage,0 means a reported 0% drop rate; null means unavailable / insufficient data. |
Add Order
| Parameters | Description |
|---|---|
| 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 |
Example response
{
"order": 23501
}
Order status
| Parameters | Description |
|---|---|
| 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 | Description |
|---|---|
| key | Your API key |
| action | status |
| orders | Order IDs separated by comma |
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"
}
}
Request Refill
Submit a refill request for an eligible completed order. If accepted, the API returns a refill request ID, not confirmation that the refill has already finished.
| Parameter | Description |
|---|---|
key | Your API key |
action | refill |
order | Single original order ID |
orders | Alternative: comma-separated original order IDs, up to 100 per request. Do not send with order. |
Single request
key=YOUR_API_KEY&action=refill&order=12345
Example accepted response
{"order":"12345","refill":987}
Bulk request
key=YOUR_API_KEY&action=refill&orders=12345,12346
Example bulk response
[
{"order":"12345","refill":987},
{"order":"12346","error":"The order is not completed"}
]
refill ID is the request ID, not the original order ID.Example error formats (the API may return a top-level error or a nested refill error depending on the rejection reason):
{"error":"Incorrect order ID"}
{"order":"12345","refill":{"error":"Refill days are over"}}
Refill Status
Check the status of a refill request, using the refill request ID returned by action=refill.
| Parameter | Description |
|---|---|
key | Your API key |
action | refill_status |
refill | Single refill request ID |
refills | Alternative: comma-separated refill request IDs, up to 100 per request. Do not send with refill. |
Single request
key=YOUR_API_KEY&action=refill_status&refill=987
Example response
{"refill":"987","status":"Awaiting"}
Bulk request
key=YOUR_API_KEY&action=refill_status&refills=987,988
Example bulk response
[
{"refill":"987","status":"Awaiting"},
{"refill":"988","error":"Refill not found"}
]
Single invalid refill example:
{"error":"Refill not found"}
The status value reflects the current stored refill request status, and may change as processing progresses.
Request Cancellation
Request cancellation of an eligible order. A successful API response returns a cancellation request ID; it does not always mean the order has already been cancelled or refunded.
| Parameter | Description |
|---|---|
key | Your API key |
action | cancel |
order | Single original order ID |
orders | Alternative: comma-separated original order IDs, up to 100 per request. Do not send with order. |
Single request
key=YOUR_API_KEY&action=cancel&order=12345
Example accepted response
{"order":"12345","cancel":654}
Bulk request
key=YOUR_API_KEY&action=cancel&orders=12345,12346
Example bulk response
[
{"order":"12345","cancel":654},
{"order":"12346","cancel":{"error":"Cancel unavailable. Try again later."}}
]
cancel is the cancellation request ID, not the original order ID.User balance
| Parameters | Description |
|---|---|
| key | Your API key |
| action | balance |
Example response
{
"balance": "100.84292",
"currency": "USD"
}