Catalog PyPI
PACKAGE EXPLORERView in registry

abstract-python-phone-validation

PyPI

AbstractPhoneValidation - Wrapper to quickly start using the powerful AbstractAPI's Phone Validation service in your projects.

Versions collected1
Direct dependencies9From release 1.0.0
Last observed20 Oct, 17:42 UTC

README

Version 1.0.0 documentation

AbstractAPI python-phone-validation library

Integrate the powerful Phone Validation API from Abstract in your Python project in a few lines of code.

Abstract's Phone Number Validation and Verification API is a fast, lightweight, modern, and RESTful JSON API for determining the validity and other details of phone numbers from over 190 countries.

It's very simple to use: you only need to submit your API key and a phone number, and the API will respond as assessment of its validity, as well as additional details like the carrier details, line type, region and city details, and more.

Validating and verifying phone numbers is a critical step to reducing the chances of low quality data and fraudulent or risky users in your website or application.

Documentation

Supported Python Versions

This library supports the Python version 3.6 and higher.

Installation

You can install python-phone-validation via PyPi or by downloading the source.

Via Composer:

python-phone-validation is available on Packagist as the abstract-python-phone-validation package:

pip install abstract-python-phone-validation

API key

Get your API key for free and without hassle from the Abstact website.

Quickstart

Verify phone

# Verify phone using Abstract's Phone  Validation and Verification API and Python
from python_phone_validation import AbstractPhoneValidation

PHONE_VAL_API_KEY =  "YYYYYY"; # Get your API Key from https://app.abstractapi.com/api/phone-validation/documentation

AbstractPhoneValidation.configure(PHONE_VAL_API_KEY)
AbstractPhoneValidation.verify("14154582468")

API response

The API response is returned in a IpGeolocationData object.

PARAMETERTYPEDETAILS
numberStringThe phone number submitted for validation and verification.
validBooleanIs true if the phone number submitted is valid.
local_formatStringThe local or national format of the submitted phone number. For example, it removes any international formatting, such as "+1" in the case of the US.
international_formatStringThe international format of the submitted phone number. This means appending the phone number's country code and a "+" at the beginning.
country_nameStringThe name of the country in which the phone number is registered.
country_codeStringThe country's two letter ISO 3166-1 alpha-2 code.
country_prefixThe country's calling code prefix.
registered_locationStringAs much location details as are available from our data. This can include the region, state / province, and in some cases down to the city.
carrierStringThe carrier that the number is registered with.
line_typeStringThe type of phone number. The possible values are: Landline, Mobile, Satellite, Premium, Paging, Special, Toll_Free, and Unknown.

Detailed documentation

You will find additional information and request examples in the Abstract help page.

Getting help

If you need help installing or using the library, please contact Abstract's Support.

For bug report and feature suggestion, please use this repository issues page.

Contribution

Contributions are always welcome, as they improve the quality of the libraries we provide to the community.

Please provide your changes covered by the appropriate unit tests, and post them in the pull requests page.

Setup

To install the requirements, run:

python3 setup.py install --user

Once you implementer all your changes and the unit tests, run the following command to run the tests:

PHONE_VAL_API_KEY=YYYYYY python3 tests/test_python_phone_validation.py

Downloads & popularity

1downloads
1-day window · source-reported counts19 Oct 2026
3718.50
2026-07-23: 3 · observed 2026-10-20T18:45:17.8135776Z · period 2026-07-23–2026-07-232026-07-24: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-07-24–2026-07-242026-07-27: 4 · observed 2026-10-20T18:45:17.8135776Z · period 2026-07-27–2026-07-272026-07-29: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-07-29–2026-07-292026-07-30: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-07-30–2026-07-302026-07-31: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-07-31–2026-07-312026-08-01: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-01–2026-08-012026-08-02: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-02–2026-08-022026-08-03: 8 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-03–2026-08-032026-08-04: 5 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-04–2026-08-042026-08-05: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-05–2026-08-052026-08-06: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-06–2026-08-062026-08-09: 3 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-09–2026-08-092026-08-13: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-13–2026-08-132026-08-14: 4 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-14–2026-08-142026-08-17: 7 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-17–2026-08-172026-08-18: 37 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-18–2026-08-182026-08-19: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-19–2026-08-192026-08-20: 3 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-20–2026-08-202026-08-23: 5 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-23–2026-08-232026-08-24: 17 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-24–2026-08-242026-08-28: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-28–2026-08-282026-08-29: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-29–2026-08-292026-08-30: 4 · observed 2026-10-20T18:45:17.8135776Z · period 2026-08-30–2026-08-302026-09-01: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-01–2026-09-012026-09-02: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-02–2026-09-022026-09-04: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-04–2026-09-042026-09-05: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-05–2026-09-052026-09-06: 6 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-06–2026-09-062026-09-07: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-07–2026-09-072026-09-08: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-08–2026-09-082026-09-09: 3 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-09–2026-09-092026-09-10: 3 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-10–2026-09-102026-09-14: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-14–2026-09-142026-09-16: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-16–2026-09-162026-09-18: 5 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-18–2026-09-182026-09-20: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-20–2026-09-202026-09-22: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-22–2026-09-222026-09-23: 5 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-23–2026-09-232026-09-26: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-26–2026-09-262026-09-27: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-27–2026-09-272026-09-28: 4 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-28–2026-09-282026-09-30: 4 · observed 2026-10-20T18:45:17.8135776Z · period 2026-09-30–2026-09-302026-10-01: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-01–2026-10-012026-10-02: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-02–2026-10-022026-10-06: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-06–2026-10-062026-10-07: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-07–2026-10-072026-10-08: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-08–2026-10-082026-10-09: 3 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-09–2026-10-092026-10-11: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-11–2026-10-112026-10-13: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-13–2026-10-132026-10-14: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-14–2026-10-142026-10-15: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-15–2026-10-152026-10-16: 2 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-16–2026-10-162026-10-17: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-17–2026-10-172026-10-18: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-18–2026-10-182026-10-19: 1 · observed 2026-10-20T18:45:17.8135776Z · period 2026-10-19–2026-10-19
23 Jul19 Oct

pypistats · 57 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-19 – 2026-10-1912026-10-20T18:45:17.8135776Z
2026-10-18 – 2026-10-1812026-10-20T18:45:17.8135776Z
2026-10-17 – 2026-10-1712026-10-20T18:45:17.8135776Z
2026-10-16 – 2026-10-1622026-10-20T18:45:17.8135776Z
2026-10-15 – 2026-10-1522026-10-20T18:45:17.8135776Z
2026-10-14 – 2026-10-1412026-10-20T18:45:17.8135776Z
2026-10-13 – 2026-10-1312026-10-20T18:45:17.8135776Z
2026-10-11 – 2026-10-1112026-10-20T18:45:17.8135776Z
2026-10-09 – 2026-10-0932026-10-20T18:45:17.8135776Z
2026-10-08 – 2026-10-0822026-10-20T18:45:17.8135776Z
2026-10-07 – 2026-10-0712026-10-20T18:45:17.8135776Z
2026-10-06 – 2026-10-0612026-10-20T18:45:17.8135776Z
2026-10-02 – 2026-10-0212026-10-20T18:45:17.8135776Z
2026-10-01 – 2026-10-0112026-10-20T18:45:17.8135776Z
2026-09-30 – 2026-09-3042026-10-20T18:45:17.8135776Z
2026-09-28 – 2026-09-2842026-10-20T18:45:17.8135776Z
2026-09-27 – 2026-09-2722026-10-20T18:45:17.8135776Z
2026-09-26 – 2026-09-2612026-10-20T18:45:17.8135776Z
2026-09-23 – 2026-09-2352026-10-20T18:45:17.8135776Z
2026-09-22 – 2026-09-2222026-10-20T18:45:17.8135776Z
2026-09-20 – 2026-09-2012026-10-20T18:45:17.8135776Z
2026-09-18 – 2026-09-1852026-10-20T18:45:17.8135776Z
2026-09-16 – 2026-09-1612026-10-20T18:45:17.8135776Z
2026-09-14 – 2026-09-1412026-10-20T18:45:17.8135776Z
2026-09-10 – 2026-09-1032026-10-20T18:45:17.8135776Z
2026-09-09 – 2026-09-0932026-10-20T18:45:17.8135776Z
2026-09-08 – 2026-09-0812026-10-20T18:45:17.8135776Z
2026-09-07 – 2026-09-0712026-10-20T18:45:17.8135776Z
2026-09-06 – 2026-09-0662026-10-20T18:45:17.8135776Z
2026-09-05 – 2026-09-0522026-10-20T18:45:17.8135776Z
2026-09-04 – 2026-09-0412026-10-20T18:45:17.8135776Z
2026-09-02 – 2026-09-0212026-10-20T18:45:17.8135776Z
2026-09-01 – 2026-09-0112026-10-20T18:45:17.8135776Z
2026-08-30 – 2026-08-3042026-10-20T18:45:17.8135776Z
2026-08-29 – 2026-08-2912026-10-20T18:45:17.8135776Z
2026-08-28 – 2026-08-2812026-10-20T18:45:17.8135776Z
2026-08-24 – 2026-08-24172026-10-20T18:45:17.8135776Z
2026-08-23 – 2026-08-2352026-10-20T18:45:17.8135776Z
2026-08-20 – 2026-08-2032026-10-20T18:45:17.8135776Z
2026-08-19 – 2026-08-1922026-10-20T18:45:17.8135776Z
2026-08-18 – 2026-08-18372026-10-20T18:45:17.8135776Z
2026-08-17 – 2026-08-1772026-10-20T18:45:17.8135776Z
2026-08-14 – 2026-08-1442026-10-20T18:45:17.8135776Z
2026-08-13 – 2026-08-1322026-10-20T18:45:17.8135776Z
2026-08-09 – 2026-08-0932026-10-20T18:45:17.8135776Z
2026-08-06 – 2026-08-0612026-10-20T18:45:17.8135776Z
2026-08-05 – 2026-08-0522026-10-20T18:45:17.8135776Z
2026-08-04 – 2026-08-0452026-10-20T18:45:17.8135776Z
2026-08-03 – 2026-08-0382026-10-20T18:45:17.8135776Z
2026-08-02 – 2026-08-0222026-10-20T18:45:17.8135776Z
2026-08-01 – 2026-08-0112026-10-20T18:45:17.8135776Z
2026-07-31 – 2026-07-3112026-10-20T18:45:17.8135776Z
2026-07-30 – 2026-07-3012026-10-20T18:45:17.8135776Z
2026-07-29 – 2026-07-2922026-10-20T18:45:17.8135776Z
2026-07-27 – 2026-07-2742026-10-20T18:45:17.8135776Z
2026-07-24 – 2026-07-2412026-10-20T18:45:17.8135776Z
2026-07-23 – 2026-07-2332026-10-20T18:45:17.8135776Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.021 Apr 20219

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
abstractapi/python-phone-validation

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:42 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1f76745ba10a587cf87e23effadcd1ff686aa1cafc0e6a9d94c3fbefaab15117