4 ms·
No, this is easy. Twilio API has a simple lookup function (call over curl) to see provider and type of number. Also shows subscribers name (usually). I have
by rsync 3y ago
No, this is easy.
Twilio API has a simple lookup function (call over curl) to see provider and type of number. Also shows subscribers name (usually).
I have this in a shell script and look up numbers all the time:
/usr/local/bin/curl -s -X GET "https://lookups.twilio.com/v1/PhoneNumbers/$number?Type=carrier&Type=caller-name" -u $accountsid:$authtoken | /usr/local/bin/jq '.'
- rahimnathwani 3y agoIf the owner of the number is a customer of a different telco (not Twilio), by what mechanism can Twilio determine whether the it's a physical (sim/esim/landline) or virtual number? Sure, some operators operate only physical or only virtual, but others (like Google) operate both.
- stqism 3y agoThis isn’t something casually identified with flashy software solutions or APIs, it’s more of a relationships with carriers and other companies in the telco space sorta thing. It gets even more fun when you start looking in to MO and MT on the SMPP side of things.
- oriettaxx 3y agoby the way, if you only need a validation of a number, no need for Twilio: this is a great lib https://github.com/giggsey/libphonenumber-for-php https://github.com/giggsey/libphonenumber-for-php
- oriettaxx 3y agohttps://www.twilio.com/docs/lookup/v2-api/ https://www.twilio.com/docs/lookup/v2-api/
- rahimnathwani 3y agoThis explains how a customer of Twilio can request the info from Twilio. I asked how Twilio obtains the information.
- oriettaxx 3y agohttps://support.twilio.com/hc/en-us/articles/360050891214-Getting-Started-with-the-Twilio-Lookup-API https://support.twilio.com/hc/en-us/articles/360050891214-Ge...