Crates.io | twlu |
lib.rs | twlu |
version | 0.1.1 |
source | src |
created_at | 2024-10-02 03:49:10.46579 |
updated_at | 2024-10-02 04:13:46.422401 |
description | Small CLI tool to query the Twilio Lookup API V2 for a phone number |
homepage | |
repository | https://github.com/petergs/twlu |
max_upload_size | |
id | 1393660 |
size | 22,202 |
Small CLI tool to query the Twilio Lookup API V2 for a phone number
The Twilio Lookup API provides a paid (per request) way to query the line information database for CNAM data used in caller ID services. The API also has an endpoint to identify the line type (landline, mobile, voip, etc) and carrier.
This tool provides a quick interface to query this API for a phone number and return some basic data in JSON format.
TWILIO_ACCOUNT_SID
and TWILIO_AUTH_TOKEN
. You can retrieve this
values by followng the directions in this article.$> twlu --help
CLI interface for the Twilio Lookup API V2
Usage: twlu [OPTIONS] <NUMBER>
Arguments:
<NUMBER> Phone number to lookup
Options:
-n, --caller-name Lookup Caller Name
-t, --line-type Lookup Line Type Intelligence
-h, --help Print help
$> twlu +14159929960
{
"call_forwarding": null,
"caller_name": {
"caller_name": null,
"caller_type": "UNDETERMINED",
"error_code": null
},
"calling_country_code": "1",
"country_code": "US",
"identity_match": null,
"line_type_intelligence": {
"carrier_name": "Bandwidth/13 - Bandwidth.com - SVR",
"error_code": null,
"mobile_country_code": "313",
"mobile_network_code": "981",
"type": "nonFixedVoip"
}
}