sumithemmadi / truecallerjs Goto Github PK
View Code? Open in Web Editor NEWTruecallerJS: This is a library for retrieving phone number details using the Truecaller API.
Home Page: http://truecaller.js.org/
License: MIT License
TruecallerJS: This is a library for retrieving phone number details using the Truecaller API.
Home Page: http://truecaller.js.org/
License: MIT License
back up found
Hi,
I success to login once and i get the "Backup Found".
I read that i need to remove the connect to google and disable backup.
I did all there steps and i tried again..
But now i get the error:
Sending OTP to +972502118551.
You have exceeded the limit of verification attempts.
Please try again after some time.
What should i do?
(I tried to remove the app in the android phone and install again. But the error is the same)
It's don't work on my termux how can I do regester on Truecaller
As the title says I'm unable to login.... by using OTP I get this error:
data: {
status: 45101,
message: 'Unavailable for legal reasons',
domain: 'eu'
}
By using alternative method with .json file on number lookup I get "ERROR : Request failed with status code 451"
I think it has something to do with Truecaller's EU tokens...because I logged in succesful by using Asian phone number token of a friend. but on italian phone number lookup the result is:
data :
id : 4hVlep08gyBufaUI0hhPFw==
access : PUBLIC
enhanced : true
phones :
e164Format : +39320XXXXXXX
numberType : MOBILE
nationalFormat : 320 XXX XXXX
dialingCode : 39
countryCode : IT
carrier : Wind Tre S.p.A.
type : openPhone
addresses :
countryCode : IT
type : address
internetAddresses : []
badges : []
tags : []
cacheTtl : 86400000
sources : []
searchWarnings : []
surveys :
id : 100
frequency : 3600
passthroughData : eyAiMyI6ICIzOTMyMDk3MzQ4NTYiIH0=
perNumberCooldown : 7890000
id : b6588ff4-47cb-46ce-8b11-015199c1f729
frequency : 3600
passthroughData : eyAiMyI6ICIzOTMyMDk3MzQ4NTYiIH0=
perNumberCooldown : 7890000
commentsStats :
showComments : false
ns : 100
provider : ss-nu
stats :
sourceStats : []
I get just carrier info, looks like the "data" field containing the name is missing...
Today i am facing new error
{"status":42601,"message":"Client must be upgraded"}
It was working fine till 8PM today
Hello .. I would like to thank you for the effort made in this application..
I'm facing a problem that when I search for a number I get this Error , Also when I review my installation ID it shows "Undefined"
Note : I have a premium(Paid) version of truecaller
I tried to run the following command truecallerjs login
in order to get the OTP code, but I'm receiving a phone call verification each time instead of an OTP code.
I'm using a phone number inside Egypt.
UPDATE: I tried older versions (1.1.2 & 1.1.5) and had the same issue, even though login with the JSON file didn't work, it throws an exception, I think because the installation id is no longer exist in the JSON file.
Sir I want to know to generate installation ID with GUI tool , mean hit link By POST Request and send OTP than verify and get My installation id.
can you teach me how can achive that .
When We hit That API than we get this Response:
data: { status: 40001, message: 'Invalid body format' }
I have requested Like This :
method: 'post', url: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp', data: '{"countryCode":142,"dialingCode":356,"installationDetails":{"app":{"buildVersion":7,"majorVersion":12,"minorVersion":7,"store":"GOOGLE_PLAY"},"device":{"deviceId":"uqss8ajpzw1nf20z","language":"en","manufacturer":"Realme","model":"Redmi 9A","osName":"Android","osVersion":"10","mobileServices":["GMS"]},"language":"en"},"phoneNumber":917000000002,"region":"region-2","sequenceNo":2}' },
Keep getting this json response when searching for a number:
{
"responseStatus": "error",
"errorResp": "Request failed with status code 401",
"data": "null"
}
I am working on Android Termux, and it was working properly one time, but suddenly when I tried after three days to login again. And when I tried to enter my otp, the message was "backup found". So how to take backup in termux for truecallerjs.
And by the way, truecallerjs is an amazing package, which I found during learning duration, and it was also useful before when there was not having any issue with me...
Thank you ! Have a nice day there...
I have something error when the otp call come
The call hung up fast before say any word
Maybe bcz my number start with +20?
please add a feacher that we can search phone numbers using name
When I request an OTP, he calls me by phone and does not send the code
Getting ERROR : Back up found
when trying to login via OTP
[nodemon] restarting due to changes...
[nodemon] starting node truecaller.js
node:internal/errors:490
ErrorCaptureStackTrace(err);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\DELL\Desktop\New folder\md\node_modules\truecallerjs\src\index' imported from C:\Users\DELL\Desktop\New folder\md\node_modules\truecallerjs\index.js
at new NodeError (node:internal/errors:399:5)
at finalizeResolution (node:internal/modules/esm/resolve:326:11)
at moduleResolve (node:internal/modules/esm/resolve:945:10)
at defaultResolve (node:internal/modules/esm/resolve:1153:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v18.15.0
[nodemon] app crashed - waiting for file changes before starting...
getting this error. even i installed package correctly
and this is the code
import truecallerjs from 'truecallerjs';
console.log('searching')
const phoneNumber = '+918080000000';
truecallerjs.search(phoneNumber)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
console.log("done")
$ truecallerjs -s +9199123456789 --json
{
"message": "Request failed with status code 426",
"name": "AxiosError",
"stack": "AxiosError: Request failed with status code 426\n at settle (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/settle.js:19:12)\n at Unzip.handleStreamEnd (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:572:11)\n at Unzip.emit (node:events:523:35)\n at endReadableNT (node:internal/streams/readable:1367:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": "http",
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json; charset=UTF-8",
"accept-encoding": "gzip",
"user-agent": "Truecaller/11.75.5 (Android;10)",
"Authorization": "Bearer XXX"
},
"params": {
"q": "99123456789",
"countryCode": "IN",
"type": 4,
"locAddr": "",
"placement": "SEARCHRESULTS,HISTORY,DETAILS",
"encoding": "json"
},
"method": "get",
"url": "https://search5-noneu.truecaller.com/v2/search"
},
"code": "ERR_BAD_REQUEST",
"status": 426
}
Can you tell what is the exact limit per Installation ID?
i have tried in many ways but true-caller is restricted my installation id for less than 100 numbers
Could you please suggest me how to achieve minimum 10000 numbers per day in any manner
Hello there i wanted to enquire if there are rate limits per a logged in account ?
I don't know what happened yesterday it was fine now there's this error:
message : Request failed with status code 426
name : AxiosError
stack : AxiosError: Request failed with status code 426
at settle (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/settle.js:19:12)
at Unzip.handleStreamEnd (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:570:11)
at Unzip.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1376:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
config :
transitional :
silentJSONParsing : true
forcedJSONParsing : true
clarifyTimeoutError : false
adapter : xhr, http
transformRequest : null
transformResponse : null
timeout : 0
xsrfCookieName : XSRF-TOKEN
xsrfHeaderName : X-XSRF-TOKEN
maxContentLength : -1
maxBodyLength : -1
env : {}
headers :
Accept : application/json, text/plain, */*
content-type : application/json; charset=UTF-8
accept-encoding : gzip
user-agent : Truecaller/11.75.5 (Android;10)
params :
locAddr :
placement : SEARCHRESULTS,HISTORY,DETAILS
encoding : json
method : get
url : https://search5-noneu.truecaller.com/v2/search
code : ERR_BAD_REQUEST
status : 426
sir i want to generate otp and process for installation id through my website how to do that
can you provide me api and any other information with code.
Hi, Is there any limit from truecaller for looking a mobile number details via this package using node on a single installation id?
Hey I am getting the following error
{
"responseStatus": "error",
"errorResp": "Request failed with status code 429",
"data": "null"
}
HTTP Error: 429
When I tried to login with file
$ truecallerjs login ./my-truecaller-data-1671312322082.json
I receive the error:
TypeError: Cannot read properties of undefined (reading 'installations')
at start_truecallerjs (/usr/lib/node_modules/truecallerjs/bin/index.js:425:42)
at Object.<anonymous> (/usr/lib/node_modules/truecallerjs/bin/index.js:612:1)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47
When I tried otp method, I have same problem with issue n7
After 50 requests it is show error too many requests
The tool is not working it's displaying an error failed with status code 401
i am using truecallerjs version 2.2.0 in both windows and linux
in windows it works fine but in linux i am getting this error
TypeError: truecallerjs.searchNumber is not a function
Hello,
We used to be able to input a JSON file from Android app to login. That functionality now appears to be gone.
Instead, we try to use a phone number, but it is rejected, giving a very long error stack:
Enter your phone number : +1XXXXXXXXXX (US phone number)
file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/settle.js:19
reject(new AxiosError(
^
AxiosError: Request failed with status code 400
at settle (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/settle.js:19:12)
at Unzip.handleStreamEnd (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:570:11)
at Unzip.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1376:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ERR_BAD_REQUEST',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
...
_currentUrl: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, */*' ],
'content-type': [ 'Content-Type', 'application/json; charset=UTF-8' ],
'accept-encoding': [ 'accept-encoding', 'gzip' ],
'user-agent': [ 'user-agent', 'Truecaller/11.75.5 (Android;10)' ],
clientsecret: [ 'clientsecret', 'lvc22mp3l1sfv6ujg83rd17btt' ],
'content-length': [ 'Content-Length', '380' ],
host: [ 'Host', 'account-asia-south1.truecaller.com' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: { status: 40003, message: 'Invalid phone number' }
Any idea why this may be? Android app login still works.
chaturxxxx@chaturxxxx-Inspiron-5567:~/truecallerjs$ npm install truecallerjs
up to date, audited 464 packages in 2s
71 packages are looking for funding
run npm fund
for details
cant login to my truecaller account & i cant find my installation id in the json file thats include my account data
Need documentation For Login & get installation id
like this
const truecallerjs = require('truecallerjs');
var searchData = {
number: "[PHONE_NUMBER]",
countryCode: "[COUNTRY_CODE]",
installationId: "[INSTALLATION_ID]"
}
var sn = truecallerjs.searchNumber(searchData);
sn.then(function(response) {
console.log(response)
});
var sn = truecallerjs.searchNumber(searchData);
^
TypeError: truecallerjs.searchNumber is not a function
United Kingdom Number Name Not Show
Like truecallerjs -s 4475985436xx --name
output Unknown
Bro there is an error
When i am using this command
truecallerjs -s +91********
message : Request failed with status code 426
name : AxiosError
stack : AxiosError: Request failed with status code 426
at settle (file:///data/data/com.termux/files/usr/lib/node_modules/truecallerjs/node_modules/axios/lib/core/settle.js:19:12)
at Unzip.handleStreamEnd (file:///data/data/com.termux/files/usr/lib/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:572:11)
at Unzip.emit (node:events:523:35)
at endReadableNT (node:internal/streams/readable:1367:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
config :
transitional :
silentJSONParsing : true
forcedJSONParsing : true
clarifyTimeoutError : false
adapter : http
transformRequest : null
transformResponse : null
timeout : 0
xsrfCookieName : XSRF-TOKEN
xsrfHeaderName : X-XSRF-TOKEN
maxContentLength : -1
maxBodyLength : -1
env : {}
headers :
Accept : application/json, text/plain, /
Content-Type : application/json; charset=UTF-8
accept-encoding : gzip
user-agent : Truecaller/11.75.5 (Android;10)
Authorization : Bearer a1i0v--i8kwv0-CV5IhmESSnwZF68UUwCB7g4TIrKToHzesVErv36k1c-6ykaFOG
params :
q : *********
countryCode : IN
type : 4
locAddr :
placement : SEARCHRESULTS,HISTORY,DETAILS
encoding : json
method : get
url : https://search5-noneu.truecaller.com/v2/search
code : ERR_BAD_REQUEST
status : 426
After entering the verification code am receiving this message: Secret token pending and an error message; Request failed with status code 401. Please assist
when I put my number it appear the following:
file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/AxiosError.js:89
AxiosError.call(axiosError, error.message, code, config, request, response);
^
AxiosError: read ECONNRESET
at AxiosError.from (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/core/AxiosError.js:89:14)
at RedirectableRequest.handleRequestError (file:///usr/local/lib/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:591:25)
at RedirectableRequest.emit (node:events:513:28)
at eventHandlers. (/usr/local/lib/node_modules/truecallerjs/node_modules/follow-redirects/index.js:14:24)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:496:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
Node.js v18.13.0
when i use command for example:
truecallerjs -s 527607844 -n
or
truecallerjs -s 527607844
or even
truecallerpy -s 527607844
after 47 tries its return
Cannot read properties of undefined (reading '0'). or Expecting value: line 1 column 1 (char 0).
i think that the problem from truecaller server which had a limit for phone number lookup, can you help to exceed the limit i search for truecaller api every where but the have nothing for js or python im looking to pay per search ...
All of truecallerjs.search() requests returns with error "AxiosError: Request failed with status code 426" and data: { status: 42601, message: 'Client must be upgraded' }
{
"responseStatus": "error",
"errorResp": "Request failed with status code 426",
"data": "null"
}
"I have also tried logging in again but showing same error"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.