Soenneker.Twilio.Lookups
4.0.98
Prefix Reserved
dotnet add package Soenneker.Twilio.Lookups --version 4.0.98
NuGet\Install-Package Soenneker.Twilio.Lookups -Version 4.0.98
<PackageReference Include="Soenneker.Twilio.Lookups" Version="4.0.98" />
<PackageVersion Include="Soenneker.Twilio.Lookups" Version="4.0.98" />
<PackageReference Include="Soenneker.Twilio.Lookups" />
paket add Soenneker.Twilio.Lookups --version 4.0.98
#r "nuget: Soenneker.Twilio.Lookups, 4.0.98"
#:package Soenneker.Twilio.Lookups@4.0.98
#addin nuget:?package=Soenneker.Twilio.Lookups&version=4.0.98
#tool nuget:?package=Soenneker.Twilio.Lookups&version=4.0.98
Soenneker.Twilio.Lookups
Retrieves phone-number data from Twilio Lookup v1, including optional carrier, caller-name, and Marketplace add-on results.
Installation
dotnet add package Soenneker.Twilio.Lookups
Configuration
Add the Twilio credentials used by the underlying OpenAPI client:
{
"Twilio": {
"ApiKey": "SK...",
"ApiSecret": "..."
}
}
Registration
using Soenneker.Twilio.Lookups.Registrars;
services.AddTwilioLookupsUtilAsScoped();
Singleton registration is also available through AddTwilioLookupsUtilAsSingleton().
Usage
using Soenneker.Twilio.Lookups.Abstract;
using Soenneker.Twilio.OpenApiClient.Models;
public sealed class PhoneInspector
{
private readonly ITwilioLookupsUtil _lookups;
public PhoneInspector(ITwilioLookupsUtil lookups)
{
_lookups = lookups;
}
public ValueTask<LookupsV1PhoneNumber?> GetCarrierData(
string phoneNumber,
CancellationToken cancellationToken)
{
return _lookups.GetPhoneNumber(
phoneNumber,
types: ["carrier"],
cancellationToken: cancellationToken);
}
}
Use E.164 numbers such as +15551234567 when possible. For a national-format number, pass the ISO country code separately:
LookupsV1PhoneNumber? result = await lookups.GetPhoneNumber(
"020 7946 0018",
countryCode: "GB",
cancellationToken: cancellationToken);
types requests Twilio data packages. addOns invokes Twilio Marketplace add-ons, and addOnsData passes add-on-specific input. These options can have separate Twilio charges. API and authentication failures are propagated to the caller.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Twilio.OpenApiClientUtil (>= 4.0.137)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.98 | 0 | 9/6/2026 |
| 4.0.97 | 36 | 9/5/2026 |
| 4.0.96 | 44 | 9/4/2026 |
| 4.0.95 | 37 | 9/4/2026 |
| 4.0.94 | 41 | 9/4/2026 |
| 4.0.93 | 34 | 9/4/2026 |
| 4.0.92 | 37 | 9/4/2026 |
| 4.0.90 | 32 | 9/4/2026 |
| 4.0.89 | 66 | 9/1/2026 |
| 4.0.88 | 82 | 8/31/2026 |
| 4.0.87 | 84 | 8/31/2026 |
| 4.0.85 | 88 | 8/28/2026 |
| 4.0.84 | 92 | 8/26/2026 |
| 4.0.83 | 85 | 8/26/2026 |
| 4.0.82 | 84 | 8/26/2026 |
| 4.0.81 | 91 | 8/22/2026 |
| 4.0.80 | 88 | 8/22/2026 |
| 4.0.79 | 90 | 8/22/2026 |
| 4.0.78 | 95 | 8/19/2026 |
| 4.0.77 | 98 | 8/15/2026 |