C# / .NET Client
Modern .NET C# client for Gender-API.com supporting both .NET Core and Framework with full async/await capabilities. Our specialized API provides 99.5% accurate gender detection with sub-100ms response times, outperforming generic AI by 9-34% in accuracy and 10x-90x in speed. Perfect for ASP.NET applications, Azure Functions, and enterprise systems. The client library follows .NET best practices with proper exception handling and dependency injection support. Access over 9 million names across 150+ countries with intelligent fallback and smart normalization. Ideal for CRM, marketing automation, and user management systems. Start free with 100 API calls monthly. Trusted by Fortune 500 companies.
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
public record GenderResponse(
[property: JsonPropertyName("first_name")] string FirstName,
[property: JsonPropertyName("gender")] string Gender,
[property: JsonPropertyName("probability")] double Probability
);
public class Program
{
public static async Task Main()
{
var apiKey = "YOUR_API_KEY"; // Get your key at https://gender-api.com/en/account/auth-tokens
using var client = new HttpClient();
var requestBody = new { first_name = "Theresa" };
var jsonContent = new StringContent(
JsonSerializer.Serialize(requestBody),
Encoding.UTF8,
"application/json");
// Add Authorization header
client.DefaultRequestHeaders.Add("Authorization", $"Bearer {apiKey}");
try
{
// Send POST request to API V2
var response = await client.PostAsync("https://gender-api.com/v2/gender/by-first-name", jsonContent);
response.EnsureSuccessStatusCode();
// Parse response
var jsonResponse = await response.Content.ReadAsStringAsync();
var result = JsonSerializer.Deserialize<GenderResponse>(jsonResponse);
Console.WriteLine($"Gender: {result.Gender}");
Console.WriteLine($"Probability: {result.Probability}");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
} Uygulamaların için Profesyonel Cinsiyet Tespiti
Gender-API.com, 150+ ülkede %99,5 doğrulukla kurumsal düzeyde gender tespiti sunar. Uzmanlaşmış API’miz, genel amaçlı yapay zekâ çözümlerini 10x-90x daha hızlı yanıt süreleri ve %9-34 daha yüksek doğrulukla geride bırakır.
Neden Genel Amaçlı Yapay Zeka Yerine Gender-API’yi Seçmelisin?
- Amaca Özel Cinsiyet tespiti için özelleştirilmiştir, genel amaçlı bir yapay zeka değildir
- Şimşek Hızında : Genel yapay zekâda saniyeler sürebilen yanıt sürelerine karşılık 100 ms’nin altında yanıt süreleri
- Daha Doğru Kültürel ve bölgesel zekâ ile %99.5 doğruluk
- Daha Geniş Veritabanı 9+ milyon isim, tipik yapay zekâ eğitim verilerinden %37 daha fazla
- Güvenilir Öngörülebilir performansla %99.9 çalışma süresi SLA’sı
Öne Çıkan Özellikler
- Sadece birkaç satır kodla kolay entegrasyon
- Yüksek hacimli uygulamalar için toplu işlemleme
- Bölgesel isim varyasyonları için ülkeye özel doğruluk
- Akıllı normalizasyon: yazım hatalarını ve farklı varyasyonları doğru şekilde işler
- GDPR uyumlu ve kurumsal kullanıma hazır
Bugün Ücretsiz Başla
Kredi kartı gerekmeden ayda 100 ücretsiz API çağrısı al. İhtiyacın ne olursa olsun, esnek fiyatlandırmayla büyüdükçe kolayca ölçekle.