API Reference

Complete reference for PDLink file distribution and streaming link generation endpoints.

Base URL:https://api.pdlink.site

Version 1

STABLE

Generate File

/api/v1/file
GET/api/v1/file?fileid={google_drive_file_id}&apikey={your_api_key}

Fetch 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/link
GET/api/v1/link?share_id={share_id}&apiKey={your_api_key}

Generate 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

400"Missing fileId or apiKey"(or share_id for /link)
401"Invalid API key"
403"API key not found"
403"Your account is blocked"
404"File not found or inaccessible"
500"Internal server error"
Version 2 — Multi-Mirror

Version 2

LATEST

v2 introduces multi-mirror support — distribute files to multiple providers simultaneously in a single API call.

gofilepixeldrainvikingfilebuzzheavier

Generate File

/api/v2/file

Example Requests

GET
/api/v2/file?fileid={fileid}&mirror=gofile&apikey={apikey}Single mirror — Gofile only
GET
/api/v2/file?fileid={fileid}&mirror=pixeldrain&apikey={apikey}Single mirror — Pixeldrain only
GET
/api/v2/file?fileid={fileid}&mirror=vikingfile&apikey={apikey}Single mirror — Vikingfile only
GET
/api/v2/file?fileid={fileid}&mirror=buzzheavier&apikey={apikey}Single mirror — Buzzheavier only
GET
/api/v2/file?fileid={fileid}&mirror=gofile&mirror=pixeldrain&mirror=vikingfile&mirror=buzzheavier&apikey={apikey}⭐ All mirrors — Pre-queue file on every provider for instant links

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/link
GET/api/v2/link?share_id={share_id}&mirror=gofile&apikey={your_api_key}

Generate 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

Error Responses

400"Missing fileid, apiKey or mirror"
400"mirror '{mirror}' not allowed"
400"File size exceeds 10GB limit for pixeldrain"
401"Invalid API key"
403"API key not found"
403"Your account is blocked"
403"You do not have permission to generate links for this file"
404"File not found or inaccessible"
500"Internal server error"