Your Demo API Key
Keep this key secret. Do not share it in client-side code or public repositories.
Getting Started
The GCloudy API allows you to programmatically generate direct download links from Google Drive URLs. All API requests must include your email and API token. The API supports GET methods.
demo@demo.com
https://www.gcloudy.xyz
API Endpoints
All endpoints require authentication via your email and API token.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Your registered email address | |
| api_token | string | Yes | Your API authentication token |
| url | string|array | Yes | Single Google Drive URL or array of URLs |
Example GET Request
https://www.gcloudy.xyz/api/upload/link?email=demo@demo.com&api_token=tmkc_3567144ece09e914ed20208c2cd9329b&url=https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view
Example Response
{
"status": "success",
"processed": 2,
"failed": 0,
"results": [
{
"original_url": "https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view",
"short_link": "https://www.gcloudy.xyz/dl/abc123",
"download_link": "https://GCloudy.dl/abc123?dl=1",
"short_code": "abc123"
},
{
"original_url": "https://drive.google.com/file/d/1TYhfpH-mXfCt91fjtUIB9/view",
"short_link": "https://www.gcloudy.xyz/dl/def456",
"download_link": "https://www.gcloudy.xyz/dl/def456?dl=1",
"short_code": "def456"
}
],
"errors": []
}
API Usage Examples
Here are examples of how to use the GCloudy API with different programming languages.
PHP Example
Examples GET methods:
<?php
// GET request example
$email = 'demo@demo.com';
$apiToken = 'tmkc_3567144ece09e914ed20208c2cd9329b';
$url = 'https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view';
$apiUrl = 'https://www.gcloudy.xyz/api/upload/link?email=' . urlencode($email) .
'&api_token=' . urlencode($apiToken) .
'&url=' . urlencode($url);
$response = file_get_contents($apiUrl);
$data = json_decode($response, true);
print_r($data);
?>
Python Example
Examples GET methods:
import requests
import urllib.parse
email = "demo@demo.com"
api_token = "tmkc_3567144ece09e914ed20208c2cd9329b"
url = "https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view"
# URL encode parameters
params = {
"email": email,
"api_token": api_token,
"url": url
}
query_string = urllib.parse.urlencode(params)
response = requests.get(f"https://www.gcloudy.xyz/api/upload/link?{query_string}")
print(response.json())
JavaScript Example
Examples GET methods:
const email = encodeURIComponent('demo@demo.com');
const apiToken = encodeURIComponent('tmkc_3567144ece09e914ed20208c2cd9329b');
const url = encodeURIComponent('https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view');
fetch(`https://www.gcloudy.xyz/api/upload/link?email=${email}&api_token=${apiToken}&url=${url}`)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
cURL Example
Example GET request:
curl -G "https://www.gcloudy.xyz/api/upload/link" \ --data-urlencode "email=demo@demo.com" \ --data-urlencode "api_token=tmkc_3567144ece09e914ed20208c2cd9329b" \ --data-urlencode "url=https://drive.google.com/file/d/1HAcJvyoqDFY-mXfCt91fjtbAb5/view"
Error Handling
The API returns standard HTTP status codes along with JSON error messages.
| Status Code | Error Code | Description |
|---|---|---|
| 400 | invalid_request | Invalid request parameters |
| 401 | unauthorized | Invalid email or API token |
| 403 | forbidden | Insufficient permissions |
| 429 | rate_limit_exceeded | Too many requests |
| 500 | server_error | Internal server error |
Example Error Response
{
"status": "error",
"message": "Invalid email or API token"
}