Sign up Login

Validate a Mobile Telephone Number

API Method: validate_mobile_phone_number


Validate a UK mobile phone number. Returns the current network, original network (if ported) and flags to indicate if currently live or known to be ceased. Note that this service does not call or 'ping' the number.

Mandatory Parameters

Name Description
api_key or javascript_key Use your API key if invoking server-side. If invoking from the browser via JavaScript, generate a JavaScript key using the javascript_key method.
telephone_number Enter a UK mobile number

Optional Parameters

Name Description
client You can optionally include an identifier for your final client or user. This is logged in your usage log and you will be able to view your usage statistics by client.
output Set to json for a JSON response; the default response is XML. Not applicable to the SOAP API.
callback When using JSON, specify a JSONP wrapper in which the JSON response is to be wrapped.

Returned Values

The XML response is contained within a <validate_mobile_phone_number_res> element.

Name Description
status Returns ok if the operation has succeeded, or error if an error has occurred; Returns the error_code for error details.
error_code Returns the error code when the status is error. See below for error codes.
t2a_version_number The current API version number.
credit_used The number of credits used in order to execute the request.
mode Returns normal or test when executed in the free test mode.
network The name of the current mobile network.
network_original The original network name.
telephone_number The number, formatted.
mnc The Mobile Network Code (MNC); a code describing the current network provider.

(we may need to provide a list of codes)
mcc The Mobile Country Code (MCC). This is NOT determined by the current location of the handset, but by the network provider’s country.

(we may need to provide a list of codes)
on true if the number is believed to be in use.
dead true if the number is known to have ceased.

Error Codes

Name Description
invalid_telephone_number The telephone number is invalid
missing_telephone_number Missing the telephone number

Also see the common error codes.

Free Test Mode

When operating in the free test mode errors are returned if mandatory parameters are missing, or it returns a dummy data response, in an identical format to a real response.

Note that the mode is returned as test when the method is operating in the free test mode.

Example XML Response

<?xml version="1.0"?>
		<telephone_number>(07778) 000000</telephone_number>
		<network>UK - VODAFONE</network>
		<network_original>Vodafone Uk Ltd</network_original>

Looking for the old documentation? Download it here (PDF format)

API Method List

< Back to T2A API Documentation

  1. Search for a person (person_search)
  2. Find people at an address (address_person)
  3. Search the UK Electoral Roll (electoral_roll)
  4. Search the Full UK Electoral Roll (full_electoral_roll)
  5. Age verification (age_verification)
  6. Search for a residential telephone number (telephone_residential)
  7. Search for a business (business_search)
  8. Search for an address/postcode (address_search)
  9. Validate a telephone number (validate_telephone)
  10. Validate a mobile telephone number (validate_mobile_phone_number)
  11. Validate a credit card number (validate_credit_card)
  12. Validate an email address (validate_email)
  13. Validate a VAT number (validate_vat)
  14. TPS/CTPS check a telephone number (tps_full)
  15. TPS/CTPS checking a CSV file containing telephone numbers (tps_bulk)
  16. Find UK dialling codes (area_code)
  17. Find international dialling codes (country_dial)
  18. Geo-Code an address (geo_code)
  19. Reverse Geo-Code (reverse_geo_code)
  20. Find company details (company_details)
  21. Find director details (director_details)
  22. Get a company credit report (company_credit_report)
  23. Find a location from an IP address (ip_location)
  24. Send a text message (send_text_message)
  25. Check the bereavement register (deceased)
  26. Bulk check the bereavement register (deceased_bulk)
  27. Check company name availability (company_name_check)
  28. Download a company document (company_document_download)
  29. Generate a secure JavaScript key (javascript_key)
  30. Create an asynchronous job (job_create)
  31. Read the progress of an asynchronous job (job_progress)
  32. Telephone number appending (tele_append)
  33. View information about your account (client_info)