UnderSky 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.undersky.ai/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.265—Multiple codecs
Weiboweibo.com/*, weibo.cn/*720p/HD/LD——
Xiguaixigua.com/*Yes——
Pipixiapipix.com/*, pipixia.com/*high/low——

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.undersky.ai/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.

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.undersky.ai/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"

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.