TikTok
App · Social Media · 7 actions
Post videos to your TikTok account or save them as drafts, see your account and videos, and start a workflow when you post a new video.
Actions
| Action | What it does |
|---|---|
| Get my profile | Get the connected TikTok account's profile: name, username, bio, profile picture, and follower, like and video counts. |
| Get post status | Check on a video sent with 'Post a video' or 'Save a video to your drafts': still processing, waiting in your drafts, posted, or failed and why. |
| Get posting options | See what the connected account can post right now: who its posts can be shown to, the longest video it may post, and whether it has comments, Duets or Stitches turned off. |
| Get videos | Get up to 20 of the connected account's public videos by ID or link, with fresh cover image links and up-to-date counts. |
| List my videos | List the connected account's public videos, newest first, with their captions, links, cover images and view, like, comment and share counts. |
| Post a video | Post a video straight to the connected TikTok account, with a caption and who can watch it. |
| Save a video to your drafts | Save a video as a draft on the connected TikTok account. |
Get my profile
Get the connected TikTok account's profile: name, username, bio, profile picture, and follower, like and video counts.
Inputs
None.
Outputs
avatar_large_urltext- Link to a large profile picture
avatar_urltext- Link to the profile picture
avatar_url_100text- Link to the profile picture at 100x100
bio_descriptiontext- The profile bio
display_nametext- The profile name
follower_countnumber- How many followers the account has
following_countnumber- How many accounts it follows
is_verifiedtrue/false- Whether TikTok has verified the account
likes_countnumber- Likes across all its videos
open_idtext- The account's ID within your TikTok app
profile_deep_linktext- Link that opens the profile in TikTok
profile_urltext- Link to the profile on tiktok.com
union_idtext- The account's ID across your TikTok apps
usernametext- The @username, without the @
video_countnumber- How many public videos it has posted
Example output
{
"avatar_large_url": "https://p19-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/b17f0e4b3a4f4a50993cf72cda8b88b8~c5_1080x1080.jpeg",
"avatar_url": "https://p19-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/b17f0e4b3a4f4a50993cf72cda8b88b8~c5_168x168.jpeg",
"avatar_url_100": "https://p19-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/b17f0e4b3a4f4a50993cf72cda8b88b8~c5_100x100.jpeg",
"bio_description": "Making things.",
"display_name": "Tik Toker",
"follower_count": 1200,
"following_count": 80,
"is_verified": false,
"likes_count": 34000,
"open_id": "723f24d7-e717-40f8-a2b6-cb8464cd23b4",
"profile_deep_link": "https://vm.tiktok.com/ZMexample/",
"profile_url": "https://www.tiktok.com/@tiktoker",
"union_id": "c9c60f44-a68e-4f5d-84dd-ce22faeb0ba1",
"username": "tiktoker",
"video_count": 42
}Get post status
Check on a video sent with 'Post a video' or 'Save a video to your drafts': still processing, waiting in your drafts, posted, or failed and why.
Inputs
- Publish ID
publish_idtextRequired - The 'publish_id' from 'Post a video' or 'Save a video to your drafts'.
Outputs
downloaded_bytesnumber- How much of the video TikTok has downloaded
fail_reasontext- TikTok's reason code when it failed
fail_reason_texttext- Why it failed, in plain words
is_finaltrue/false- Whether TikTok has finished with the video
post_idslist- The public posts made from it, once TikTok has checked them
publish_idtext- The ID TikTok tracks the post by
statustext- PROCESSING_UPLOAD, PROCESSING_DOWNLOAD, SEND_TO_USER_INBOX, PUBLISH_COMPLETE or FAILED
status_texttext- The status in plain words
uploaded_bytesnumber- How much of the video TikTok has received
Example output
{
"downloaded_bytes": null,
"fail_reason": null,
"fail_reason_text": null,
"is_final": true,
"post_ids": [],
"publish_id": "v_pub_file~v2-1.123456789",
"status": "PUBLISH_COMPLETE",
"status_text": "Posted.",
"uploaded_bytes": 5391922
}Get posting options
See what the connected account can post right now: who its posts can be shown to, the longest video it may post, and whether it has comments, Duets or Stitches turned off.
Inputs
None.
Outputs
comment_disabledtrue/false- Whether the account has comments turned off for everyone
creator_avatar_urltext- Link to the profile picture; it works for 2 hours
creator_nicknametext- The account's display name
creator_usernametext- The account's @username, without the @
duet_disabledtrue/false- Whether the account has Duets turned off
max_video_post_duration_secnumber- The longest video the account can post, in seconds
privacy_level_labelslist- The same choices, as TikTok names them
privacy_level_optionslist- Who a post can be shown to: PUBLIC_TO_EVERYONE, FOLLOWER_OF_CREATOR, MUTUAL_FOLLOW_FRIENDS or SELF_ONLY
profile_urltext- Link to the profile on tiktok.com
stitch_disabledtrue/false- Whether the account has Stitches turned off
Example output
{
"comment_disabled": false,
"creator_avatar_url": "https://lf16-tt4d.tiktokcdn.com/obj/tiktok-open-platform/8d5740ac3844be417beeacd0df75aef1",
"creator_nickname": "TikTok Official",
"creator_username": "tiktok",
"duet_disabled": false,
"max_video_post_duration_sec": 300,
"privacy_level_labels": [
"Everyone",
"Friends (followers you follow back)",
"Only me"
],
"privacy_level_options": [
"PUBLIC_TO_EVERYONE",
"MUTUAL_FOLLOW_FRIENDS",
"SELF_ONLY"
],
"profile_url": "https://www.tiktok.com/@tiktok",
"stitch_disabled": true
}Get videos
Get up to 20 of the connected account's public videos by ID or link, with fresh cover image links and up-to-date counts.
Inputs
- Videos
video_idslistRequired - Up to 20 of your videos. A link to each works, copied from tiktok.com in a browser, or its ID from 'List my videos'.
Outputs
countnumber- How many videos were found
missing_idslist- IDs that weren't found: not this account's, deleted, or not public
videoslist- The videos found
Example output
{
"count": 1,
"missing_ids": [],
"videos": [
{
"comment_count": 14,
"cover_image_url": "https://p16-sign-sg.tiktokcdn.com/tos-alisg-p-0037/49b5eb2713004dfa429eab84566e~tplv-noop.image",
"create_time": 1657851434,
"created_at": "2022-07-15T02:17:14Z",
"duration": 12,
"embed_html": "<blockquote class=\"tiktok-embed\" data-video-id=\"7080213458555737986\"></blockquote>",
"embed_link": "https://www.tiktok.com/static/profile-video?id=7080213458555737986",
"height": 1920,
"id": "7080213458555737986",
"is_aigc": false,
"like_count": 120,
"share_count": 3,
"share_url": "https://www.tiktok.com/@tiktok/video/7080213458555737986",
"title": "video 1",
"video_description": "Test video 1",
"view_count": 2048,
"width": 1080
}
]
}List my videos
List the connected account's public videos, newest first, with their captions, links, cover images and view, like, comment and share counts. Private videos aren't included.
Inputs
- How many
page_sizenumber - How many videos to get, from 1 to 20. Defaults to 10.From 1 to 20.
- Posted before
posted_beforedate and time - Only videos posted before this moment. Leave empty for the newest.
- Next page
cursortext - To get the next page, use the cursor an earlier 'List my videos' returned. Used instead of Posted before.
Outputs
countnumber- How many videos are on this page
cursornumber- Pass as 'Next page cursor' to get the next page; empty on the last page
has_moretrue/false- Whether there are older videos to get
videoslist- The videos, newest first
Example output
{
"count": 1,
"cursor": 1643332803000,
"has_more": true,
"videos": [
{
"comment_count": 14,
"cover_image_url": "https://p16-sign-sg.tiktokcdn.com/tos-alisg-p-0037/49b5eb2713004dfa429eab84566e~tplv-noop.image",
"create_time": 1657851434,
"created_at": "2022-07-15T02:17:14Z",
"duration": 12,
"embed_html": "<blockquote class=\"tiktok-embed\" data-video-id=\"7080213458555737986\"></blockquote>",
"embed_link": "https://www.tiktok.com/static/profile-video?id=7080213458555737986",
"height": 1920,
"id": "7080213458555737986",
"is_aigc": false,
"like_count": 120,
"share_count": 3,
"share_url": "https://www.tiktok.com/@tiktok/video/7080213458555737986",
"title": "video 1",
"video_description": "Test video 1",
"view_count": 2048,
"width": 1080
}
]
}Post a video
Post a video straight to the connected TikTok account, with a caption and who can watch it. Lodol sends the video and waits for TikTok to finish posting it.
Inputs
- Video
videotextRequired - A link to the video file (MP4, MOV or WebM), or a video from an earlier step. Up to 250 MB.
- Who can watch
privacy_leveltextRequired - Who can see the video. The list shows the choices your TikTok account offers. Until TikTok reviews your TikTok app, only Only me works.
- Caption
captiontext - The text shown with the video, with any #hashtags and @mentions. Up to 2,200 characters.
- Allow comments
allow_commentstrue/false - Let people comment. Stays off if your TikTok account has comments turned off for everyone.Default:
false. - Allow Duet
allow_duettrue/false - Let people make Duets with the video.Default:
false. - Allow Stitch
allow_stitchtrue/false - Let people Stitch the video into theirs.Default:
false. - Cover frame (seconds)
cover_time_secondsnumber - Which moment of the video to use as its cover, in seconds from the start. Leave empty for the first frame.At least 0.
- Made with AI
ai_generatedtrue/false - Label the video as AI-generated content.Default:
false. - Your brand
promotes_own_brandtrue/false - The video promotes you or your own business. TikTok labels it 'Promotional content'.Default:
false. - Branded content
branded_contenttrue/false - The video promotes another brand in return for something. TikTok labels it 'Paid partnership'. It can't be posted for Only me.Default:
false.
Outputs
creator_usernametext- The account it was posted to
downloaded_bytesnumber- How much of the video TikTok has downloaded
fail_reasontext- TikTok's reason code when it failed
fail_reason_texttext- Why it failed, in plain words
is_finaltrue/false- Whether TikTok has finished with the video
post_idslist- The public posts made from it, once TikTok has checked them
post_urltext- Link to the post, once it is public
privacy_leveltext- Who the post is shown to
publish_idtext- The ID TikTok tracks the post by
statustext- PROCESSING_UPLOAD, PROCESSING_DOWNLOAD, SEND_TO_USER_INBOX, PUBLISH_COMPLETE or FAILED
status_texttext- The status in plain words
uploaded_bytesnumber- How much of the video TikTok has received
Example output
{
"creator_username": "tiktok",
"downloaded_bytes": null,
"fail_reason": null,
"fail_reason_text": null,
"is_final": true,
"post_ids": [],
"post_url": null,
"privacy_level": "SELF_ONLY",
"publish_id": "v_pub_file~v2-1.123456789",
"status": "PUBLISH_COMPLETE",
"status_text": "Posted.",
"uploaded_bytes": 5391922
}Save a video to your drafts
Save a video as a draft on the connected TikTok account. TikTok sends a notification, and you add the caption, sound and effects and post it from the TikTok app.
Inputs
- Video
videotextRequired - A link to the video file (MP4, MOV or WebM), or a video from an earlier step. Up to 250 MB.
Outputs
downloaded_bytesnumber- How much of the video TikTok has downloaded
fail_reasontext- TikTok's reason code when it failed
fail_reason_texttext- Why it failed, in plain words
is_finaltrue/false- Whether TikTok has finished with the video
post_idslist- The public posts made from it, once TikTok has checked them
publish_idtext- The ID TikTok tracks the post by
statustext- PROCESSING_UPLOAD, PROCESSING_DOWNLOAD, SEND_TO_USER_INBOX, PUBLISH_COMPLETE or FAILED
status_texttext- The status in plain words
uploaded_bytesnumber- How much of the video TikTok has received
Example output
{
"downloaded_bytes": null,
"fail_reason": null,
"fail_reason_text": null,
"is_final": true,
"post_ids": [],
"publish_id": "v_inbox_file~v2.123456789",
"status": "SEND_TO_USER_INBOX",
"status_text": "In your TikTok inbox: open the notification in TikTok to edit and post it.",
"uploaded_bytes": 5391922
}