Reputation: 374
I'm working on a project that uses the Twilio API to send and receive text messages, but I'd like to be able to show the location of those cellular users in a table on my customer's dashboard.
In short, I'm looking for the data that shows up when you're shopping for a phone number on Twilio and it tells you it's from Newport Beach, California, etc.
Is there any way to retrieve that information from Twilio for a number besides one that is available for purchase?
Upvotes: 4
Views: 3801
Reputation: 3434
Twilio Evangelist here. When Twilio makes a request to your server using a web hook, the SMS and voice will sometimes have geographical information.
But this information is not always available. There is no facility in the API to allow you to look up these outside of this context.
Hope this helps!
Upvotes: 3