Can I find the address from someone who is calling me all the time? I have the phone number, age, social security and DOB. How can I do it?
Thank in advance
Hi,
I am getting no results found for everything I try including the example url given in the documentation. Something wrong with my request URL? I am pasting the code below.
echo $request;
// Initialize the session
$session = curl_init($request);
// Set curl options
curl_setopt($session, CURLOPT_HEADER, true);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
// Make the request
$response = curl_exec($session);
// Close the curl session
curl_close($session);
// Get HTTP Status code from the response
$status_code = array();
preg_match('/\d\d\d/', $response, $status_code);
// Check the HTTP Status code
switch( $status_code[0] ) {
case 200:
// Success
break;
case 503:
die('Your call to White Pages Web Services failed and returned an HTTP status of 503. That means: Service unavailable. An internal problem prevented us from returning data to you.');
break;
case 403:
die('Your call to White Pages Web Services failed and returned an HTTP status of 403. That means: Forbidden. You do not have permission to access this resource, or are over your rate limit.');
break;
case 400:
// You may want to fall through here and read the specific XML error
die('Your call to White Pages Web Services failed and returned an HTTP status of 400. That means: Bad request. The parameters passed to the service did not match as expected. The exact error is returned in the XML response.');
break;
default:
die('Your call to White Pages Web Services returned an unexpected HTTP status of:' . $status_code[0]);
}
// Get the XML from the response, bypassing the header
if (!($xml = strstr($response, '<?xml'))) {
$xml = null;
}
// Output the XML
echo htmlspecialchars($xml, ENT_QUOTES);
Zip requires a numeric value of a particular type. See http://developer.whitepages.com/docs/Methods/find_person for exact details in the parameter section.
You can always debug your URL by pasting it into a webbrowser. Firefox handles XML responses sanely. cURL is also a good tool for viewing the response (curl.haxx.se) from the command line.
I'd suggest printing the url you are generating ($request), pasting that into a web browser or cURL and checking the errors.
Actually it looks like you already are with 'echo $request' so take that and paste.
Hi rhappleby! I would like to discuss your application with you. Please let me know how I may contact you and when is a good time to try. My contact information is 206-973-5176
If you have only one, two or ten people to find and you would like to find their contact information we suggest using our main website.
http://www.whitepages.com/find_person/
There isn't anything you can get from this API that isn't already available there.
If you are developing a web mashup or a new application I suggest starting with the documentation here:
http://developer.whitepages.com/docs/Methods/find_person
Message edited by Dan_WhitePages 1 year ago
Roxi – 5 years ago
Can I find the address from someone who is calling me all the time? I have the phone number, age, social security and DOB. How can I do it?
Thank in advance
Dan_WhitePages – 5 years ago
Roxi,
I suggest trying http://www.whitepages.com/reverse_phone/
RashaDee – 5 years ago
i was trying to find someone with just their phone number, what do you suggest
Dan_WhitePages – 5 years ago
RashaDee,
The reverse_phone search over at whitepages.com works with just a phone number.
http://www.whitepages.com/reverse_phone/
prolificcoder – 5 years ago
Hi,
I am getting no results found for everything I try including the example url given in the documentation. Something wrong with my request URL? I am pasting the code below.
<?php
if(isset($_GET['fname']))
$fname=$_GET['fname'];
if(isset($_GET['lname']))
$lname=$_GET['lname'];
if(isset($_GET['zip']))
$zip=$_GET['zip'];
$apikey='XXX';
error_reporting(E_ALL);
$request = "http://api.whitepages.com/find_person/1.0/?firstname=$fname;lastname=lname;zip=$zip&api_key=$apikey";
echo $request;
// Initialize the session
$session = curl_init($request);
// Set curl options
curl_setopt($session, CURLOPT_HEADER, true);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
// Make the request
$response = curl_exec($session);
// Close the curl session
curl_close($session);
// Get HTTP Status code from the response
$status_code = array();
preg_match('/\d\d\d/', $response, $status_code);
// Check the HTTP Status code
switch( $status_code[0] ) {
case 200:
// Success
break;
case 503:
die('Your call to White Pages Web Services failed and returned an HTTP status of 503. That means: Service unavailable. An internal problem prevented us from returning data to you.');
break;
case 403:
die('Your call to White Pages Web Services failed and returned an HTTP status of 403. That means: Forbidden. You do not have permission to access this resource, or are over your rate limit.');
break;
case 400:
// You may want to fall through here and read the specific XML error
die('Your call to White Pages Web Services failed and returned an HTTP status of 400. That means: Bad request. The parameters passed to the service did not match as expected. The exact error is returned in the XML response.');
break;
default:
die('Your call to White Pages Web Services returned an unexpected HTTP status of:' . $status_code[0]);
}
// Get the XML from the response, bypassing the header
if (!($xml = strstr($response, '<?xml'))) {
$xml = null;
}
// Output the XML
echo htmlspecialchars($xml, ENT_QUOTES);
?>
Dan_WhitePages – 5 years ago
Hi prolificcoder,
$request = "http://api.whitepages.com/find_person/1.0/?firstname=$fname;lastname=lname;zip=$zip&api_key=$apikey";
First the URL that you have listed does not pass in a value for lastname, just the string 'lname'. As coded you will be searching for "Jane lname"
Your XML should be returning this
<wp:errormessages>
<wp:message>Invalid Input: zip</wp:message>
</wp:errormessages>
Zip requires a numeric value of a particular type. See http://developer.whitepages.com/docs/Methods/find_person for exact details in the parameter section.
You can always debug your URL by pasting it into a webbrowser. Firefox handles XML responses sanely. cURL is also a good tool for viewing the response (curl.haxx.se) from the command line.
I'd suggest printing the url you are generating ($request), pasting that into a web browser or cURL and checking the errors.
Actually it looks like you already are with 'echo $request' so take that and paste.
jcrawford – 5 years ago
also why are you using ; rather than the & that you are supposed to use?
firstname=Joseph&lastname=Crawford&zip=90210
Dan_WhitePages – 5 years ago
The & is a W3C recommendation, but they also recommend the ';' as a means of bypassing the need to encode an & in some use cases.
http://www.w3.org/TR/html4/appendix/notes.html#h-B.2.2
you can use either in your query string.
Unknown – 5 years ago
I am trying to locate a cell phone # On XXXXXX A. XXXXXs, XX years old out of Fayetteville, GA. any help
Dan_WhitePages – 5 years ago
roscoe37764,
I'm sorry, we can't help you with specific queries here in the forums. You can try http://www.whitepages.com/find_person
quarter13 – 5 years ago
Iam trying to find out some land line and cell numbers. On some of them I have a name others I need
rhappleby – 2 years ago
What is the cost of using the API? After the test period?
Eric Farnham – 2 years ago
Hi rhappleby! I would like to discuss your application with you. Please let me know how I may contact you and when is a good time to try. My contact information is 206-973-5176
touch1122 – 1 year ago
larry smith