Fast, Resilient & Serverless Ready

Pornhub Video Downloader
& Stream Extraction API

Extract direct 1080p, 720p, 480p, 240p HLS video streams, high-res posters, and complete video metadata with a single API call or paste below.

Quick Test Samples:
REST API Documentation

Use PH Downloader API in Your Apps

Integrate seamlessly into Telegram Bots, Discord Bots, Web Apps, mobile apps, or Python scripts.

API Endpoints

GET /api/download?url={VIDEO_URL}

Extracts video metadata and all available direct streaming links.

GET /api/info?url={VIDEO_URL}

Alias for metadata and stream resolution query.

POST /api/convert

Accepts JSON {"url": "https://www.pornhub.com/view_video.php?viewkey=..."}.

GET /api/health

Check API server status and creator information.

Code Examples

curl -X GET "https://thenuxphdl.netlify.app/api/download?url=https://www.pornhub.com/view_video.php?viewkey=66db8ffed80aa"
Sample JSON Response (Creator: Thenux) 200 OK
{
  "creator": "Thenux",
  "status": "success",
  "timestamp": "2026-09-20T21:07:08.000Z",
  "data": {
    "viewkey": "66db8ffed80aa",
    "title": "Every morning they leave us alone and this happens… naughty stepsister",
    "duration": {
      "seconds": 282,
      "formatted": "04:42"
    },
    "thumbnail": "https://ei.phncdn.com/videos/202409/06/457459171/original/(m=qH504TZbeaAaGwObaaaa)(mh=uRGR7b_HXx0w-jD1)0.jpg",
    "url": "https://www.pornhub.com/view_video.php?viewkey=66db8ffed80aa",
    "isHD": true,
    "author": {
      "name": "Neilc9913",
      "url": "https://www.pornhub.com/users/neilc9913"
    },
    "stats": {
      "views": "1.2M",
      "rating": "94%"
    },
    "tags": ["Handjob", "Titty Fucking"],
    "downloads_count": 4,
    "downloads": [
      {
        "quality": "1080p",
        "qualityValue": 1080,
        "format": "hls",
        "resolution": "1080x1920",
        "url": "https://ev-h.phncdn.com/hls/videos/202409/06/457459171/1080P_4000K_457459171.mp4/master.m3u8?...",
        "isDefault": false
      },
      {
        "quality": "720p",
        "qualityValue": 720,
        "format": "hls",
        "resolution": "720x1280",
        "url": "https://ev-h.phncdn.com/hls/videos/202409/06/457459171/720P_4000K_457459171.mp4/master.m3u8?...",
        "isDefault": true
      }
    ]
  }
}
Deploy to GitHub & Netlify

Zero-Config Deployment

Deploy this project to Netlify with serverless functions in 1 minute.

1

Push to GitHub

Push directly to the official GitHub repository:

git init
git add .
git commit -m "feat: PH Downloader API by Thenux"
git branch -M main
git remote add origin https://github.com/thenuxofc/PHDL-API.git
git push -u origin main
2

Connect with Netlify

Log in to Netlify, click "Add new site" > "Import an existing project", select thenuxofc/PHDL-API.

3

Instant Build & Deploy

Netlify will automatically detect netlify.toml and deploy your functions and web interface with HTTPS enabled!