LEAPERone Docs

Video Extract Guide

Learn how to extract video metadata from social media share links, authenticate requests, handle responses, and track fixed-price usage.

Extract video download info from social media share links. Paste a URL (or raw share text), get multi-quality video streams, audio tracks, cover images, and metadata — all in one request.

Quick Start

Get your API Key

Go to the Dashboard and create an API key.

Make a request

Pass any supported video URL as the url parameter:

GET /v1/social-media/video/extract
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=https://v.douyin.com/L4FJNR3/" \
  -H "Authorization: Bearer sk-your-api-key"

Get the result

The response includes normalized metadata and multi-quality download options:

Response
{
  "platform": "douyin",
  "data": {
    "videoId": "6918273131559881997",
    "title": "骑白马的也可以是公主#百万转场变身",
    "author": "Real机智张",
    "duration": 10,
    "videos": [
      { "url": "https://...mp4", "quality": "1080p", "format": "mp4", "width": 1080, "height": 1920 },
      { "url": "https://...mp4", "quality": "720p", "format": "mp4", "width": 720, "height": 1280 }
    ],
    "audios": [
      { "url": "https://...mp3", "format": "mp3" }
    ]
  }
}

Supported Platforms

PlatformURL FormatsVideoAudioNotes
Douyinv.douyin.com/*Multi-quality (1080p/720p/540p)Background music MP3Shares parser with TikTok
Kuaishouv.kuaishou.com/*, *.gifshow.com/*Multi-qualityYes
Bilibilibilibili.com/video/BV*, b23.tv/*DASH multi-streamDASH separate audioRequires ffmpeg to merge
Xiaohongshuxiaohongshu.com/*, xhslink.com/*H.264/H.265Multiple codecs
Weiboweibo.com/*, weibo.cn/*720p/HD/LD
Xiguaixigua.com/*Yes
Pipixiapipix.com/*, pipixia.com/*high/low
PlatformURL FormatsVideoAudioNotes
TikToktiktok.com/@user/video/*Multi-quality (1080p/720p/540p)Background music MP3Shares parser with Douyin
YouTubeyoutube.com/watch?v=*, youtu.be/*, youtube.com/shorts/*360p–4K, mp4/webmm4a/webaUp to 20+ formats
Instagraminstagram.com/reel/*Multi-resolution
Twitter/Xx.com/*/status/*, twitter.com/*/status/*Multi-bitrateSorted by bitrate

Audio note: "—" means audio is embedded in the video file (audios returns empty array). Bilibili and YouTube use DASH format with separate audio/video — use ffmpeg to merge. Douyin/TikTok audios are standalone background music.

Try It — Test URLs

Copy any URL below and use it directly with the API:

Douyin
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=https://v.douyin.com/L4FJNR3/" \
  -H "Authorization: Bearer sk-your-api-key"

Returns 4 quality options (1080p → 540p) + 1 background music MP3.

TikTok
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=https://www.tiktok.com/@bellapoarch/video/6862153058223197445" \
  -H "Authorization: Bearer sk-your-api-key"

Returns 4 quality options + background music. Same hybrid parser as Douyin.

Kuaishou
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=https://v.kuaishou.com/dEHKhN" \
  -H "Authorization: Bearer sk-your-api-key"

Returns multi-quality video streams.

Bilibili
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=https://www.bilibili.com/video/BV1cAQqBqEpT/" \
  -H "Authorization: Bearer sk-your-api-key"

Returns DASH format: 6 video streams (different resolutions) + 3 audio streams (different codecs). Merge with:

ffmpeg merge
ffmpeg -i video.mp4 -i audio.m4a -c copy output.mp4
YouTube
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
  -H "Authorization: Bearer sk-your-api-key"

Returns 20+ video formats (360p–4K, mp4/webm) + 4 audio tracks (m4a/weba).

Paste Share Text Directly

No need to manually extract URLs. Paste the raw share text from any app:

Douyin share text
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=5.61 复制打开抖音,看看【某某的作品】标题 https://v.douyin.com/xxxxx/ [email protected] 08/23" \
  -H "Authorization: Bearer sk-your-api-key"
Xiaohongshu share text
curl -G "https://api.leaper.one/v1/social-media/video/extract" \
  --data-urlencode "url=25 【标题 - 作者 | 小红书】 😆 xxxxx 😆 https://www.xiaohongshu.com/discovery/item/xxxxx" \
  -H "Authorization: Bearer sk-your-api-key"

The API automatically extracts the https:// link from the text and parses it.

Use Cases

Pricing

Each successful request costs $0.01 credit. Failed requests are not billed.

Video and audio URLs are time-limited (typically hours to a few days). Download promptly after retrieval.

For full parameter specs and response schema, see the API Reference.