NAV
cURL python javascript php

GDToT api

You must Replace {Domain} with latest Domain of GDToT.

File

Add File

        
      const myHeaders = new Headers();
      


      const formData  = new FormData();
      formData.append("email", "[email protected]");
      formData.append("api_token", "kVTKqsfQlU39uQnqh2Zb4LQwneUNU");
      formData.append("url", "https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view?usp=drive_link,https://drive.google.com/file/d/1TYhfpH-mXfCt91fjtUIB9/view?usp=drive_link");
    

var requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: formData,
  redirect: "follow",
};

fetch("https://new.gdtot.com/api/upload/link", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
<?php

// Set up your request data
$data = array(
    "email" => "[email protected]",
    "api_token" => "kVTKqsfQlU39uQnqh2Zb4LQwneUNU-a",
    "url" => https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view?usp=drive_link,https://drive.google.com/file/d/1TYhfpH-mXfCt91fjtUIB9/view?usp=drive_link,https://drive.google.com/file/d/1TYhfpH-mXfCt91fjtUIB9/view?usp=drive_link

);

// Convert the data array to JSON
$jsonData = json_encode($data);

// Initialize cURL session
$ch = curl_init();

// Set cURL options
curl_setopt($ch, CURLOPT_URL, "{Domain}/api/upload/link"); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Content-Length: ' . strlen($jsonData)
));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// Execute cURL session and fetch the response
$response = curl_exec($ch);

// Check if there was any error
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
} else {
    echo $response;
}

// Close cURL session
curl_close($ch);

?>

curl --location --request POST 'https://new.gdtot.com/api/upload/link' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode '[email protected]' \
--data-urlencode 'api_token=kVTKqsfQlU39uQnqh2Zb4LQwneUNU' \
--data-urlencode 'url=https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view?usp=drive_link,https://drive.google.com/file/d/1TYhfpH-mXfCt91fjtUIB9/view?usp=drive_link' \

      
import requests
import json

url = "{Domain}/api/upload/link"

payload = {
  "api_token": "kVTKqsfQlU39uQnqh2Zb4LQwneUNU+sVWg=",
  "email": "[email protected]",
  "url": "https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view?usp=drive_link,https://drive.google.com/file/d/1TYhfpH-mXfCt91fjtUIB9/view?usp=drive_link"
}
headers = {
  
}

response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)

Make sure to replace YOUR_PERSONAL_API_KEY with your API key.

The above command returns JSON structured like this:

{
      "status": true,
      "code": 200,
      "message": "upload successful",
      "data": [
         {
            "name": "File1.mkv",
            "url": "https://new.gdtot.com/file/12345",
            "size": "700.83 MB",
            "id": "12345",
            "mimeType": "video/x-matroska",
            "message": success,
          },
          {
            "name": "File2.mkv",
            "url": "https://new.gdtot.com/file/123456",
            "size": "800.45 MB",
            "id": "123456",
            "mimeType": "video/x-matroska",
            "message": success,
          }
        ]
      }
    

[POST] {Domain}/api/upload/link

You must replace {Domain} to Latest Working Domain.

Like - https://new.gdtot.com/api/upload/link

You can put multiple links separated by commas.

From Data

Key Required Description
api_token Yes Your Personal API Key
email Yes Valid mail ID
url Yes Google Drive File url

Add Folder

[POST] {Domain}/api/upload/folder

You must replace {Domain} to Latest Working Domain.

Like - https://new.gdtot.com/api/upload/folder

From Data

Key Required Description
api_token Yes Your Personal API Key
email Yes Valid mail ID
url Yes Google Drive Folder url
          
        const myHeaders = new Headers();
        
  
  
        const formData  = new FormData();
        formData.append("email", "[email protected]");
        formData.append("api_token", "kVTKqsfQlU39uQnqh2Zb4LQwneUNU");
        formData.append("url", "https://drive.google.com/drive/u/2/folders/1Se5uvyoqDFY-mXfCt91ddfsfjtbAb5");
      
  
  var requestOptions = {
    method: "POST",
    headers: myHeaders,
    body: formData,
    redirect: "follow",
  };
  
  fetch("https://new.gdtot.com/api/upload/folder", requestOptions)
    .then((response) => response.text())
    .then((result) => console.log(result))
    .catch((error) => console.log("error", error));
     
curl --location --request POST 'https://new.gdtot.com/api/upload/folder' \
          --header 'Content-Type: application/x-www-form-urlencoded' \
          --data-urlencode '[email protected]' \
          --data-urlencode 'api_token=kVTKqsfQlU39uQnqh2Zb4LQwneUNU' \
          --data-urlencode 'url=https://drive.google.com/drive/u/2/folders/1Se5uvyoqDFY-mXfCt91ddfsfjtbAb5' \
          
                
import requests
          import json
          
          url = "{Domain}/api/upload/folder"
          
          payload = {
            "api_token": "kVTKqsfQlU39uQnqh2Zb4LQwneUNU+sVWg=",
            "email": "[email protected]",
            "url": "https://drive.google.com/drive/u/2/folders/1Se5uvyoqDFY-mXfCt91ddfsfjtbAb5"
          }
          headers = {
            
          }
          
          response = requests.request("POST", url, headers=headers, data=payload)
          print(response.text)
          
          
<?php

          // Set up your request data
          $data = array(
              "email" => "[email protected]",
              "api_token" => "kVTKqsfQlU39uQnqh2Zb4LQwneUNU-a",
              "url" => https://drive.google.com/drive/u/2/folders/1Se5uvyoqDFY-mXfCt91ddfsfjtbAb5,
          
          );
          
          // Convert the data array to JSON
          $jsonData = json_encode($data);
          
          // Initialize cURL session
          $ch = curl_init();
          
          // Set cURL options
          curl_setopt($ch, CURLOPT_URL, "{Domain}/api/upload/folder"); 
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
          curl_setopt($ch, CURLOPT_POST, true);
          curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
          curl_setopt($ch, CURLOPT_HTTPHEADER, array(
              'Content-Type: application/json',
              'Content-Length: ' . strlen($jsonData)
          ));
          curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
          
          // Execute cURL session and fetch the response
          $response = curl_exec($ch);
          
          // Check if there was any error
          if (curl_errno($ch)) {
              echo 'Error:' . curl_error($ch);
          } else {
              echo $response;
          }
          
          // Close cURL session
          curl_close($ch);
          
          ?>
          
          

Make sure to replace YOUR_PERSONAL_API_TOKEN with your API Token.

The above command returns JSON structured like this:

{
      "status": true,
      "code": 200,
      "message": "upload successful",
      "data": [
         {
            "name": "File1.mkv",
            "url": "https://new.gdtot.com/file/12345",
            "size": "700.83 MB",
            "id": "12345",
            "mimeType": "video/x-matroska",
            "message": success,
          },
          {
            "name": "File2.mkv",
            "url": "https://new.gdtot.com/file/123456",
            "size": "800.45 MB",
            "id": "123456",
            "mimeType": "video/x-matroska",
            "message": success,
          }
        ]
      }