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))
@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