Soenneker.Twilio.Lookups 11.0.208

Prefix Reserved
dotnet add package Soenneker.Twilio.Lookups --version 11.0.208
                    
NuGet\Install-Package Soenneker.Twilio.Lookups -Version 11.0.208
                    
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="11.0.208" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Twilio.Lookups" Version="11.0.208" />
                    
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 11.0.208
                    
#r "nuget: Soenneker.Twilio.Lookups, 11.0.208"
                    
#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@11.0.208
                    
#: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=11.0.208
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Twilio.Lookups&version=11.0.208
                    
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 net11.0 is compatible. 
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
11.0.208 14 12/3/2026
11.0.207 40 12/3/2026
11.0.206 52 12/3/2026
11.0.205 51 12/3/2026
11.0.204 45 12/3/2026
11.0.203 55 12/2/2026
11.0.202 68 12/2/2026
11.0.201 71 12/2/2026
11.0.199 70 12/2/2026
11.0.198 62 12/2/2026
11.0.197 85 12/2/2026
11.0.196 81 12/1/2026
11.0.195 76 12/1/2026
11.0.194 82 12/1/2026
11.0.193 84 12/1/2026
11.0.192 80 12/1/2026
11.0.191 88 11/30/2026
11.0.190 95 11/30/2026
11.0.189 103 11/30/2026
11.0.188 97 11/29/2026
Loading failed

Updated Multiple NuGet packages