Sort a creator's uploads by performance instead of by date. The endpoint returns the same video records as the standard post feed, but ordered so the account's strongest work sits at the top of the first page. It is the quickest way to sample what actually lands for a creator before committing to a full crawl of their history, with count and cursor for paging.
curl -X GET "https://api.primeapi.co/user-popular-posts?secUid=MS4wLjABAAAAqB08cUbXaDWqbD6MCga2RbGTuhfO2EsHayBYx08NDrN7IE3jQuRDNNN6YwyfH6_6&count=35&cursor=0" \
-H "X-PrimeAPI-Key: YOUR_API_KEY"
import requests
url = "https://api.primeapi.co/user-popular-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": "35",
"extra": {
"fatal_item_ids": [],
"logid": "2025011701012578958012D8F5CF1F8E6E",
"now": 1737075687000
},
"hasMore": true,
"itemList": [
{
"AIGCDescription": "",
"CategoryType": 110,
"HasPromoteEntry": 0,
"author": {
"avatarLarger": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/f8c7cad75f3a12205d31d6662d2555d5~c5_1080x1080.jpeg?lk3s=a5d48078&nonce=79628&refresh_token=2045ffb41183ae674a8925d12bdac4c9&x-expires=1737248400&x-signature=6V0j1%2BJPLmx86jwzaFILJSiGXjs%3D&shp=a5d48078&shcp=81f88b70",
"avatarMedium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/f8c7cad75f3a12205d31d6662d2555d5~c5_720x720.jpeg?lk3s=a5d48078&nonce=98943&refresh_token=9eff5a81e37d8d8ef71bc6f60526ff2b&x-expires=1737248400&x-signature=BPQ%2B9lkMUcfkQtBU30gZF7jSAiY%3D&shp=a5d48078&shcp=81f88b70",
"avatarThumb": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/f8c7cad75f3a12205d31d6662d2555d5~c5_100x100.jpeg?lk3s=a5d48078&nonce=26543&refresh_token=1f1b45187fc00685f7b03341f989cdbf&x-expires=1737248400&x-signature=zZWu3JT%2FPh%2BJU7fyUgj%2FDq8lIUg%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)