carcabot / tiktok-signature

Generate tiktok signature token using node
756 stars 286 forks source link

TikTok response is now a "I'm not a bot" verification method #90

Closed lu3do closed 4 years ago

lu3do commented 4 years ago

It looks like TikTok is now requiring a verification method when they suspect a request to be a bot/scrape request, because since a couple of hours ago for almost all my calls the response shows this:

{
  "code": "10000",
  "from": "",
  "type": "verify",
  "version": "",
  "region": "va",
  "subtype": "slide",
  "detail": "C17DCzNxZ5kmP4pGsL8u8*KOk5hT0*********",
  "verify_event": "",
  "fp": "verify_kea3g2pa_PtWfRyEL_********"
}

And I haven't really changed anything on my side, I'm including the user-agent, the cookies etc in the call.

lu3do commented 4 years ago

Variables used for the call:

{
  "signature": "_02B4Z6wo00f01E3fL4wAAIBBH93tAjt8L9xNzisAAEw351",
  "verify": "verify_a27fad55ba581863c69faac9e1a54723",
  "url": "https://m.tiktok.com/api/music/detail/?musicId=6844975774663968770&language=en",
  "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1",
  "signed_url": "https://m.tiktok.com/api/music/detail/?musicId=6844975774663968770&language=en&_signature=_02B4Z6wo00f01E3fL4wAAIBBH93tAjt8L9xNzisAAEw351&verifyFp=verify_a27fad55ba581863c69faac9e1a54723",
  "cookies": "MONITOR_WEB_ID=5e5fca6a-9924-4e85-a41a-2615b4f4c4dd; s_v_web_id=verify_a27fad55ba581863c69faac9e1a54723; _ga=GA1.2.257040070.1598368668; _gid=GA1.2.1098048692.1598368668"
}
acrogenesis commented 4 years ago

There's some discussion around this issue in #86 maybe try changing the user agent to an apple mac user agent

lu3do commented 4 years ago

I changed the user-agent, and that seems to work.