{"id":20056877,"url":"https://github.com/makarasty/downloadtiktok","last_synced_at":"2025-08-26T15:24:42.514Z","repository":{"id":64990077,"uuid":"580437625","full_name":"makarasty/DownloadTikTok","owner":"makarasty","description":"🎞 Node.js library that can download videos from TikTok without watermark, using the site https://snapdouyin.app/","archived":false,"fork":false,"pushed_at":"2024-03-24T11:21:18.000Z","size":20,"stargazers_count":10,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T07:51:06.030Z","etag":null,"topics":["discord-bot","download-tiktok","download-tiktoks","nodejs","nodejs-modules","telegram","telegram-bot","tiktok","tiktok-api","tiktok-scraper","video","videos"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makarasty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-20T15:02:45.000Z","updated_at":"2025-04-09T12:50:28.000Z","dependencies_parsed_at":"2024-09-19T02:47:40.747Z","dependency_job_id":null,"html_url":"https://github.com/makarasty/DownloadTikTok","commit_stats":null,"previous_names":["makarasty/tt_downloader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makarasty%2FDownloadTikTok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makarasty%2FDownloadTikTok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makarasty%2FDownloadTikTok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makarasty%2FDownloadTikTok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makarasty","download_url":"https://codeload.github.com/makarasty/DownloadTikTok/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252514861,"owners_count":21760451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-bot","download-tiktok","download-tiktoks","nodejs","nodejs-modules","telegram","telegram-bot","tiktok","tiktok-api","tiktok-scraper","video","videos"],"created_at":"2024-11-13T12:56:51.015Z","updated_at":"2025-05-05T14:30:58.720Z","avatar_url":"https://github.com/makarasty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This library uses https://snapdouyin.app/ !\n\n**Nodejs** library that can download videos from **TikTok without watermark** and other formats\n\n# Install\n- `npm i downloadtiktok`\n\n# OS Dependencies\n- Node.js\n\n# Lib Dependencies\n- undici\n\n# JSDoc\n```js\n/**\n* @typedef {Object} Media\n* @property {string} url - The URL of the media file\n* @property {string} quality - The quality of the media file (e.g., \"hd\", \"sd\", \"watermark\", \"128kbps\")\n* @property {string} extension - The file extension of the media file (e.g., \"mp4\", \"mp3\")\n* @property {number} size - The size of the media file in bytes\n* @property {string} formattedSize - The formatted size of the media file (e.g., \"8.62 MB\", \"242.57 KB\")\n* @property {boolean} videoAvailable - Whether the media file contains video\n* @property {boolean} audioAvailable - Whether the media file contains audio\n* @property {boolean} chunked - Whether the media file is chunked\n* @property {boolean} cached - Whether the media file is cached\n*/\n/**\n* @typedef {Object} TiktokVideo\n* @property {?string} error - The error message\n* @property {string} url - The URL of the video\n* @property {string} title - The title of the video\n* @property {string} thumbnail - The URL of the video thumbnail\n* @property {string} duration - The duration of the video (e.g., \"00:15\")\n* @property {string} source - The source of the video (e.g., \"tiktok\")\n* @property {Media[]} medias - An array of media files associated with the video\n* @property {?string} sid - The session ID associated with the video (can be null)\n*/\n```\n\n# Usage example\n```js\nconst dt = require(\"downloadTiktok\")\n\n// Get the response from the server\nconst result = await dt.downloadTiktok('https://vm.tiktok.com/ZGefRquMA/')\n// Print the result (the server response)\nconsole.log(result)\n\n// Get videos only\nconst videos = dt.filterVideo(result.medias)\n// Print the videos\nconsole.log(videos);\n\n// Get audios only\nconst audios = dt.filterAudio(result.medias)\n// Print the audios\nconsole.log(audios);\n\n// Get the videos without the watermark\nconst noWatermark = dt.filterNoWatermark(result.medias)\n// Print the videos without watermark\nconsole.log(noWatermark);\n\n// Get the best video within a limited size\nconst bestVideo = dt.getBestMediaWithinLimit(videos, 50 * 1024 * 1024)\n// Print the best video\nconsole.log(bestVideo);\n\n// Get the best audio within a limited size\nconst bestAudio = dt.getBestMediaWithinLimit(audios, 50 * 1024 * 1024)\n// Print the best audio\nconsole.log(bestAudio);\n\n// Get the buffer from the video link\nconst videoBuffer = await dt.getBufferFromURL(bestVideo.url)\n// Print the video buffer\nconsole.log(videoBuffer)\n\n// Get the buffer from the audio link\nconst audioBuffer = await dt.getBufferFromURL(bestAudio.url)\n// Print the audio buffer\nconsole.log(audioBuffer)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakarasty%2Fdownloadtiktok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakarasty%2Fdownloadtiktok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakarasty%2Fdownloadtiktok/lists"}