Skip to content

Instantly share code, notes, and snippets.

@AnikHasibul
Created May 19, 2019 15:12
Show Gist options
  • Save AnikHasibul/06f20bb5e0c464be840c9964024522b9 to your computer and use it in GitHub Desktop.
Save AnikHasibul/06f20bb5e0c464be840c9964024522b9 to your computer and use it in GitHub Desktop.
Python3 script to grab a true caller entity. -.-
cat true.py
import urllib.request
import json
number = input("Phone number.\n(with country code): +")
data = urllib.request.urlopen("https://search5.truecaller.com/v2/search?q="+number+"&countryCode=&type=4&locAddr=&placement=SEARCHRESULTS,HISTORY,DETAILS&adId=&clientId=1&myNumber=lS59d72f4d1aefae62ba0c1979l_Dl7_DEj9CPstICL1dRnD&registerId=645710775").read()
parsed = json.loads(data)
print(json.dumps(parsed["data"], indent=4, sort_keys=True))
@AnikHasibul
Copy link
Author

IS it possible to process multiple numbers at once ??
By giving numbers in a text/csv file ??

Mostly no!

@AnikHasibul
Copy link
Author

do you know the link to register it ???

truecaller has been stopped the registration... But if you have enough money they can sell a key :p Contact them over email...

how did you got truecaller ID ?

I got it in an app's sourcecode which I suspected because I only gave them my phone number and they fetched my name in second... So I investigated and got the key!

@prafulbagai
Copy link

I tried your code. It says Unauthorized.

@prafulbagai
Copy link

Where can I get the token from?

@OLUWAMUYIWA
Copy link

Hey @AnikHasibul , I can't seem to find any documentation for how to access Truecaller's search API. Could you possibly point me to a resource, please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment