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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Twilio.Lookups" Version="4.0.98" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Twilio.Lookups" Version="4.0.98" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Twilio.Lookups" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Twilio.Lookups --version 4.0.98
                    
#r "nuget: Soenneker.Twilio.Lookups, 4.0.98"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Twilio.Lookups@4.0.98
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Twilio.Lookups&version=4.0.98
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Twilio.Lookups&version=4.0.98
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed