POST /api/tiktok/detail — raw webapp.video-detail JSON.
Social Media Video API for Data Extraction at Scale
Real-time, robust and scalable APIs for video metadata; native captions on YouTube/TikTok; Douyin captions via speech transcription.
import requests
API_BASE = "https://www.dataspider.ai/api"
HEADERS = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
}
detail = requests.post(
f"{API_BASE}/youtube/detail",
headers=HEADERS,
json={"url": "https://www.youtube.com/watch?v=sample-keynote"},
)
print(detail.json())
subs = requests.post(
f"{API_BASE}/youtube/subtitle",
headers=HEADERS,
json={"url": "https://www.youtube.com/watch?v=sample-keynote", "language": ""},
)
print(subs.json())
Developer API
One API for video data, subtitles, and transcription
One request returns title, author, thumbnail, and duration from YouTube, TikTok, and Douyin; YouTube/TikTok also expose native caption tracks.
Douyin has no caption API—use transcription. Other platforms can fall back to ASR when captions are missing.
Parameters, response fields, and full examples are in the API docs, so you can integrate quickly.
Get started with DataMiner for free (no credit card required) →Our Video Data API Endpoints
POST /api/tiktok/subtitle — caption text by language.
POST /api/tiktok/search — keyword search with search_id paging.
POST /api/tiktok/user/detail — username or profile URL.
POST /api/tiktok/user/search — find users by keyword.
POST /api/tiktok/user/works — paginated uploads by sec_uid.
Features
Why choose DataMiner as your video data provider?
Real-time API
Parse public content and return structured data in real time.
Unified schema
One schema for title, author, duration, thumbnail, and more.
REST API & SDK
Standard HTTP requests from any backend language.
Simple authentication
One API key for every product capability.
Multilingual captions
Native captions on YouTube/TikTok; timed text for Douyin via transcription.
ASR fallback
Transcription jobs when captions are missing or on Douyin.
What is DataMiner API designed for?
From structured metadata to timestamped subtitles and ASR, built for modern video intelligence.
Video archiving
Store metadata, thumbnails, and captions or transcripts in one library.
Content research
Build datasets from metadata and text—including Douyin ASR—across platforms.
AI data preparation
Turn videos into structured metadata and timestamped text.
Creator analysis
Compare authors, publish dates, duration, and content topics.
Cross-platform monitoring
Process YouTube, TikTok, and Douyin with one schema.
Media workflows
Feed editing, translation, summarization, and moderation pipelines.
Frequently Asked Questions
Who is DataMiner for?+
Developers and teams that need public video metadata, captions, and speech transcription.
Which platforms are supported?+
YouTube, TikTok, and Douyin, plus standalone speech transcription.
What data does the API return?+
Detail endpoints return metadata; YouTube/TikTok subtitle endpoints return timed captions; Douyin uses transcription for timed text.
What if captions are unavailable?+
For Douyin, POST /api/transcribe/submit. Elsewhere, try subtitle first, then ASR and poll job_id.
How do I authenticate?+
Create an API key in the console and send it in the Authorization header.
How is usage measured?+
API usage is recorded with account credits; pricing details live on the pricing page.
Getting started is easy
Sign up and try for free
Sign up on our platform (no credit card required) and immediately get your API token to start using the API for free.
Need support?
Read endpoint parameters, response schemas, complete examples across languages, and async transcription workflows.