Sign up Login

Search for a Residential telephone number

API Method: telephone_residential


Search the telephone directory for a residential telephone 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.
surname A persons surname or partial surname, use the '*' for wild card searches e.g. "Johnson" or "John*"
place Enter a UK place, postcode, or postcode area.

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.
forename The person forename or initials.
street The street name.
premises The building number or name.
records_per_page Specify the number of records to return on the current page. We offer page caching for this method - once your search is invoked, we store the pages on our server for 60 minutes; a subsequent request for a page of results from that search is displayed from the cache, at no charge to you. See result page caching.
page_num Zero based integer - current page number to return.

Returned Values

The XML response is contained within a <telephone_residential_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.

An array of person records.

place_list An array of place records. This is present if the place name is ambiguous. No charge is made when a place_list is retuned.

The total number of records, irrespective of the number displayed on any page.

This is only used when a person_list is present.


Current page being displayed, a zero-based integer.

This is only used when a person_list is present.

Error Codes

See the common error codes. There are no errors which are specific to this method.

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.

The free test mode for this method operates in the following manner:-

  • If the place parameter is set to leeds, a place_list is returned.
  • If not, a dummy person_list is returned.

Example XML Response

<?xml version="1.0"?>
      <line_2>Imagination Gardens</line_2>
      <line_3>Virtual Road</line_3>
      <postcode>YO91 3X0</postcode>
      <addr_single_line>17 Imagination Gardens, Virtual Road, Heslington, York, YO91 3X0</addr_single_line>
      <name_single_line>Mr Alan Fiction</name_single_line>
      <telephone_number>(01904) 000000</telephone_number>
      <line_2>Imagination Gardens</line_2>
      <line_3>Virtual Road</line_3>
      <postcode>YO91 3X0</postcode>
      <addr_single_line>17 Imagination Gardens, Virtual Road, Heslington, York, YO91 3X0</addr_single_line>
      <name_single_line>Mrs Anne J Fiction</name_single_line>
      <telephone_number>(01904) 000000</telephone_number>

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