Menu

Interesting phone number validation API

nospam
2023-01-18
2024-04-05
  • nospam

    nospam - 2023-01-18

    I've recently found a new API which will allow users to inspect and validate phone numbers, just sharing it here with the group
    https://apilayer.com/marketplace/number_verification-api

    Lookups AND number validation can be performed as follows:

    curl --request GET 'https://api.apilayer.com/number_verification/validate?number=14158586273' \
    --header 'apikey: YOUR API KEY'
    

    example response

    {
        "valid": true,
        "number": "14158586273",
        "local_format": "4158586273",
        "international_format": "+14158586273",
        "country_prefix": "+1",
        "country_code": "US",
        "country_name": "United States of America",
        "location": "Novato",
        "carrier": "AT&T Mobility LLC",
        "line_type": "mobile"
    }
    

    A free account gives you 100 lookups per month

     

    Last edit: nospam 2023-01-18
  • Ed Attfield

    Ed Attfield - 2023-11-04

    There is a similar tool inside NCID which returns information about a phone number, though it may not be as up-to-date as the API call to this commercial service.

    The NTYPE field will be empty for an invalid number:

     + ncidnumberinfo  14158586273
     *FNMBR*415-858-6273*NTYPE*FIX/CELL*CTRY*US*LOCA*California*CARI*NEW CINGULAR WIRELESS PCS, LLC
     + ncidnumberinfo  14150586273
     *FNMBR*415-058-6273*NTYPE*-*CTRY*ZZ*LOCA*-*CARI*-
     +
    
     
  • bgr_bgr

    bgr_bgr - 2024-04-05

    It is quite possible that this API uses the same original data as ncid ...
    Another thing to consider is that by using this online API to validate incoming calls ,
    One is actually sharing the list of incoming calls with the company (who ever that is , that is providing this online service ) . (Not great for privacy... ).
    On the other hand , the NCID tool is fully local , but only updated every release .
    (Althought manual updates are possible for "advanced" users ) .

     

Log in to post a comment.