question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TikTok Changed How They Index TikToks

See original GitHub issue

Hello, I’ve found out that TikTok has changed the way they index their API calls. They don’t seem to utilize max & min cursors anymore. It looks like they must keep a record of your IP and they don’t seem to return duplicates.

Proof

If you open TikTok in an incognito (to prove it’s not cookies) and view a few of the TikToks then close the tab and reopen it, TikTok won’t return any TikToks that you viewed.

Proof from API:

from TikTokApi import TikTokApi
api = TikTokApi()

first_call = api.trending(count=1)
second_call = api.trending(count=1)

print("Printing comparison of both calls")
print(first_call == second_call)

This code will print out false even though it should be true.

How you can help

I’m reaching out to the community to help me investigate this change. Below I’ve listed some questions that ideally we can investigate.

What information I’d like to know

  • How long they store your IP until you can see TikToks you’ve already seen
  • If there are anyways to bypass this
  • If any endpoints are unaffected (the suggested methods shouldn’t be affected based on requests using cursors, but the ones that retrieve TikTok objects should be affected)

Consequences

Problems It’s going to cause for the library

  • If you’re running a server with multiple user requests to it, users will not see the same information (you’ll have to store a DB of queries)

Benefits For The API

  • No need to do offset calls made to the api
  • You shouldn’t see duplicates

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
darwin403commented, Jul 29, 2020

@davidteather Unfortunately, that’s not very helpful to look further.

1reaction
liamengland1commented, Jul 29, 2020

@skdcodes I don’t understand your obsession with original source. It’s a well known function in tiktok webapi. Several repos use it. Do your own research and RE if you’re unhappy with what’s available. You’re certainly not entitled to anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is Google Indexing TikTok and Instagram Videos?
Speculation began in late September 2021 that Google was working on deals to index TikTok and Instagram video content. Just as we've seen ......
Read more >
TikTok SEO: Is TikTok Going to Replace Google? - Moz
Short answer: no. TikTok is an internal search engine for TikTok content. It's dedicated to a particular area of focus and a particular...
Read more >
Google Will Index Instagram and TikTok Content? - Ignite Friday
Google's got a new deal in the works with Instagram and TikTok to be able to index their content. Learn more in this...
Read more >
Google is Developing a Search Feature that Indexes Videos ...
Google is Developing a Search Feature that Indexes Videos from TikTok&Instagram. To keep users looking for social video entertainment and are already ditching ......
Read more >
Google may soon be indexing TikTok and Instagram videos
Report: Google may soon be indexing TikTok and Instagram videos ... This may be changing soon, according to The Information.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found