Skip to content

Instantly share code, notes, and snippets.

@iNawaR1
Last active April 9, 2022 14:08
Show Gist options
  • Save iNawaR1/e35d1288a3938f5637956f319388a945 to your computer and use it in GitHub Desktop.
Save iNawaR1/e35d1288a3938f5637956f319388a945 to your computer and use it in GitHub Desktop.
A free and open source tiktok user checker API. It will differentiate banned/taken and available users.
import time
import requests
import random
from colorama import Fore
s = Fore.RED
m = Fore.BLUE
a = Fore.GREEN
p = Fore.BLACK
r = Fore.CYAN
########################Free-Software#########################
# I AM NOT "REASONABLE" FOR ANY WRONG USE!! #
# The API was paid (: #
# Made with love by iNaWaR <3 #
##############################################################
print(f'{m}Please make user.txt folder to start this tool')
iNaWaR = 'user.txt'
file = open(iNaWaR, 'r')
print(f'{s}if you have telegram you can get your Available users as a message from your bot. (You can scip this part if you want)')
ID_tele=input(f"{m}[?] id Telegram : ")
token_bot=input(f"{m}[?] bot Token : ")
headers={
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'en-US,en;q=0.9',
'cache-control': 'max-age=0',
'cookie': 'tt_csrf_token=PTl7mMmlo0oJj1FDnNnowbzo; passport_csrf_token=a32e0e2c5c9303a7f9ec5bf0511932e0; passport_csrf_token_default=a32e0e2c5c9303a7f9ec5bf0511932e0; d_ticket=4ed27715899783fe9bba3c8d189a2cedc1cce; sid_guard=914e23a9848cb81072c07512a1ac99bc%7C1646752919%7C5184000%7CSat%2C+07-May-2022+15%3A21%3A59+GMT; uid_tt=32044fe8cc6b671e3c3ad23cae64f54b042eb03038845cdaa2471e822a527b45; uid_tt_ss=32044fe8cc6b671e3c3ad23cae64f54b042eb03038845cdaa2471e822a527b45; sid_tt=914e23a9848cb81072c07512a1ac99bc; sessionid=914e23a9848cb81072c07512a1ac99bc; sessionid_ss=914e23a9848cb81072c07512a1ac99bc; sid_ucp_v1=1.0.0-KDFjMzk4YTJlNzMwYzFhNDAyOWVmMDkxZDljNTlkNzk1ZTAzMmUwMTMKIAiFiLHUrYyzw2EQl-mdkQYYswsgDDCamZuMBjgEQOoHEAMaBm1hbGl2YSIgOTE0ZTIzYTk4NDhjYjgxMDcyYzA3NTEyYTFhYzk5YmM; ssid_ucp_v1=1.0.0-KDFjMzk4YTJlNzMwYzFhNDAyOWVmMDkxZDljNTlkNzk1ZTAzMmUwMTMKIAiFiLHUrYyzw2EQl-mdkQYYswsgDDCamZuMBjgEQOoHEAMaBm1hbGl2YSIgOTE0ZTIzYTk4NDhjYjgxMDcyYzA3NTEyYTFhYzk5YmM; store-idc=maliva; store-country-code=mx; tt-target-idc=useast1a; cookie-consent={%22ga%22:true%2C%22af%22:true%2C%22fbp%22:true%2C%22lip%22:true%2C%22bing%22:true%2C%22criteo%22:true%2C%22rtbhouse%22:true%2C%22version%22:%22v4%22}; cmpl_token=AgQQAPNGF-RMpbG4IsVSvp08-EST9jHff4caYMFSXw; ttwid=1%7CsKU_gNFSoYwVDSrpeoKUuZ0oeAiiGVF__XIltCz-3d8%7C1646760590%7C3a328441ed1392721e982543c0348c5b6c8034d3aec69d6d45780533da04e054; odin_tt=fc77b4b80e479fe0f9e8ec73b3f11c84a92ea1771b79d51e4069be25f6a95da2c75a4364cf61f17efbd16e341ec466b94c9f2c05966e26e4779d081a25c6ff240dd31bf8f72bdc78ac653a5c986e36c0; _abck=360D71C7A53BBE6EFC590DCCD979C1F0~-1~YAAQPUhDUJ/jJ2V/AQAAsB5ieQd/Lqaa9PiCJ24gaGDH4RB81LXeckLe/vbQjCjoE4UAeIsM3ALdq5L6Y1t2HQ7U3DhZXqIp1MeFFdezUKll+WWT8k7FN5dIAyDP+jp9Tz5+DZ1rx4wwdOu6W3f16pNyIN8+7szJ2BSPIchigJV4o/GG5aPmzuBI1CcQfvMdEbWwinxi+eGYjKAwbgVis4J0t6gWK8cXAn0Q+W9QjaC1uxzAaeqwVL2KAo74Vu0RAneB+nU0oTmTe3CosXXCLq/tXeVphtYNHl2HyLeiCzBvkJLoC7HoxcAeMdrLTJKE8azLPXsBTVxEizrps3A0yCUtJPnZPIogE59Chjhwr4k0MAyGvi/oLcxBS0J98tlRq8pGiJsQtK4F2+g=~-1~-1~-1; bm_sz=272DC523E585F879423A6D656152D8D4~YAAQPUhDUKDjJ2V/AQAAsB5ieQ96UfEGt0i6bKMvjSWgqm0oI3Vme7rVRGmEv+SkqRFzr9UMAgLO5Fzj3DXuXPJ7esekPndLoiwtt/v41vCe2qb8zoOSM3BC9gG51FEDAEdKzeUL0QcMu0rCL7ydyH1RFVilgBYUmO7WlC9KsuSlXJEkHAxsK+hP2LNSWbylJqhFsgER1Wnk03Z1TfTM+SL0In1ro/1bbfwCwFnEMEmgfkLfpHp3CqkiRS3AgTpn7G3pe/kbABk41TZXOFeemoep7A6f8b+YbH1OfU1Hyf8+fvI=~4339765~4339267; msToken=5Q5HFgAJGshCZJYf3-GuA5r9BfFWGFLAXNK7-7tgRIM39H7UBSCALSzRvoyQOx3IsTsOrmhEK7AblmrUyVJGuYhnAiO7Fjv6wUxwFGcBX75HlaPhEqPHmsBTpC2t4xH3srYvsWvc',
'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="99", "Microsoft Edge";v="99"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'none',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.36',
}
def usermaker():
uesr = input(
f"{r}Type any first letters or numbers for the users (NOTE if you want 100% random users just click Enter don't type here anything) -> : ")
ch = '1234567890qwertyuiopasdfghjklzxcvbnm._' # you can make your own users letter list (;
amount = input(f'{r}Type How many users You want -> : ')
amount = int(amount)
l2 = input(
f'{r}Type 2 if you want 4 letters users | Type 3 if you want 5 letters users | Type 4 if you want 6 letters users | If you choosed 100% random users type here how many letters you want in your users for example 4 this will generate you 4 letters users. -> :')
l2 = int(l2)
iNaWaR = input(f"{r}Type file name (user.txt)..!! =>> : ")
N1 = iNaWaR
for PESS in range(amount):
PESS = ''
for item in range(l2):
PESS = ''
for item in range(l2):
PESS += random.choice(ch)
print(uesr + PESS)
with open(N1, 'a') as x:
x.write(uesr + PESS + '\n')
else:
print(f"{m}Done!! You will find your users in -> : {N1}")
exit()
def checker():
while True:
user = file.readline().split('\n')[0]
if user == '':
break
tiktoklog = f'https://us.tiktok.com/node/share/user/@{user}/?count=30&id=1&type=5&secUid=&maxCursor=1&minCursor=0&sourceType=12&appId=1233'
rq = requests.get(tiktoklog, headers=headers)
time.sleep(2)
if '10202' in rq.text:
print(f'{a}[+] Available -->> @{user}'.format(user))
tele = (
f'https://api.telegram.org/bot{token_bot}/sendMessage?chat_id={ID_tele}&text=\n𖡃 𝚄𝚂𝙴𝚁: {user}\n\n @iNaWaR1 New Hunt ')
re = requests.post(tele)
with open('Available.txt', 'a') as x:
tl = 'Available USER --> '
x.write(tl + user + '\n')
if '10223' in rq.text:
print(f"{s}[-] User Banned -->> @{user}")
if '10221' in rq.text:
print(f"{s}[-] User Banned -->> @{user}")
if 'pageId' in rq.text:
print(f"{s}[-] User Taken -->> @{user}")
print(f"""{m}
[1] TikTok user checker (if you have a Users List)
[2] Generate users to check. [Advanced] (if you don't have Users List)
""")
choose = input(f"{a}Choose A Number: ")
if "1" in choose:
print("================================================================")
checker()
elif "2" in choose:
print("================================================================")
usermaker()
else:
print(f"{s}Your Answer Must Be ( 1 or 2 ).")
exit(iNaWaR)
#By iNaWaR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment