Unofficial TikTok API — Profile Banner

GET/api/v1/profile_banner

Set or read a TikTok profile banner (Profile Background) using your session.

ParameterDescription
session_idrequiredYour own TikTok sessionid (from your account cookies). The banner is set on THIS account.
image_urloptionalPOST only. Direct link to the banner image (jpg/png/webp). Max 12 MB.
fitoptionalPOST only. portrait (default) letterboxes a landscape image onto a 1080x1920 canvas with a blurred background; original uploads it untouched.
dry_runoptionalPOST only. 1 = do everything except the upload/commit, so you can preview the result safely.
sec_uidoptionalGET only. Read this account's banner instead of your own.
user_idoptionalGET only. Numeric id of the account to read.

Returns

uid, the banner media_type (1 = image), image_url/image_hash, and for POST a status of changed / pending / dry_run.

Example Request

https://dev.omar-thing.site/api/v1/profile_banner?session_id=%3Cyour_sessionid%3E&image_url=https%3A%2F%2Fexample.com%2Fbanner.jpg&fit=portrait&dry_run=1&sec_uid=MS4wLjABAAAA...&user_id=7236225602339636230&key=YOUR_API_KEY

Example Response

{
  "data": {
    "image_hash": "8be930d366c601d57f7d0263b1055c9b",
    "media_type": 1,
    "normalised_to_portrait": true,
    "previous_image_hash": "74abfda51bec397e5a49fd945bbb457a",
    "status": "changed",
    "uid": "7236225602339636230"
  },
  "status": "success"
}
Sends a live request using your API key above.

More Account Actions endpoints