Searching
truecallerjs -s [number]
: Use this command to search for a phone number and retrieve the caller name and related information.
Searching a number
~$ truecallerjs -s [number]
data :
id : jsiebejebbeebhee/dnss00w==
name : Sumith Emmadi
imId : 1g7rm006b356o
gender : UNKNOWN
image : https://storage.googleapis.com/tc-images-noneu/myview/1/jdvdidbdhvdjdvddbkdbeiebeieb
score : 0.9
access : PUBLIC
enhanced : true
phones :
e164Format : +000000000000
numberType : MOBILE
nationalFormat : +000000000000
dialingCode : 91
countryCode : IN
carrier : Airtel
type : openPhone
addresses :
city : Andhra Pradesh
countryCode : IN
timeZone : +05:30
type : address
internetAddresses :
id : email@gmail.com
service : email
caption : Sumith Emmadi
type : internetAddress
badges : verified, user
cacheTtl :
sources : []
searchWarnings : []
surveys : []
provider : ss-nu
stats :
sourceStats : []
To print only name.
~$ truecallerjs -s [number] --name
Name : Sumith Emmadi
Aternate name : sumithemmadi ## print's alternate name if exist
Other command's
~$ truecallerjs -s [number] -r --name
Sumith Emmadi
Output Formats
- 1 . JSON
- 2 . XML
- 3 . YAML
- 4 . TEXT
~$ truecallerjs -s [number] --xml
- Output without colouring
~$ truecallerjs -s [number] --nc
To get only JSON output
~$ truecallerjs -s [number] --json
~$ truecallerjs -s [number] --json
- Prints data without color
~$ truecallerjs -s [number] --json --nc
To get XML output
~$ truecallerjs -s [number] --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<root>
<data>
<id>jsiebejebbeebhee/dnss00w==</id>
<name>Sumith Emmadi</name>
<imId>1g7rm006b356o</imId>
<gender>UNKNOWN</gender>
<image>https://storage.googleapis.com/tc-images-noneu/myview/1/jdvdidbdhvdjdvddbkdbeiebeieb</image>
<score>0.9</score>
<access>PUBLIC</access>
<enhanced>true</enhanced>
<phones>
<e164Format>+000000000000</e164Format>
<numberType>MOBILE</numberType>
<nationalFormat>+000000000000</nationalFormat>
<dialingCode>91</dialingCode>
<countryCode>IN</countryCode>
<carrier>Airtel</carrier>
<type>openPhone</type>
</phones>
<addresses>
<city>Andhra Pradesh</city>
<countryCode>IN</countryCode>
<timeZone>+05:30</timeZone>
<type>address</type>
</addresses>
<internetAddresses>
<id>email@gmail.com</id>
<service>email</service>
<caption>Sumith Emmadi</caption>
<type>internetAddress</type>
</internetAddresses>
<badges>verified</badges>
<badges>user</badges>
<cacheTtl>
</cacheTtl>
<sources/>
<searchWarnings/>
<surveys/>
</data>
<provider>ss-nu</provider>
<stats>
<sourceStats/>
</stats>
</root>
To get YAML output
~$ truecallerjs -s [number] --yaml
data:
-
id: "jsiebejebbeebhee/dnss00w=="
name: "Sumith Emmadi"
imId: 1g7rm006b356o
gender: UNKNOWN
image: "https://storage.googleapis.com/tc-images-noneu/myview/1/jdvdidbdhvdjdvddbkdbeiebeieb"
score: 0.9
access: PUBLIC
enhanced: true
phones:
-
e164Format: "+000000000000"
numberType: MOBILE
nationalFormat: "+000000000000"
dialingCode: 91
countryCode: IN
carrier: "Airtel"
type: openPhone
addresses:
-
city: "Andhra Pradesh"
countryCode: IN
timeZone: "+05:30"
type: address
internetAddresses:
-
id: "email@gmail.com"
service: email
caption: "Sumith Emmadi"
type: internetAddress
badges:
-
verified
-
user
tags:
nameFeedback:
nameSource: 1
nameElectionAlgo: ""
cacheTtl: ""
sources:
searchWarnings:
surveys:
provider: "ss-nu"
stats:
sourceStats:
To get output as a plain text
~$ truecallerjs -s [number] --text
data :
id : jsiebejebbeebhee/dnss00w==
name : Sumith Emmadi
imId : 1g7rm006b356o
gender : UNKNOWN
image : https://storage.googleapis.com/tc-images-noneu/myview/1/jdvdidbdhvdjdvddbkdbeiebeieb
score : 0.9
access : PUBLIC
enhanced : true
phones :
e164Format : +000000000000
numberType : MOBILE
nationalFormat : +000000000000
dialingCode : 91
countryCode : IN
carrier : Airtel
type : openPhone
addresses :
city : Andhra Pradesh
countryCode : IN
timeZone : +05:30
type : address
internetAddresses :
id : email@gmail.com
service : email
caption : Sumith Emmadi
type : internetAddress
badges : verified, user
cacheTtl :
sources : []
searchWarnings : []
surveys : []
provider : ss-nu
stats :
sourceStats : []