API Reference
Complete reference for PDLink file distribution and streaming link generation endpoints.
https://api.pdlink.siteVersion 1
STABLEGenerate File
/api/v1/fileFetch file metadata from Google Drive and register it in the system. Returns the filename, size, MIME type and a shareable link.
Success Response
{
"success": true,
"code": 200,
"data": {
"filename": "Malar (2024) NavaRasa Short Film 1080p HDRip 500MB.mp4",
"size": 516730379,
"mime": "video/mp4",
"share_id": "4df0ec3a31e3",
"share_link": "https://pdlk.site/g/4df0ec3a31e3"
}
}Generate Streaming Link
/api/v1/linkGenerate a fast, AES-encrypted streaming link for a given share ID. Links expire automatically after 1 hour.
Success Response
{
"success": true,
"url": "https://lively-bar-a44b.getevay983.workers.dev/g/793b0e34131e3628aff93187d71df7e5f13d409d31a1829e914a6d607e9e62f974413a29b7088b46a0920608e98dba79"
}Error Responses
Version 2
LATESTv2 introduces multi-mirror support — distribute files to multiple providers simultaneously in a single API call.
Generate File
/api/v2/fileExample Requests
Why use multiple mirrors?
When you pass multiple mirror parameters, your file is added to the processing queue for each provider. This means when a user later requests a download link, the file is already processed and ready — no waiting for upload to complete. Pre-queue all mirrors to guarantee instant link generation for your users.
Success Response
{
"success": true,
"code": 200,
"already_exists": true,
"data": {
"filename": "Parthenope.2024.720p.WEB-DL.HIN-ENG.x264.ESub.mkv",
"size": 1317535585,
"mime": "video/x-matroska",
"share_id": "81febe2d1d29"
}
}Generate Streaming Link
/api/v2/linkGenerate an encrypted streaming link targeting a specific mirror. Select a provider below to see the response format.
Select Mirror Provider
Success Response/g/
{
"success": true,
"url": "https://lively-bar-a44b.getevay983.workers.dev/g/793b0e34131e3628aff93187d71df7e5f13d409d31a1829e914a6d607e9e62f974413a29b7088b46a0920608e98dba79"
}URL Prefix Reference
/g/Gofile/p/Pixeldrain/v/Vikingfile/b/Buzzheavier