Skip to content
Projects

About

Supported platforms include NetEase Cloud Music, Douyin, Kuaishou, Xiaohongshu, Soda Music, Weibo, bilibili, Pipixia, and Pipigaxiao. Supports watermark removal for short videos and image collections.

Design & Media

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+26
in 15 days
+77
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original
logo

Short Video Watermark Removal & Parsing API

Multi-platform parsing · Cookie-free · Watermark-free direct links · Ready to deploy


About • Important Notice • Features • Platforms • Structure • Installation • Usage • API Reference • Contributing • Contact

Sponsored Advertisement

Hncloud - Visit Official Website

Hncloud | Visit Official Website →


🎯 About

This tool parses share links from major short video platforms and returns watermark-free direct links with full metadata:

  • Watermark-free video / image-gallery / live-photo direct links (Douyin supports original-quality original parsing)
  • Original images from galleries and image+video pairs for Live Photos
  • Cover images, author info, background music, duration, publish time and more
  • All responses are returned in structured JSON format for easy integration

Douyin parsing uses a cookie-free detail API — no login, no cookie extraction required. Videos, galleries and live photos are all supported.


📢 Important Notice

This project is open-source software under the MIT License. Any individual or organization may use, modify, and distribute the source code in compliance with the license terms and applicable laws and regulations.

This project is provided for technical research and API demonstration purposes only. The code is for learning, communication, and technical testing only, and must not be used for any illegal activities.

All rights and interests related to parsed content (including but not limited to videos, image collections, music, and other media assets) belong to the original platforms and rightful owners/authors.

Users are solely responsible for obtaining necessary permissions and ensuring lawful, compliant, and reasonable use of any parsed content. Any direct or indirect consequences arising from the use of this project shall be borne by the user.

If any rights holder believes there is infringement or improper use, please contact us and we will cooperate promptly.


✨ Features

  • Multi-Platform Support: Douyin / Kuaishou / Xiaohongshu / Bilibili / Weibo / Toutiao and more
  • Cookie-Free Parsing: Douyin videos, galleries and live photos require no login or cookies
  • Original Quality: Douyin resolves original quality via vid 302 redirect (quality=original) with automatic bitrate fallback
  • Normalized Direct URLs: Douyin video URLs are automatically given mime_type=video_mp4 (never duplicated) so players and downloaders recognize the payload as MP4
  • All Content Types: Videos, image galleries and live photos share one unified response contract
  • Dual Runtime: PHP API + Cloudflare Workers edition (Douyin) — pick whichever fits your deployment
  • Aggregated Entry: api/sv.php single aggregate endpoint — auto-detects the platform and dispatches to the matching per-platform API
  • Zero-Dependency Deployment: Pure PHP, no Composer required — upload and run

🌐 Supported Platforms

Douyin content parsing ships as two integrated editions only — the PHP API and the Cloudflare Workers edition (videos / galleries / live photos behind one entry). Home-feed batch parsing is a separate API that requires a login cookie.

Platform API File Features Login Status
Douyin Video/Gallery/Live Photo api/douyin/douyin.php Original-quality direct link, gallery original images, Live Photo, BGM, multi-gear backup links Cookie-free ✅ Active
Douyin Cloudflare Workers Edition api/douyin-cloudflare workers/workers.js Original-quality direct link, gallery original images, Live Photo, BGM, multi-gear backup links Cookie-free ✅ Active
Douyin Home Feed Batch Parsing api/douyin-home/home.php Batch home-feed list (feed API) Login cookie required ✅ Active
Kuaishou api/kuaishou/ksjx.php Video/image direct links, cover, author info Cookie-free ✅ Active
Xiaohongshu (Little Red Book) api/xiaohongshu/xhsjx.php Watermark-free video, gallery original images, Live Photo Cookie-free ✅ Active
Bilibili api/bilibili/bilibili.php Video direct link, multi-part (P) list, duration, cover Cookie-free ✅ Active
Weibo (Interface Version) api/weibo.php Multi-quality selection, backup links, engagement stats, cover Cookie-free ✅ Active
Weibo (Spider Version) api/weibo_v.php Video direct link, cover Cookie-free ✅ Active
Toutiao api/toutiao.php Watermark-free video, BGM, cover Cookie-free ✅ Active
Pipigx (Pipi Comedy) api/pipigx.php Watermark-free video, cover Cookie-free ✅ Active
Pipixia (Pipi Shrimp) api/ppxia.php Watermark-free video, gallery images, cover, author info Cookie-free ✅ Active
Zuiyou api/zuiyou.php Watermark-free video, cover, author info Cookie-free ✅ Active
NetEase Cloud Music api/wyy.py (Python/Flask) Song direct-link parsing Cookie-free ✅ Active
Doubao AI Video/Chat Images api/doubao/video/api.php Watermark-free AI-generated video links Cookie-free ✅ Active
Jimeng AI Video api/jimengai/index.php Watermark-free AI-generated video links Cookie-free ✅ Active

If a direct video link returns HTTP 403 (hotlink protection), proxy it through api/svproxyurl.php (PHP) or cf_sv_proxy/worker.js (Cloudflare Workers) — for the latter, see cf_sv_proxy/README.md for deployment and API docs.


📦 Project Structure

short_videos/
├── api/                            # Per-platform parsing APIs
│   ├── douyin/                     # Douyin (cookie-free: video/gallery/live)
│   │   ├── douyin.php              #   Entry point
│   │   └── DouyinParser.php        #   Core parser (detail API + original quality 302)
│   ├── douyin-cloudflare workers/     # Douyin Cloudflare Workers edition
│   │   ├── workers.js              #   Worker script
│   │   └── README.md               #   Deployment guide
│   ├── douyin-home/                # Douyin home-feed batch parsing (login cookie required)
│   │   ├── home.php                #   Entry point
│   │   └── DouyinHomeParser.php    #   Home-feed parser
│   ├── kuaishou/                   # Kuaishou
│   ├── xiaohongshu/                # Xiaohongshu
│   ├── bilibili/                   # Bilibili
│   ├── doubao/                     # Doubao AI (video / chat image extraction)
│   ├── jimengai/                   # Jimeng AI video
│   ├── weibo.php / weibo_v.php     # Weibo (interface / spider)
│   ├── toutiao.php                 # Toutiao
│   ├── pipigx.php / ppxia.php      # Pipigx / Pipixia
│   ├── zuiyou.php                  # Zuiyou
│   ├── sv.php                      # Aggregate parser (auto platform detection, dispatches to per-platform APIs)
│   ├── wyy.py                      # NetEase Cloud Music (Python/Flask)
│   └── svproxyurl.php              # 403 hotlink proxy
├── cf_sv_proxy/                    # 403 proxy (Cloudflare Workers edition, see README inside)
├── img/                            # Documentation assets
├── docs/                           # Specifications
│   ├── 视频解析统一JSON格式3.0.md    #   Unified JSON format spec (Chinese)
│   └── Unified-Video-Parsing-JSON-Format-3.0.md   #   Same spec (English)
├── README.md / README_EN.md        # Documentation
└── LICENSE                         # MIT License

📥 Installation

Requirements

Item Requirement
PHP 8.0+ (curl & json extensions enabled)
Web Server Apache / Nginx
Dependencies None — no Composer needed

1. Download the Code

git clone https://github.com/jiuhunwl/short_videos.git
cd short_videos

2. Deploy to Server

Deploy the whole directory to your web root (or any subdirectory). No configuration needed.

3. Douyin Workers Edition (Optional)

To run Douyin parsing on Cloudflare Workers, see api/douyin-cloudflare workers/README.md and deploy workers.js.


🚀 Usage

Basic Usage

Access the API directly via URL with the share link (full share text supported):

https://your-server-domain/api/douyin/douyin.php?url=VIDEO_LINK

Example Request

curl "https://api.bugpk.com/api/douyin/douyin.php?url=https://v.douyin.com/xxxx/"

The Douyin API accepts full share texts with copywriting, e.g.: ?url=7.79 Copy and open Douyin... https://v.douyin.com/xxxx/

Aggregate Parsing (Auto Dispatch)

Use the aggregate endpoint api/sv.php when you don't want to distinguish platforms — it auto-detects the platform and forwards to the matching per-platform API:

curl "https://your-server-domain/api/sv.php?url=https://v.douyin.com/xxxx/"
  • Platform keywords and per-platform API paths are maintained in the config block at the top of api/sv.php. By default it calls the per-platform APIs deployed on the same site; change a path to a full URL to forward to another host;
  • Aggregate forwarding requires a concurrency-capable web server (Nginx/Apache + PHP-FPM both work). The built-in php -S server is single-process and blocks self-requests — use it only for debugging single-platform APIs.

Example Response

{
  "code": 200,
  "msg": "Parsing successful",
  "data": {
    "type": "video",
    "title": "Video Title",
    "desc": "Video description content",
    "author": {
      "name": "Author Name",
      "id": "123456789",
      "avatar": "https://example.com/avatar.jpg"
    },
    "cover": "https://example.com/cover.jpg",
    "url": "https://example.com/original_video.mp4",
    "quality": "original",
    "duration": 80.01,
    "size": 1823456,
    "size_label": "1.74MB",
    "create_time": 1766503530,
    "publish_time": "2025-12-23 23:25:30",
    "video_backup": [
      "https://example.com/backup_1.mp4"
    ],
    "images": [],
    "live_photo": [],
    "music": {
      "title": "Music Title",
      "author": "Music Author",
      "url": "https://example.com/music.mp3",
      "cover": "https://example.com/music_cover.jpg"
    },
    "video_id": "v0200fg10000xxxx"
  }
}

📖 API Reference

📘 The response data of every platform API follows a unified contract. See Unified Video Parsing JSON Format 3.0 (中文) for the full field definitions and empty-value conventions.

Request Parameters

Parameter Type Description Required
url String Share link, or share text containing the link ✅ Yes

Response Format

Field Type Description
code Integer Business status code (200 success, 400/404/500 failure)
msg String Response message (human-readable)
data Object/Array Payload (empty array on failure)
data.type String Content type: video / image / live / unknown
data.title String Title (usually same as desc)
data.desc String Description text
data.author Object Author info (name / id / avatar)
data.cover String Cover image URL
data.url String/Null Watermark-free direct URL (type=video); Douyin URLs carry mime_type=video_mp4
data.quality String Quality: original for Douyin original, otherwise the bitrate gear
data.duration Number/Null Duration in seconds (two decimals)
data.size Integer Main URL size in bytes (0 when probe fails)
data.size_label String Human-readable size (e.g. 1.74MB)
data.create_time Integer Publish timestamp in seconds
data.publish_time String Publish time (UTC+8, Y-m-d H:i:s)
data.video_backup Array Backup video URL list (type=video)
data.video_id String Video vid (type=video)
data.images Array Original image URL list (type=image/live)
data.live_photo Array Live-photo list (type=live, each item has image and video)
data.music Object Background music (title / author / url / cover)

Status Codes

Code Description
200 Parsing successful
400 Invalid parameters / link
404 Content not found
500 Upstream request failed

🤝 Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


📮 Contact

Author: JH-Ahua

Official Demo Website: https://api.bugpk.com/

Feedback Email: [email protected]

GitHub: https://github.com/jiuhunwl


💖 Sponsorship Support

If you find this project helpful, please consider supporting our work:

WeChat Pay Alipay
WeChat Pay Alipay

TRC20:

TMgEhEBSmLjgMkv6vQwLyhkCRQXSDieuSK

Support TRC20 network, thank you for your support, we will continue to improve the project!


🏆 Sponsor List

Thanks to all of our generous sponsors for keeping this project going!

48 sponsors so far


🌟 Star History


⭐ If this project helps you, please give it a Star!


中文

Explore related projects

Loading…