API linkchecker for developers

You need to make a POST-request on https://hitfile.net/linkchecker/csv to check links you want.

The URL's of files you check must be urlencoded and sent to the variable $links_to_check. If you send a few URLs it must be separated by a newline (' ').

Our script turns back the result as csv (Comma Separated Values). The first parameter will be the URL of the checking file, second parametr is the status of it: 1 - if this file exists or 0 - if it wasn't found on turbobit.net servers.

Request examples:

  • If you want to check one file status
    <?php
    // The URL you want to check
    $links_to_check = "http://hitfile.net/QVbF";
    
    // POST-request on
    $url = "http://hitfile.net/linkchecker/csv";
    
    // cURL Initialization
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url); // Set URL
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // Function will return the content of that cURL handle in the form of a string
    curl_setopt($ch, CURLOPT_TIMEOUT, 3); // Time out
    curl_setopt($ch, CURLOPT_POST, 1); // POST-method
    curl_setopt($ch, CURLOPT_POSTFIELDS, "links_to_check=".urlencode($links_to_check)); // Adding new field with the file URL
    $result = curl_exec($ch); // Making request
    curl_close($ch);
    
    // Processing the result
    echo $result; // For example - displaying
    ?>
    
  • If you want to check few files status
    <?php
    // The URL you want to check - up to 50 URLs
    $links = array(
    	'http://hitfile.net/QVbF',
    	'http://hitfile.net/1dSL',
    	'http://hitfile.net/B8eq'
    );
    $links_to_check = implode("\n", $links);
    
    // POST-request on
    $url = "http://hitfile.net/linkchecker/csv";
    
    // cURL Initialization
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url); // Set URL
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // Function will return the content of that cURL handle in the form of a string
    curl_setopt($ch, CURLOPT_TIMEOUT, 3); // Time out
    curl_setopt($ch, CURLOPT_POST, 1); // POST-method
    curl_setopt($ch, CURLOPT_POSTFIELDS, "links_to_check=".urlencode($links_to_check)); // Adding new field with the file URL
    $result = curl_exec($ch); // Making request
    curl_close($ch);
    
    // Processing the result
    echo $result; // For example - displaying
    ?>