ShareShortcuts
Fork “DTikTok”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so raihan8 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
48K
Saved
0
Actions
60
Category
API
Version
2.0
Language
EN

Preview

DTikTok is an iOS Shortcut to download TikTok videos without a watermark on iPads and iPhones. It can download TikTok videos in HD Quality and Also 720p, and 480p.

What's New

Version 2.0

1080p, 720p, MP3

Version History
2.0 Apr 16, 2024

1080p, 720p, MP3

1.0 Mar 6, 2024

First release

What it does

60 actions
  1. Comment
    Created by Cody Chrunos My website: chrunos.com Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
  2. Dictionary
  3. Get Contents of URL
    https://raw.githubusercontent.com/RaihanSardarUI/TikTok/main/version1.json
  4. Set Variable
    update
  5. Get Dictionary Value
  6. Text
  7. If
  8. Text
  9. Choose from Menu
    …
  10. Choose from Menu
    Update Now
  11. Open URLs
  12. Stop This Shortcut
  13. Choose from Menu
    Not Now
  14. Stop This Shortcut
  15. If
  16. If
  17. Get Variable
  18. If
  19. Get Clipboard
  20. If
  21. URL Encode
  22. Choose from Menu
  23. Choose from Menu
    720P
  24. Text
  25. Choose from Menu
    1080P
  26. Text
  27. Choose from Menu
    MP3
  28. Get Contents of URL
    …
  29. Get Dictionary Value
  30. URL
  31. Get Contents of URL
    …
  32. Save File
  33. Stop This Shortcut
  34. Get Contents of URL
    …
  35. Get Dictionary from Input
  36. Get Dictionary Value
  37. If
  38. URL
  39. Set Variable
    dUrl
  40. If
  41. Get Contents of URL
    …
  42. Make HTML from Rich Text
  43. Match Text
  44. Get Contents of URL
    …
  45. If
  46. Show Notification
    Error - This TikTok cannot be downloaded
  47. If
  48. Get URLs from Input
  49. Get Item from List
  50. Set Variable
    dUrl
  51. Get Contents of URL
    …
  52. Save to Photo Album
  53. Choose from Menu
    Video Save Successfully! ✅
  54. Choose from Menu
    Join Telegram Group
  55. Open URLs
  56. Choose from Menu
    Visit Our Website for Help And Support
  57. Open URLs
  58. Choose from Menu
    Exit
  59. If
  60. Show Notification
    URL not supported

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color red
#define glyph filmstrip

/*
Created by Cody Chrunos
My website: chrunos.com
Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
*/
const wuk = {
	"api": "https://ttdownloader.com/search/",
	"ttd": "https://ttdownloader.com/",
	"wuk": "https://co.wuk.sh/api/json"
}
downloadURL("https://raw.githubusercontent.com/RaihanSardarUI/TikTok/main/version1.json")
@update
const Text = "4.3.3"

if Text != @update['version'] {
	menu  {
	item "Update Now":
		openURL(@update)
		stop()
	item "Not Now":
		stop()
	}
} else {
}

if ShortcutInput {
	// TODO: Get Variable not supported: Assign variable here to 'ShortcutInput'.
} else {
	getClipboard()
}

if InputURL contains "tiktok.com" {
	urlEncode(InputURL)
	menu nil {
	item "720P":
	item "1080P":
	item "MP3":
		const ContentsOfURL = jsonRequest(wuk['wuk'], "POST", {
			"isAudioOnly": true,
			"isTTFullAudio": true,
			"url": "{}"
		}, {
			"Accept": "application/json",
			"Content-Type": "application/json"
		})
		const DictionaryValue = getValue(ContentsOfURL, "url")
		url(DictionaryValue)
		const ContentsOfURL1 = downloadURL()
		saveFilePrompt(ContentsOfURL1)
		stop()
	}
	const ContentsOfURL2 = jsonRequest(wuk['wuk'], "POST", {
		"isNoTTWatermark": true,
		"url": "{}",
		"vQuality": "{}"
	}, {
		"Accept": "application/json",
		"Content-Type": "application/json"
	})
	const Dictionary = getDictionary(ContentsOfURL2)
	const DictionaryValue1 = getValue(Dictionary, "url")
	if DictionaryValue1 {
		url(DictionaryValue1)
		@dUrl
	} else {
		const ContentsOfURL3 = fileRequest(wuk['ttd'], "POST")
		makeHTML(ContentsOfURL3)
		const Token = containsText(, "(?<=name=\"token\"\svalue=\")(.*?)(?=\"\/>)")
		const ContentsOfURL4 = formRequest(wuk['api'], "POST", {
			"format": "",
			"token": "{Token}",
			"url": "{InputURL}"
		})
		if ContentsOfURL4 contains "error" {
			showNotification("Error - This TikTok cannot be downloaded", wuk['name'])
		} else {
			const URLs = getURLs(ContentsOfURL4)
			getListItem(URLs, 3)
			@dUrl
		}
	}
	const ContentsOfURL5 = downloadURL(@dUrl)
	savePhoto(ContentsOfURL5)
	menu "Video Save Successfully! ✅" {
	item "Join Telegram Group":
		openURL("https://t.me/+h2hPEXqDjC80N2Vl")
	item "Visit Our Website for Help And Support":
		openURL("https://dtiktok.net/")
	item "Exit":
	}
} else {
	showNotification("URL not supported", wuk['name'])
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

You Might Also Like

See All
Advertisement