Pull a creator's upload feed. Given a secUid, the endpoint returns that account's videos newest first, each with its caption, cover image, sound, play, like, comment and share counts and upload timestamp. Count sets the page size and cursor advances through the history, so an entire back catalogue can be mirrored one page at a time rather than in one call.
curl -X GET "https://api.primeapi.co/user-posts?secUid=MS4wLjABAAAAqB08cUbXaDWqbD6MCga2RbGTuhfO2EsHayBYx08NDrN7IE3jQuRDNNN6YwyfH6_6&count=35&cursor=0" \
-H "X-PrimeAPI-Key: YOUR_API_KEY"
import requests
url = "https://api.primeapi.co/user-posts?secUid=MS4wLjABAAAAqB08cUbXaDWqbD6MCga2RbGTuhfO2EsHayBYx08NDrN7IE3jQuRDNNN6YwyfH6_6&count=35&cursor=0"
headers = {"X-PrimeAPI-Key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
print("Credits left:", response.headers.get("X-PrimeAPI-Balance"))
{
"data": {
"cursor": "1664510413000",
"extra": {
"fatal_item_ids": [],
"logid": "202501170055575AEC12C1BB1E6A1B4BE8",
"now": 1737075358000
},
"hasMore": true,
"itemList": [
{
"AIGCDescription": "",
"CategoryType": 113,
"HasPromoteEntry": 0,
"author": {
"avatarLarger": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/f8c7cad75f3a12205d31d6662d2555d5~c5_1080x1080.jpeg?lk3s=a5d48078&nonce=19506&refresh_token=76561fbba5443c03b5c38f13dd0e8cf5&x-expires=1737244800&x-signature=1vwRwR8wokEDXbRo5yQiCDO%2Btpw%3D&shp=a5d48078&shcp=81f88b70",
"avatarMedium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/f8c7cad75f3a12205d31d6662d2555d5~c5_720x720.jpeg?lk3s=a5d48078&nonce=46726&refresh_token=e0950c072b2a0466ee70cbe8df1dff7e&x-expires=1737244800&x-signature=IFvFjVbN6PWvPrKTUJdcSI48kDw%3D&shp=a5d48078&shcp=81f88b70",
"avatarThumb": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/f8c7cad75f3a12205d31d6662d2555d5~c5_100x100.jpeg?lk3s=a5d48078&nonce=60011&refresh_token=9bf55c8c0a410cd31b8502fff7e8218a&x-expires=1737244800&x-signature=38drDOOvGX2u%2BsYRNcAiOGUPpAc%3D&shp=a5d48078&shcp=81f88b70",
"commentSetting": 0,
"downloadSetting": 0,
"duetSetting": 0,
"ftc": false,
"id": "6881290705605477381",
"isADVirtual": false,
"isEmbedBanned": false,
"nickname": "Taylor Swift",
"openFavorite": true,
"privateAccount": false,
"relation": 0,
"secUid": "MS4wLjABAAAAqB08cUbXaDWqbD6MCga2RbGTuhfO2EsHayBYx08NDrN7IE3jQuRDNNN6YwyfH6_6",
"secret": false,
"signature": "This is pretty much just a cat account",
"stitchSetting": 0,
"uniqueId": "taylorswift",
"verified": true
},
"authorStats": {
"diggCount": 2204,
"followerCount": 32700000,
"followingCount": 0,
"friendCount": 0,
"heart": 247000000,
"heartCount": 247000000,
"videoCount": 71
},
... (truncated)