REST API
API Documentation
Programmatically create and manage orders via REST API.
Overview
Base configuration
Base URL
https://youtubeview.app/api/v2
Format
JSON over HTTPS
Authentication
API key via POST parameter `key`
Method
POST
<?php
require 'example.txt';
$api = new Api();
$order = $api->order([
'service' => 1,
'link' => 'https://example.com/video',
'quantity' => 1000,
]);
Endpoint
Place new Order
Programmatically submit new orders across all supported service types.
Standard services that require a quantity.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| quantity | integer | Yes | Needed quantity |
| runs | integer | No | Runs to deliver (drip-feed) |
| interval | integer | No | Interval in minutes between runs |
Package-based services without quantity.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
Submit custom comments separated by line breaks.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| comments | text | Yes | Comments list separated by new lines |
Mentions pulled from username and hashtag lists.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| quantity | integer | Yes | Needed quantity |
| usernames | text | Yes | Usernames list separated by new lines |
| hashtags | text | Yes | Hashtags list separated by new lines |
Mentions pulled from a usernames list.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| usernames | text | Yes | Usernames list separated by new lines |
Scrape usernames from a hashtag.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| quantity | integer | Yes | Needed quantity |
| hashtag | string | Yes | Hashtag to scrape usernames from |
Scrape followers from the supplied username.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| quantity | integer | Yes | Needed quantity |
| username | string | Yes | URL to scrape followers from |
Send mentions to users who liked the media.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
Package-style comments submission.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| comments | text | Yes | Comments list separated by new lines |
Boost likes on a specific comment.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| link | string | Yes | Link to page |
| quantity | integer | Yes | Needed quantity |
| username | string | Yes | Username of the comment owner |
Configure subscription-based delivery.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Must be set to add |
| service | integer | Yes | Service ID |
| username | string | Yes | Username to monitor |
| min | integer | Yes | Minimum quantity per post |
| max | integer | Yes | Maximum quantity per post |
| delay | integer | Yes | Delay in minutes (0, 5, 10, 15, 30, 60, 90) |
| expiry | string | No | Expiry date (d/m/Y) |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=add" \
-d "service=1" \
-d "link=https://example.com/video" \
-d "quantity=1000"
{
"status": "success",
"order": 32
}
Endpoint
Order status
Return the most recent state, charge, and remains for a specific order.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Set to status |
| order | integer | Yes | Order ID to check |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=status" \
-d "order=392770"
{
"order": "32",
"status": "pending",
"charge": "0.0360",
"start_count": "0",
"remains": "0"
}
Endpoint
Multiple order statuses
Check up to 100 orders per call by passing comma separated IDs.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Set to status |
| orders | string | Yes | Comma separated order IDs |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=status" \
-d "orders=12,2,13"
{
"12": {
"order": "12",
"status": "processing",
"charge": "1.2600",
"start_count": "0",
"remains": "0"
},
"2": "Incorrect order ID",
"13": {
"order": "13",
"status": "pending",
"charge": "0.6300",
"start_count": "0",
"remains": "0"
}
}
Endpoint
Cancel order
Request cancellation for one or more eligible orders.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Set to cancel |
| orders | string | Yes | Comma separated order IDs |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=cancel" \
-d "orders=392775,123456"
[
{
"order": 392775,
"cancel": 4
},
{
"order": 123456,
"cancel": {
"error": "Incorrect order ID"
}
}
]
Endpoint
Refill request
Create a refill ticket for single or multiple orders.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Set to refill |
| order | integer | No | Single order ID |
| orders | string | No | Comma separated order IDs |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=refill" \
-d "orders=392770,999999"
Single order
{
"refill": "15"
}
Multiple orders
[
{
"order": 392770,
"refill": 15
},
{
"order": 999999,
"refill": {
"error": "Incorrect order ID"
}
}
]
Endpoint
Refill status
Check the status of single or grouped refill IDs.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Set to refill_status |
| refill | integer | No | Single refill ID |
| refills | string | No | Comma separated refill IDs |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=refill_status" \
-d "refills=15,99"
Single refill
{
"status": "Completed"
}
Multiple refills
[
{
"refill": 15,
"status": "Pending"
},
{
"refill": 99,
"status": {
"error": "Refill not found"
}
}
]
Endpoint
Balance
Retrieve the current balance and currency for the authenticated user.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Set to balance |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=balance"
{
"status": "success",
"balance": "0.03",
"currency": "USD"
}
Endpoint
Service list
Fetch the full catalog to map service IDs, pricing, and availability.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your API key |
| action | string | Yes | Set to services |
curl -X POST https://youtubeview.app/api/v2 \
-d "key=YOUR_API_KEY" \
-d "action=services"
[
{
"service": "5",
"name": "Instagram Followers [15K]",
"category": "Instagram - Followers",
"rate": "1.02",
"min": "500",
"max": "10000",
"type": "default",
"desc": "usernames",
"dripfeed": 1
},
{
"service": "9",
"name": "Instagram Followers - Max 300k",
"category": "Instagram - Followers",
"rate": "0.04",
"min": "500",
"max": "300000",
"type": "default",
"desc": "usernames",
"dripfeed": 1
}
]