Twilio evangelist developer is here.
Using the search API you can get a lot of information about the number, but, unfortunately, this is not the place at the moment.
You can get the exact location in some rooms. I say “some numbers” because some will have information about latitude and longitude, which you can then use to pinpoint this location.
I just made the request myself, and one of the numbers returned this:
{
"friendly_name": "+55513937XXXX",
"phone_number": "+55513937XXXX",
"lata": null,
"rate_center": null,
"latitude": "-16.516700",
"longitude": "-39.350000",
"region": "RS",
"postal_code": null,
"iso_country": "BR",
"address_requirements": "none",
"beta": false,
"capabilities": {
"voice": true,
"SMS": false,
"MMS": false
}
}
This gave me a very accurate location , but as I said, it’s probably not something you can rely on completely, since we rely on information from carriers and they don’t always give us this.
, .
curl -G https://api.twilio.com/2010-04-01/Accounts/YOUR_TWILIO_SID/AvailablePhoneNumbers/BR/Local.json \
-d "Contains=5551*" \
-u 'YOUR_TWILIO_SID:YOUR_AUTH_TOKEN'
, .