Unofficial TikTok API
Profile banner
GETdev.omar-thing.site/api/v1/profile_banner
Set or read a TikTok profile banner (Profile Background) using your session.
Parameters
sent as X-API-Key
stringrequired
Your own TikTok
sessionid (from your account cookies). The banner is set on THIS account.stringoptional
POST only. Direct link to the banner image (jpg/png/webp). Max 12 MB.
stringoptional
POST only.
portrait (default) fits the image to 1080x1920; original keeps it as is.integeroptional
POST only. 1 = do everything except the upload/commit, so you can preview the result safely.
stringoptional
GET only. Read this account's banner instead of your own.
stringoptional
GET only. Numeric id of the account to read.
Request
curl "https://dev.omar-thing.site/api/v1/profile_banner?session_id=%3Cyour_sessionid%3E&image_url=https://example.com/banner.jpg&fit=portrait&dry_run=1&sec_uid=MS4wLjABAAAA...&user_id=7236225602339636230" \ -H "X-API-Key: YOUR_API_KEY"
Response200 OK
Example response. Long lists are cut to two items.