Inspiration

Twilio built an API for looking up Numbers.

What it does

print out a response that includes some important informations i.e

curl -X GET "https://lookups.twilio.com/v2/PhoneNumbers/+14159929960?Fields=caller_name" \
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
{
  "calling_country_code": "1", "country_code": "US", "phone_number": "+14159929960", "national_format": "(415) 992-9960", "valid": true, "validation_errors": null, "caller_name": { 
  "caller_name": "Sergio Suarez", "caller_type": "CONSUMER", "error_code": null  } "sim_swap": null, "call_forwarding": null, "live_activity": null, "line_type_intelligence": null, "identity_match": null, "sms_pumping_risk": null, "url": "https://lookups.twilio.com/v2/PhoneNumbers/+14159929960"  }

How we built it

i didn't really build anything, just followed prompts and worked.

Challenges we ran into

null

What we learned

  • how to use curl to make HTTP requests.
  • Build a curl request that will fetch phone number information using the Twilio API.

What's next for Lookup a phone number

Nothing really, just looking forward for more projects.

Built With

Share this project:

Updates