DeviceSpecs 1.1.1
dotnet add package DeviceSpecs --version 1.1.1
NuGet\Install-Package DeviceSpecs -Version 1.1.1
<PackageReference Include="DeviceSpecs" Version="1.1.1" />
<PackageVersion Include="DeviceSpecs" Version="1.1.1" />
<PackageReference Include="DeviceSpecs" />
paket add DeviceSpecs --version 1.1.1
#r "nuget: DeviceSpecs, 1.1.1"
#:package DeviceSpecs@1.1.1
#addin nuget:?package=DeviceSpecs&version=1.1.1
#tool nuget:?package=DeviceSpecs&version=1.1.1
DeviceSpecs Client SDK (.NET)
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:
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 | Versions 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. |
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- System.Text.Json (>= 8.0.5)
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.