ssovit / TikTok-API-PHP

Unofficial TikTok API for PHP. Join our Discord server
https://discord.gg/rSQd2QAXA8
MIT License
145 stars 42 forks source link

can't load more videos from user or challenge #25

Closed anaouda closed 3 years ago

anaouda commented 3 years ago

hello sir, thank you for your amazing project i tried to get user feed or challenge feed but i got only 28 video, how to get the next videos or how to get all videos of user or challenge can you help me please thanks in advance

ssovit commented 3 years ago

Amount of videos per page depends on popularity of user/challenge/music. More popular channel gives more result per page.

For next page set of results, you need to use value from maxCursor object which you get on current page request. By default, maxCursor is set to 0 for the first page.

like you can use $userFeed=$instance->getChallengeFeed('bushit',30); where maxCursor=30 and for the next page, you get maxCursor value in that JSON result.

anaouda commented 3 years ago

thanks for your help