Get Info of Phone Number using Python With Source Code

Hello Curious Coders,
In this project we are going to work on another python predefined library named “phonenumbers” which helps us to extract the information of a phone number like carrier(service provider name) , region it belongs to etc,.Let’s get into it…
Source Code :
Get Discount on Top Educational Courses
import phonenumbers
from phonenumbers import carrier, geocoder, timezone
mobileNo=input("Enter Phone number with country code(+xx xxxxxxxxx):")
mobileNo=phonenumbers.parse(mobileNo)
if phonenumbers.is_valid_number(mobileNo):
print('Phone Number belongs to region :',timezone.time_zones_for_number(mobileNo))
print('Service Provider : ',carrier.name_for_number(mobileNo,"en"))
print('Phone number belongs to country : ',geocoder.description_for_number(mobileNo,"en"))
else:
print("Please enter valid mobile number")
Output :

Code Explanation:
- First we installed phonenumbers package in our local system.
- Next we import installed package
- Later we have taken input as mobile number from user and parsed throug it.
- Then we checked whether the mobile number is valid or not. If valid we extracted information about it and displayed on the console.
Find More Projects
MathGenius Pro – AI-Powered Math Solver Using Python Introduction: From simple arithmetic to more complicated college-level subjects like integration, differentiation, algebra, matrices, …
CipherMaze: The Ultimate Code Cracking Quest Game Using Python Introduction: You can make CipherMaze, a fun and brain-boosting puzzle game, with Python …
Warp Perspective Using Open CV Python Introduction: In this article, we are going to see how to Create a Warp Perspective System …
Custom AI Story Generator With Emotion Control Using Python Introduction: With the help of this AI-powered story generator, users can compose stories …
AI Powered PDF Summarizer Using Python Introduction: AI-Powered PDF Summarizer is a tool that extracts and summarizes research papers from ArXiv PDFs using Ollama (Gemma 3 LLM). The …
AI Based Career Path Recommender Using Python Introduction: One of the most significant and frequently perplexing decisions in a person’s life is …