TikTok
TikTok Video Transcript
Get the spoken-word transcript of a TikTok video — timestamped segments and one full-text string — by video id or URL, as JSON. Transcripts are available for videos that carry captions (talking or narrated content); a silent music or dance clip returns available: false.
POST/api/v1/tiktok/video/transcript
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonvideo_idstringThe TikTok video id (numeric aweme id). Provide this or url.
Example: 7609177768793787679
urlstringA TikTok video or share URL. Provide this or video_id.
Example: https://www.tiktok.com/@user/video/7609177768793787679
languagestringTwo-letter language code to select a caption track when the video has more than one, e.g. en. Optional.
Example: en
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tiktok.video_transcript(video_id="7609177768793787679")
print(results)Response
"video_id": "7609177768793787679",
"available": true,
"language": "eng-US",
"language_code": "en",
"is_auto_generated": true,
"is_original": true,
"text": "Your tariffs are illegal. They're not. The president can charge whatever country he wants. But he used this law to implement them and didn't have the power to do so. Fine. Then I'll do new tariffs under different laws. A 10% global tariff, effective immediately. Also, according to the Constitution, tariffs are considered taxes, which have to be approved by Congress. They're not taxes. The Constitution disagrees. First time Congress taxed people was with a law for a tariff. I'm ashamed of certain members of the court. They're a disgrace to our nation. Hang on. This feels like a big circle. Why is this significant? This ruling has huge stakes. Tariffs affect trillions of dollars in trade. The government collected nearly $134 billion by mid December. So what happens now? Isn't the state of the union on Tuesday? Yes, and the Supreme Court justices sometimes go. But two of the three justices Trump appointed sided against him in the ruling. So he said, I couldn't care less if they come, because the Supreme Court said.",
},
"response_time": 2829,
"credits_used": 1,
"credits_remaining": 4742
}