I am using Twilio API on my php project, I am able to retrieve caller's information like Country Code etc. But I am not able to find something which can also provide its City/State info, here is the API I am using:
<?php
require 'Twilio/autoload.php';
use Twilio\Rest\Client;
// Your Account Sid and Auth Token from twilio.com/user/account
$accountSid = "<ACCOUNT SID>";
$authToken = "ACCOUNT TOKEN";
$client = new Client($accountSid, $authToken);
$number = $client->lookups->phoneNumbers("<PHONE NUMBER>")->fetch();
echo "<pre>";
print_r($number);
echo "</pre>";
?>
Here is the response I get:
[properties:protected] => Array
(
[callerName] =>
[countryCode] => US
[phoneNumber] => <PHONE NUMBER>
[nationalFormat] => <PHONE NUMBER>
[carrier] =>
[addOns] =>
[url] => https://lookups.twilio.com/v1/PhoneNumbers/<PHONE NUMBER>
)