Created
September 22, 2025 18:42
-
-
Save adrianhorning08/03f52682c50021b7eb35fa67292f1483 to your computer and use it in GitHub Desktop.
Download TikTok Raw Video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const res = await axios.get( | |
| "https://api.scrapecreators.com/v2/tiktok/video?url=https://www.tiktok.com/@stoolpresidente/video/7552934044887944478", | |
| { | |
| headers: { | |
| "x-api-key": process.env.MY_API_KEY, | |
| }, | |
| } | |
| ); | |
| const rawVideo = res?.data?.aweme_detail?.video?.play_addr?.url_list?.[0]; | |
| console.log("rawVideo", rawVideo); | |
| const videoRes = await impit.fetch(rawVideo); | |
| const buffer = Buffer.from(await videoRes.arrayBuffer()); | |
| fs.writeFileSync("video.mp4", buffer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment