Welcome to TruecallerJS! This is a library for retrieving phone number details using the Truecaller API. It provides a simple and convenient way to access information about phone numbers in your Node.js, JavaScript, and TypeScript projects.
TruecallerJS is built to simplify the process of fetching phone number details. With this library, you can easily integrate Truecaller functionality into your Node.js, JavaScript, and TypeScript applications. It abstracts the complexities of interacting with the Truecaller API and provides a streamlined interface for fetching and processing phone number information.
Phone Number Lookup: Retrieve detailed information about a phone number, including the owner's name, location, and more.
Support for Node.js, JavaScript, and TypeScript: TruecallerJS can be used in Node.js projects, as well as in JavaScript and TypeScript applications.
Simple and Lightweight: TruecallerJS is designed to be easy to use and lightweight.
You can install TruecallerJS using npm:
npm install truecallerjs
To use TruecallerJS from the command line
npm install -g truecallerjs
Note: If you are using a version of
truecallerjsthat is older than 1.1.2, we recommend referring to the truecallerjs-v1.1.2 documentation for instructions. Note: If you are usingtruecallerjsversion from 1.1.3 to 1.1.5, please refer to the truecallerjs-v1.1.5 documentation for instructions.
To use TruecallerJS from the command line, you can run the truecallerjs command followed by the desired options and arguments.
Here are some examples of the available options:
truecallerjs login: Use this command to log in to your Truecaller account.
truecallerjs -s [number]: Use this command to search for a phone number and retrieve the caller name and related information.
truecallerjs --bulksearch, --bs command is used to performing bulk number searches using the Truecaller service. It allows you to search for multiple phone numbers at once, making it convenient for processing large sets of phone numbers in a single request.
truecallerjs --bulksearch, --bs: Use this command to perform a bulk number search.
Additional options include --raw, --name, --email, --json, --xml, --yaml, --text, --nc, --installationid, --verbose, and --help.
For example:
~$ truecallerjs -s +9199123456789 --json { ... "name":"Sumith Emmadi" ... } ~$ truecallerjs -s +9199123456789 --name Name : Sumith Emmadi
Example for bulk search
truecallerjs --bulksearch <phone_number_1>,<phone_number_2>,<phone_number_3>,...,<phone_number_n>
Replace <phone_number_1>, <phone_number_2>, ..., <phone_number_n> with the actual phone numbers you want to search. Separate each phone number with a comma.
~$ truecallerjs --bs 9912345678,+14051234567,+919987654321
Note : If the country code is not specified for a phone number, it will default to using your own country code.
Please note the following limitations when using the --bulksearch option:
Maximum Number of Phone Numbers: The tool supports searching 30 or fewer phone numbers at once in a single request. If you exceed this limit, you may need to split your input into multiple requests.
Formatting: Ensure that the phone numbers are correctly formatted and do not contain any additional characters or spaces. The tool expects the phone numbers to be provided in a comma-separated format.
To use the project, start by installing the truecallerjs package via npm:
npm install truecallerjs
Here's a basic example of how to perform a normal search for a phone number:
import truecallerjs, { SearchData, Format } from "truecallerjs"; async function performTruecallerSearch(): Promise<void> { const searchData: SearchData = { number: "9912345678", countryCode: "IN", installationId: "a1k07--Vgdfyvv_rftf5uuudhuhnkljyvvtfftjuhbuijbhug", }; try { const response: Format = await truecallerjs.search(searchData); console.log(response.json()); // Additional response methods: // console.log(response.xml()); // console.log(response.yaml()); // console.log(response.text()); // Example of available data from the response: console.log(response.getName()); // "Sumith Emmadi" console.log(response.getAlternateName()); // "sumith" console.log(response.getAddresses()); // {....} console.log(response.getEmailId()); // example@domain.com console.log(response.getCountryDetails()); // {...} } catch (error) { console.error("Error occurred:", error); } } performTruecallerSearch();
In the above example, the truecallerjs package is used to search for a phone number. The search_data object contains the necessary parameters, including the number, country code, and installation ID. The response from the truecallerjs.search() function provides various methods to access the returned data.
Note : Make sure to log in using the
truecallerjs logincommand and obtain your installation ID using thetruecallerjs -icommand.
The truecallerjs package also supports bulk search on multiple phone numbers:
import truecallerjs, { BulkSearchData, Format } from "truecallerjs"; async function performBulkTruecallerSearch(): Promise<void> { const countryCode: string = "IN"; const installationId: string = "a1k07--Vgdfyvv_rftf5uuudhuhnkljyvvtfftjuhbuijbhug"; const phoneNumbers: string = "+9912345678,+14051234567,+919987654321"; try { const response: BulkSearchData = await truecallerjs.bulkSearch(phoneNumbers, countryCode, installationId); console.log(response); } catch (error) { console.error("Error occurred:", error); } } performBulkTruecallerSearch();
In this example, the truecallerjs.bulkSearch() function is used to perform bulk searches on multiple phone numbers. The phoneNumbers parameter should contain the phone numbers separated by commas. The countryCode and installationId parameters are used to specify the default country code and installation ID, respectively.
Note : Make sure to log in using the
truecallerjs logincommand and obtain your installation ID using thetruecallerjs -icommand.
For more details and additional functionalities, please refer to the documentation, including the process for logging in and obtaining the installation ID.
The truecallerjs tool is not an official Truecaller product. It is a custom script developed by Sumith Emmadi, and its functionality is dependent on the Truecaller service. Please use this tool responsibly and in compliance with the terms of service of Truecaller.
For more information and support, please contact Sumith Emmadi at sumithemmadi244@gmail.com .
Contributions to the truecallerjs are not only welcome but highly encouraged!
git clone https://github.com/sumithemmadi/truecallerjs.gitPlease note that all contributions should align with the spirit of the repository and be suitable for all audiences. Offensive or inappropriate content will not be accepted.
TruecallerJS is open source and licensed under the MIT License. See the LICENSE file for more information.
If you find my project helpful or inspiring, consider supporting me through GitHub Sponsors. Your sponsorship helps me dedicate more time and effort to open source development and creating impactful projects.
<a href='https://ko-fi.com/W7W4OZNLF' target='_blank'><img height='40' style='border:0px;height:40px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
<a href="https://www.buymeacoffee.com/sumithemmadi"> <img align="left" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="40" width="180" alt="sumithemmadi" /></a><br><br>
Thank you for choosing TruecallerJS! I hope it helps you retrieve phone number details efficiently.
Repository: https://github.com/sumithemmadi/truecallerjs.git

一站式AI短剧创作平台
Pixmax专注打造下一代“ AI 视觉创作引擎”,整合行业顶尖 AI 大模型、工工业级精准控制及企业级协同管理功能,是全方位的 AI 内容创作平台。


字节跳动旗下 AI 智能助手
字节跳动旗下 AI 智能助手


GPT充值
支持 ChatGPT Plus / Pro 充值服务,支付便捷,自动发货,售后可查。


AI 图片生成平台
GPT Image 2 是面向用户的 AI 图片生成平台,支持文生图、图生图及多模型创意工作流。


你的AI Agent团队
Vecbase 是专为 AI 团队打造的智能工作空间,将数据管理、模型协作与知识沉淀整合于一处。算法、产品与业务在同一平台无缝协同,让从数据到 AI 应用的落地更快一步。


全球首个AI音乐社区
音述AI是全球首个AI音乐社区,致力让每个人都能用音乐表达自我。音述AI提供零门槛AI创作工具,独创GETI法则 帮助用户精准定义音乐风格,AI润色功能支持自动优化作品质感。音述AI支持交流讨论、二次创作与价值变现。针对中文用户的语言习惯与文化背景进行专门优化,支持国风融合、C-pop等本土音乐标签,让技术更好地承载人文表达。


阿里Qoder团队推出的桌面端AI智能体
QoderWork 是阿里推出的本地优先桌面 AI 智能体,适配 macOS14+/Windows10+,以自然语言交互实现文件管理、数据分析、AI 视觉生成、浏览器自动化等办公任务,自主拆解执行复杂工作流,数据本地运行零上传,技能市场可无限扩展,是高效的 Agentic 生产力办公助手。


一站式搞定所有学习需求
不再被海量信息淹没,开始真正理解知识。Lynote 可摘要 YouTube 视频、PDF、文章等内容。即时创建笔记,检测 AI 内容并下载资料,将您的学习效率提升 10 倍。


为AI短剧协作而生
专为AI短剧协作而生的AniShort正式发布,深度重构AI短剧全流程生产模式,整合创意策划、制作执行、实时协作、在线审片、资产复用等全链路功能,独创无限画布、双轨并行工业化工作流与Ani智能体助手,集成多款主流AI大模型,破解素材零散、版本混乱、沟通低效等行业痛点,助力3人团队效率提升800%,打造标准化、可追溯的AI短剧量产体系,是AI短剧团队协同创作、提升制作效率的核心工具。


能听懂你表达的视频模型
Seedance two是基于seedance2.0的中国大模型,支持图像、视频、音频、文本四种模态输入,表达方式更丰富,生成也更可控。
最新AI工具、AI资讯
独家AI资源、AI项目落地

微信扫一扫关注公众号