{"id":24782422,"url":"https://github.com/mahmovdsayed/tiktokapi","last_synced_at":"2025-03-24T05:29:00.226Z","repository":{"id":250649088,"uuid":"835049646","full_name":"Mahmovdsayed/tiktokAPI","owner":"Mahmovdsayed","description":"This API allows you to download media content from TikTok. You can retrieve video and audio download URLs, along with metadata about the video.","archived":false,"fork":false,"pushed_at":"2024-07-30T01:41:45.000Z","size":48,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T11:17:11.946Z","etag":null,"topics":["api","free-api","tiktok","tiktok-api"],"latest_commit_sha":null,"homepage":"https://tiktok-api-downloader.vercel.app","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/Mahmovdsayed.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":"2024-07-29T04:04:27.000Z","updated_at":"2024-09-25T02:49:43.000Z","dependencies_parsed_at":"2024-07-29T05:51:33.004Z","dependency_job_id":null,"html_url":"https://github.com/Mahmovdsayed/tiktokAPI","commit_stats":null,"previous_names":["mahmovdsayed/tiktokapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mahmovdsayed%2FtiktokAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mahmovdsayed%2FtiktokAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mahmovdsayed%2FtiktokAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mahmovdsayed%2FtiktokAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mahmovdsayed","download_url":"https://codeload.github.com/Mahmovdsayed/tiktokAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245215376,"owners_count":20578962,"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":["api","free-api","tiktok","tiktok-api"],"created_at":"2025-01-29T11:17:13.668Z","updated_at":"2025-03-24T05:29:00.205Z","avatar_url":"https://github.com/Mahmovdsayed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TikTok Media Downloader API\n\nThis API allows you to download media content from TikTok. You can retrieve video and audio download URLs, along with metadata about the video.\n\n## Installation\n\nTo get started, clone the repository and install the necessary dependencies:\n\n```bash\ngit clone https://github.com/Mahmovdsayed/tiktokAPI.git\ncd tiktokAPI\nnpm install\n```\n\n# Usage\n\nStarting the Server\n\nTo start the server, run:\n\n```bash\nnpm start\n```\n\nThe server will be running on port 4000 by default.\n\n# Endpoints\n\n`GET /download`\nThis endpoint retrieves download URLs for a TikTok video.\n\nQuery Parameters:\n\nurl (required): The URL of the TikTok video you want to download.\n\nResponse:\n\nOn success, the response will include:\n\n```json\n{\n  \"status\": true,\n  \"developer\": \"API BY MAHMOUD SAYED || https://github.com/Mahmovdsayed\",\n  \"metadata\": {\n    \"likes\": Number,\n    \"plays\": Number,\n    \"comment\": Number,\n    \"share\": Number,\n    \"downloadCount\": Number,\n    \"durationInSeconds\": Number,\n    \"title\": String,\n    \"thumbnail\": String,\n    \"url\": String\n  },\n  \"author\": {\n    \"id\": String,\n    \"unique_id\": String,\n    \"nickname\": String,\n    \"avatar\": String,\n    \"profileURL\": String\n  },\n  \"download\": [\n    {\n      \"url\": String,\n      \"quality\": \"hd\",\n      \"extension\": \"mp4\",\n      \"size\": Number,\n      \"formattedSize\": String,\n      \"videoAvailable\": true,\n      \"audioAvailable\": true,\n      \"chunked\": false,\n      \"cached\": false\n    },\n    {\n      \"url\": String,\n      \"quality\": \"sd\",\n      \"extension\": \"mp4\",\n      \"size\": Number,\n      \"formattedSize\": String,\n      \"videoAvailable\": true,\n      \"audioAvailable\": true,\n      \"chunked\": false,\n      \"cached\": false\n    },\n    {\n      \"url\": String,\n      \"quality\": \"watermark\",\n      \"extension\": \"mp4\",\n      \"size\": Number,\n      \"formattedSize\": String,\n      \"videoAvailable\": true,\n      \"audioAvailable\": true,\n      \"chunked\": false,\n      \"cached\": false\n    },\n    {\n      \"url\": String,\n      \"quality\": \"128kbps\",\n      \"extension\": \"mp3\",\n      \"size\": Number,\n      \"formattedSize\": String,\n      \"videoAvailable\": false,\n      \"audioAvailable\": true,\n      \"chunked\": false,\n      \"cached\": false\n    }\n  ]\n}\n\n```\n\nOn failure, the response will include:\n\n```json\n{\n  \"status\": false,\n  \"error\": \"Failed to download video\"\n}\n```\n# Example Request\n\nTo get the download URLs for a TikTok video:\n\n```bash\ncurl \"http://localhost:4000/download?url=https://www.tiktok.com/@username/video/1234567890\"\n```\n\n# Error Handling\n\n**Bad Request**: If the `url` query parameter is missing **400**.\n\n**Internal Server Error**: If there is an error processing the request **500**.\n\n# Contributing\n\nIf you would like to contribute to this project, please fork the repository and submit a pull request.\n\n# License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n# Contact\n\nFor any inquiries, please contact [me](https://www.instagram.com/mahmoudsaayed).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmovdsayed%2Ftiktokapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmovdsayed%2Ftiktokapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmovdsayed%2Ftiktokapi/lists"}