Truecaller API
Introducing Truecaller API ( UnOfficial ). In this Tutorial, you will see How to use PHPHive’s UnOfficial Truecaller API.
Get all Details like Name, Internet Address ( including Email, Facebook & Twitter ), Spam Score, Spammer Type & even Profile Picture.
! DISCONTINUED !
Introducing Truecaller API
Q : How it Actually Works?
Ans : Our API just emulates the process one would encounter if using a web-browser & retrieve the desired information.
Q : How can i use it?
Ans : You Just need to Fire a Simple HTTP Get Request on our API Url with Your PHPHive Truecaller API Token.
API Token can be Obtained from https://tcapi.phphive.info/console/ For Free.
Note : All Countries Supported 🙂
More Snippets Available @ https://github.com/punneetmehta/Truecaller-UnOfficial-API
PHP Snippet for Retrieving Basic Details
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<?PHP $no=""; $apiToken=""; // PHPHive Truecaller API Token, Obtain it from https://tcapi.phphive.info/console/ $uri = 'https://tcapi.phphive.info/'.$apiToken.'/search/'.$no; $ch = curl_init($uri); curl_setopt_array($ch, array( CURLOPT_HTTPHEADER => array('X-User: PHPHive'), CURLOPT_RETURNTRANSFER =>true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_VERBOSE => 1 )); $response = curl_exec($ch); curl_close($ch); echo $response; ?> |
Sample Output :
1 |
{ "number": "9999999999", "name": "Salman Khan", "gender": null, "spamScore": 3372, "spamType": "TOP_SPAMMER", "address": null, "email": null, "facebook": null, "twitter": null, "image": null, "tags": "Finance, Insurance & Legal,Bank," } |
Javascript Snippet for Retrieving Basic Details
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
var no="9999999999"; var apiToken = ""; // PHPHive Truecaller API Token, obtain it from https://tcapi.phphive.info/console/ $.ajax({ url: "https://tcapi.phphive.info/"+apiToken+"/search/"+no, type: "GET", crossDomain:true, contentType: 'application/x-www-form-urlencoded', success: function(data) { // data -> Response from PHPHive Truecaller API alert(data); }, error: function(jqXHR, textStatus, errorThrown) { alert("You can not send Cross Domain AJAX requests: " + errorThrown); } }); |
Q : Is There any Daily Limit for Using this API ?
Ans : No! There’s No Daily Limit. But Spamming is Obviously Not allowed. We are keeping records of IP’s, if we find someone Spamming our Service then that IP will be Banned.
Need Unlimited Access ?
Message us on Facebook OR Contact us Using https://www.phphive.info/contact/
Enjoy 🙂
Thank you bro , Now I can check who contacted me without sharing my contact …
@Puneet Mehta Thanks bro, using this i can get the info about the person really super work, but there is missing one thing all details are displayed accept the Address e.g. (Delhi, India) can make this possible please…
Added 🙂
man i was trying to achieve that in java script can you please help me i will post my code 🙂 just ask for it
Javascript Snippet Added ! 🙂
Refer : https://www.phphive.info/324/truecaller-api/
thanks my friend working greate now
but when are u going to add more countries ?
Global Search Supported !
Now Search Over 2 Billion Phone Numbers 🙂
Enjoy 🙂
Hey Puneet,
Wanted to ask when you fire the query from your end, do you set the cookie and set the required tcToken and tcSession variable? or there is another way of doing it?
Kindly reply.
(From one developer to another)
Replied on Email !
How to search for different countries ? Seems that adding international prefix doesn’t work…
It returns : Invalid Mobile Number
Thanks
Invalid Mobile Number, ERROR Fixed! Try Again…
Thank you !!
now it works…
How To Use This? I don’t Know Programming so Can You Please Send a Zip File. Which i Will Host on Free Hosting Directly
can we talk on fb
Contact me @ https://www.facebook.com/punneetmehta
still giving me invalid mobile number for international numbers any idea?
Dont use 0,+ or Spaces in Numbers!
hi wanna talk to you
Contact me @ https://www.facebook.com/punneetmehta
Awesome, i have used PHP Snippet in my website but later on i discovered that there is limit of one request per minute, if one user avail this limit then other 100s users do wait, any solution ?
Use Javascript Snippet.
Thanks. Is tcapi.phphive.info just scrapping Truecaller on each request? Are you planning on releasing that code as well?
Yes ! it just scrap’s the data from Truecaller on each Request.
and i am not going to release the SOURCE !
Np. Can you give any advice on how you’re renewing the auth cookie? From what I can tell Truecaller sets the expiry to 1hr.
Set a Cronjob to Login to Truecaller with Google ( or whatever Service you are Using ) at Every 55 Minutes & renew the Token.
Further, store the token in a File or a Database & Use it 🙂
i m running your truecaller php script i got this result every search
{ “number”: “9998200824”, “name”: “Name Available”, “spamScore”: null, “spamType”: “”, “address”: null, “email”: null, “facebook”: null, “twitter”: null, “image”: null }
Bugs Fixed ! Truecaller API Working Now 🙂
Hi Puneet,
still works the API ? I don’t know if it’s my problem, but it always return nulls…
Thank you.
Bugs Fixed ! Truecaller API Working Now 🙂
thanks dude
I am getting empty response, when calling the api.
Is it still working?
Tried both your php and python code.
Server Timeout Issues Fixed ! Try Again 🙂
hi, thank you for the API its a wonder, unfortunately right now it’s time outs. anything i can help you with to fix it?
Already Fixed !
Hi man, tnx for the great job,
please note that right now the Truecaller API is down
Truecaller API is Up & Working Now!
Try Again 🙂
I see it. Thx man. You may want to consider paid service. I would very much like to have a more stable version. And pay for it accordingly.
Contact Me using https://www.phphive.info/contact/
Hello,
Am trying to search an international number e.g for kenya ie
0702890401
or
+254702890401 (with country code specific)
but both return null.Kindly advice on the format.Thanks in advance
Fixed !
Try Again 🙂
It’s awesome!
Thank you.
There seems to be a daily limit to a user. After 200 hits, is the usage refreshed after 24 hours?
Yes !