API

Authentication Required
HTTP Method POST
API Url http://www.youtubefaster.com/api.php
Response JSON

Method order

Parameters Description
key Your API key
action Method name
link Link to page
type Type of service:
1 — Youtube World Wide Views Per Day Speed 50K-100K( Min Order 50K ) [PER K 0,70$]
2 — Youtube World Wide Views Per Day Speed 500K-1M ( Min Order 400K ) [PER K 1,20$]
3 — Youtube World Wide Views Per Day Speed 150K-350K ( Min Order 150K ) [PER K 0,80$]
4 — Youtube Geo Targeted Views Per Day Speed 20K-200K ( Min Order 20K ) [PER K 1,40$]
GeoCountry "US" - USA
"IN" - INDIA
"TR" - TURKEY
"CA" - Canada
"FR" - France
"DE" - Germany
"IT" - Italy
"NL" - Netherlands
"PR" - Portugal
"RU" - Russia
"SA" - Saudi Arabia
"ES" - Spain
"GB" - United Kingdom (UK)
"UK" - Ukrain
"AR" - United Arab Emires
"BR" - Brazil
"SR" - Serbia
"HR" - Croatia
"MK" - Macedonia
"SV" - Slovenia
"MN" - Montenegro
"BI" - Bosnia and Herzegovina
"BG" - Bulgaria
"VN" - Vietnam
"AU" - Austria
"AUS" - Australia
"KO" - Korea
"HK" - Hong Kong
"JP" - JAPAN
"PL" - Poland
"not" - not targeted
quantity Needed quantity
Response Value
Id Order id
Link Order Link
Start Start Count
Current Current Count
Amount Service Quantity
Price Service Price
OrderStatus Order Status
Status Service Status
ordercatagory Order Catagory
ErrorMessage Error Description
error bad_type — incorrect service type
bad_link — incorrect link
not_enough_funds — not enough funds on balance
bad_quantity — quantity less than minimal
bad_auth — incorrect API key
already_in_progress — current link already in progress
processing_limit — You have a lot of orders,After the processing order fnish Please Try again.
bad_request — Bad request.

YTFASTER API CLASS ytfaster.php

 class ytfaster
   {
      public $api_url = 'http://www.youtubefaster.com/api.php'; // API URL

      public $api_key = ''; // Your API key

      public function order($link, $type, $quantity,$GeoCountry = NULL) { // Add order
        return json_decode($this->connect(array(
          'key' => $this->api_key,
          'action' => 'order',
          'link' => $link,
          'type' => $type,
          'quantity' => $quantity,
		  'GeoCountry' => $GeoCountry,
        )));
      }

      public function status($order_id) { // Get status, remains
        return json_decode($this->connect(array(
          'key' => $this->api_key,
          'action' => 'status',
          'id' => $order_id
        )));
      }


      private function connect($post) {
        $_post = Array();
        if (is_array($post)) {
          foreach ($post as $name => $value) {
            $_post[] = $name.'='.urlencode($value);
          }
        }
        $ch = curl_init($this->api_url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        if (is_array($post)) {
          curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
        }
        curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
        $result = curl_exec($ch);
        if (curl_errno($ch) != 0 && empty($result)) {
          $result = false;
        }
        curl_close($ch);
        return $result;
      }
   }
   

Sample Use Class



  // $api = new ytfaster();
  
  //Normal Use
   // $order = $api->order('http://www.youtube.com/watch?v=K4fUvYzpnsg', '1', '1000'');
   
	//GEO Target type Use
  // $order = $api->order('http://www.youtube.com/watch?v=K4fUvYzpnsg', '4', '1000','US'); 
  
  // $link, $type - service type, $quantity:,Geo Targeted Country Only Use Your Select Options Type "4"= "Youtube Geo Targeted Views Per Day Speed 20K-200K ( Min Order 20K ) [PER K 1,40$]" veriable "US","IN","TR","not" ,  - (return order id or Error)
 
 
//print_r($order);    
  
//OR 
  
//echo $order->{'Id'}."
"; //echo $order->{'Link'}."
"; //echo $order->{'Start'}."
"; //echo $order->{'Current'}."
"; //echo $order->{'Amount'}."
"; //echo $order->{'Price'}."
"; //echo $order->{'OrderStatus'}."
"; //echo $order->{'Status'}."
"; //echo $order->{'ordercatagory'}."
"; //echo $order->{'GeoCountry'}."
"; //echo $order->{'ErrorMessage'}."
"; // $status = $api->status($orderid); // $order_id: return Order status, return Remains or Error

Response examples

{
    "Id" : "1234"
    "Link" : "http://youtu.be/K4fUvYzpnsg"
    "Start" : "72564"
    "Current" : "72564"
    "Amount" : "1000"
    "Price" : "0.90"
    "OrderStatus" : "inprogress"
    "Status" : "succes"
    "ordercatagory" : "youtubeview"
    "ErrorMessage" : 
}
{
  "error":"bad_quantity"
}

Response is a JSON encoded object.

Method status

Parameters Description
key Your API key
action Method name
id Order id
Response Value
OrderStatus onhold
inprogress
complete
refunded
error
Id Order id
Link Order Link
Start Start Count
Current Current Count
Amount Service Quantity
Price Service Price
Status Service Status
ordercatagory "youtubeview_hr" — Youtube World Wide Views Per Day Speed 50K-100K( Min Order 50K ) [PER K 0,70$]
"youtubeview_hr_md" — Youtube World Wide Views Per Day Speed 500K-1M ( Min Order 400K ) [PER K 1,20$]
"youtubeview" — Youtube World Wide Views Per Day Speed 150K-350K ( Min Order 150K ) [PER K 0,80$]
"youtubeview_geo" — Youtube Geo Targeted Views Per Day Speed 20K-200K ( Min Order 20K ) [PER K 1,40$]

GeoCountry "US" - USA
"IN" - INDIA
"TR" - TURKEY
"CA" - Canada
"FR" - France
"DE" - Germany
"IT" - Italy
"NL" - Netherlands
"PR" - Portugal
"RU" - Russia
"SA" - Saudi Arabia
"ES" - Spain
"GB" - United Kingdom (UK)
"UK" - Ukrain
"AR" - United Arab Emires
"BR" - Brazil
"SR" - Serbia
"HR" - Croatia
"MK" - Macedonia
"SV" - Slovenia
"MN" - Montenegro
"BI" - Bosnia and Herzegovina
"BG" - Bulgaria
"VN" - Vietnam
"AU" - Austria
"AUS" - Australia
"KO" - Korea
"HK" - Hong Kong
"JP" - JAPAN
"PL" - Poland
"not" - not targeted
ErrorMessage Error Description
error bad_id — incorrect order id

Response examples

{
   "Id" : "1234"
    "Link" : "http://youtu.be/K4fUvYzpnsg"
    "Start" : "72564"
    "Current" : "72564"
    "Amount" : "1000"
    "Price" : "0.90"
    "OrderStatus" : "inprogress"
    "Status" : "succes"
    "ordercatagory" : "youtubeview"
    "ErrorMessage" : 
}
{
   "error":"bad_id"
}

Response is a JSON encoded object.

Example PHP code