tiktok-api-downloader
v0.2.0
Published
This API allows you to download media content from TikTok. You can retrieve video and audio download URLs, along with metadata about the video.
Downloads
13
Maintainers
Readme
TikTok Media Downloader API
This API allows you to download media content from TikTok. You can retrieve video and audio download URLs, along with metadata about the video.
Installation
npm i tiktok-api-downloader
Usage
const { downloadVideo } = require("tiktok-api-downloader");
(async () => {
const main = await downloadVideo(
`https://www.tiktok.com/@username/video/1234567890`
);
console.log(main);
})();
// Output
// {
// "status": true,
// "developer": "API BY MAHMOUD SAYED || https://github.com/Mahmovdsayed",
// "metadata": {
// "likes": Number,
// "plays": Number,
// "comment": Number,
// "share": Number,
// "downloadCount": Number,
// "durationInSeconds": Number,
// "title": String,
// "thumbnail": String,
// "url": String
// },
// "author": {
// "id": String,
// "unique_id": String,
// "nickname": String,
// "avatar": String,
// "profileURL": String
// },
// "download": [
// {
// "url": String,
// "quality": "hd",
// "extension": "mp4",
// "size": Number,
// "formattedSize": String,
// "videoAvailable": true,
// "audioAvailable": true,
// "chunked": false,
// "cached": false
// },
// {
// "url": String,
// "quality": "sd",
// "extension": "mp4",
// "size": Number,
// "formattedSize": String,
// "videoAvailable": true,
// "audioAvailable": true,
// "chunked": false,
// "cached": false
// },
// {
// "url": String,
// "quality": "watermark",
// "extension": "mp4",
// "size": Number,
// "formattedSize": String,
// "videoAvailable": true,
// "audioAvailable": true,
// "chunked": false,
// "cached": false
// },
// {
// "url": String,
// "quality": "128kbps",
// "extension": "mp3",
// "size": Number,
// "formattedSize": String,
// "videoAvailable": false,
// "audioAvailable": true,
// "chunked": false,
// "cached": false
// }
// ]
// }
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any inquiries, please contact me.