DeviceSpecs 1.1.1

dotnet add package DeviceSpecs --version 1.1.1
                    
NuGet\Install-Package DeviceSpecs -Version 1.1.1
                    
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="DeviceSpecs" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DeviceSpecs" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DeviceSpecs" />
                    
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 DeviceSpecs --version 1.1.1
                    
#r "nuget: DeviceSpecs, 1.1.1"
                    
#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 DeviceSpecs@1.1.1
                    
#: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=DeviceSpecs&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DeviceSpecs&version=1.1.1
                    
Install as a Cake Tool

DeviceSpecs Client SDK (.NET)

NuGet Version License: MIT

A strongly-typed, high-performance C# / .NET client library for the DeviceSpecs API. Access structured, clean, and normalized specifications, chipsets, and physical metrics for over 12,000 mobile devices.

Sourced dynamically and formatted in standardized JSON, perfect for database seeding, mobile application backends, and AI/LLM model context windows.


๐ŸŒ Official Website, API Portal & Live Testing

For API key generation, interactive testing, endpoint documentation, and subscription management, visit our official portal:

๐Ÿ‘‰ https://ds.gtgroup.dev

Key Resources on ds.gtgroup.dev:

  • ๐Ÿ”‘ API Key Management: Obtain a free developer API key or upgrade your plan.
  • ๐Ÿงช Interactive API Playground: Test queries, endpoints, and filters directly in your browser.
  • ๐Ÿ“– API Documentation: Browse full spec models, filter parameters, and dataset details.

๐Ÿš€ Installation

Install the package via the .NET CLI:

dotnet add package DeviceSpecs

Or via Package Manager Console:

Install-Package DeviceSpecs

๐Ÿ› ๏ธ Usage Quick Start

1. Direct Instantiation

using System;
using System.Threading.Tasks;
using DeviceSpecs;

class Program
{
    static async Task Main(string[] args)
    {
        // Obtain your API key from https://ds.gtgroup.dev
        using var client = new DeviceSpecsClient("YOUR_API_KEY");

        try
        {
            // Fetch specs for a specific device
            var phone = await client.GetSpecsAsync(Brands.Google, "Pixel 9 Pro");
            
            if (phone != null)
            {
                Console.WriteLine($"Device: {phone.Manufacturer} {phone.Model}");
                Console.WriteLine($"Chipset: {phone.Chipset}");
                Console.WriteLine($"RAM: {string.Join(", ", phone.NormalizedSpecs?.MemoryOptions?.AvailableRamGb ?? new())} GB");
                Console.WriteLine($"Water Resistant: {phone.NormalizedSpecs?.Physical?.IsWaterResistant}");
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}

2. Dependency Injection Setup (.NET Core / 8 / 10)

In Program.cs:

using DeviceSpecs;

var builder = WebApplication.CreateBuilder(args);

// Register the DeviceSpecs client using DI extension helper
builder.Services.AddDeviceSpecsClient(options =>
{
    options.ApiKey = builder.Configuration["DeviceSpecs:ApiKey"] 
                     ?? throw new InvalidOperationException("API Key is missing!");
});

๐Ÿ”ฅ Fluent Deep Filtering Syntax

Construct rich, expressive multi-metric queries starting with client.Where():

// Fluent query with expressive filter method names
var flagshipDevices = await client.Where()
    .ManufacturerIs(Brands.Samsung)
    .ChipsetContains("Snapdragon")
    .RamGreaterThanOrEqual(8)
    .RamLessOrEqual(16)
    .DisplayRefreshRateGreaterThanOrEqual(120)
    .DisplaySizeGreaterThanOrEqual(6.5)
    .BatteryGreaterThanOrEqual(5000)
    .HasWirelessCharging()
    .HasStereoSpeakers()
    .PriceUsdLessOrEqual(1200)
    .ExecuteAsync(cancellationToken);

Multi-Brand Filtering

Query across multiple manufacturers effortlessly:

var budgetMidrangers = await client.Where()
    .ManufacturerBetween(Brands.Samsung, Brands.Xiaomi, Brands.Oppo)
    .RamGreaterThan(8)
    .HasNfc()
    .PriceUsdLessThan(800)
    .ExecuteAsync(cancellationToken);

Custom & Raw Property Escapes

For maximum flexibility, append custom key-value property filters:

var customQuery = client.Where()
    .WithCustomFilter("memory.available_storage_gb", "gte", 256)
    .WithCustomFilter("physical.ip_rating", "contains", "IP68");

// Print generated URL query string for debugging or logging
Console.WriteLine(customQuery.ToQueryString());

var results = await customQuery.ExecuteAsync();

๐Ÿ“– API Reference

Method Description
client.Where() Initiates a fluent query builder chain.
client.GetSpecsAsync(manufacturer, model) Fetches raw & normalized specifications for a device model.
client.GetDeviceByModelNumberAsync(modelNumber) Fetches device specifications by hardware variant identifier (e.g. SM-S928B).
client.GetDevicesByManufacturerAsync(manufacturer) Returns all devices for a given manufacturer.
client.GetDevicesByChipsetAsync(chipset) Returns all devices powered by a specific SoC / chipset.

For detailed interactive API testing and live requests, visit ds.gtgroup.dev.


๐Ÿ›ก๏ธ Error Handling

The client throws a strongly-typed DeviceSpecsApiException when the API gateway returns a non-success status code.

using DeviceSpecs.Exceptions;

try
{
    var specs = await client.GetSpecsAsync("Google", "NonExistentModel");
}
catch (DeviceSpecsApiException ex)
{
    Console.WriteLine($"API Error ({(int)ex.StatusCode}): {ex.Message}");
    Console.WriteLine($"Raw Response: {ex.ResponseContent}");
}

๐Ÿ“„ License

This library is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
1.1.1 163 7/30/2026
1.1.0 121 7/30/2026
1.0.0 133 7/13/2026