API Documentation

API v2 reference — including optional service statistics, refill requests, refill status, and cancellation requests.

API Connection Details
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.

ParameterDescription
keyYour API key (required)
actionservices (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
FieldTypeDescription
statistics.availableBooleanWhether the cached statistics record is marked available. Individual statistics can still be null.
statistics.performanceInteger or nullYTbot's global service performance score, not a reseller-specific rating.
statistics.advanced_drop_trackingBooleanWhether 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.uptimeNumber or nullUptime percentage. null indicates unavailable or insufficient data.
statistics.day, .week, .monthObjectStatistics from the corresponding reporting period; each contains the fields below.
completed_ordersInteger, string or nullNumber of completed orders; privacy/sample-size thresholds can produce "Less Than 5" or "More Than 100".
estimated_startInteger or nullEstimated time until order start, in seconds. null when there is no usable estimate.
speed_rangesArray or nullEach entry contains quantity_min, quantity_max, and speed_per_day. null when no valid bands exist.
eta_percentNumber or nullCalculated on-time / ETA performance percentage for the reporting period, or null if unavailable.
drop_rateNumber or nullDrop 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 status

Parameters Description
key Your API key
action status
order Order ID

Example response

Multiple orders status

Parameters Description
key Your API key
action status
orders Order IDs separated by comma

Example response

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.

ParameterDescription
keyYour API key
actionrefill
orderSingle original order ID
ordersAlternative: 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"}
]

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.

ParameterDescription
keyYour API key
actionrefill_status
refillSingle refill request ID
refillsAlternative: 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.

ParameterDescription
keyYour API key
actioncancel
orderSingle original order ID
ordersAlternative: 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."}}
]

User balance

Parameters Description
key Your API key
action balance

Example response