Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New "creator" API for user post extraction #62

Open
antiops opened this issue Jul 26, 2023 · 1 comment
Open

New "creator" API for user post extraction #62

antiops opened this issue Jul 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@antiops
Copy link

antiops commented Jul 26, 2023

There is a new API that was added that currently doesn't require any signatures to get user posts.

It was recently implemented and tested in the TTUser yt-dlp plugin (Implementation: tt_user.py) with some extra notes available in Issue 1

The bare minimum parameters are:

  • secUid
  • count can be max 15
  • cursor with current time in milis will return the most recent posts
    • Follow up cursor uses last post in the item list
    • Cursor 0 returns the oldest posts
  • verifyFp can be anything as long as it starts with verify_
  • aid & type dont change

Examples:

Latest: https://www.tiktok.com/api/creator/item_list/?aid=1988&type=1&count=15&cursor=1689909282235&secUid=MS4wLjABAAAAys5jIEEWJXF-bCt_11wTP363Xvnma4SAex4cTxY-EDrUe2CPXUr1rh-tZtqa5Src&verifyFp=verify_

Next Page: https://www.tiktok.com/api/creator/item_list/?aid=1988&type=1&count=15&cursor=1677186594000&secUid=MS4wLjABAAAAys5jIEEWJXF-bCt_11wTP363Xvnma4SAex4cTxY-EDrUe2CPXUr1rh-tZtqa5Src&verifyFp=verify_

@antiops antiops added the enhancement New feature or request label Jul 26, 2023
@Russell-Newton
Copy link
Owner

TikTokPy currently uses the /post/item_list/ endpoint, which seems to be incredibly similar to this endpoint, just with the extra need for an X-Bogus parameter (it also lets me grab 30 at a time). I'll keep an eye out to see if the endpoint I'm currently using stops working, but at the moment I'm not sure it's worth switching over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants