Social Media
TikTok User Posts
List a TikTok user's posts by sec_user_id — video id, description, and statistics — with pagination, as JSON.
POST/api/v1/tiktok/user/posts
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonsec_user_idstringrequiredSecure user id (from the Profile endpoint).
Example: MS4wLjABAAAAv7iSuuXD…
cursorstringPagination cursor from a previous response.
countnumberNumber of results per page.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tiktok.user_posts(sec_user_id="MS4wLjABAAAAv7iSuuXD…")
print(results)Response
"min_cursor": 1782849273681,
"max_cursor": 1782509772196,
"has_more": 1,
"has_locate_item": false,
"status_msg": "",
"version": "v2"
},
"response_time": 1914,
"credits_used": 1,
"credits_remaining": 4747
}