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.
Download een voorbeeldproject hier:
Documentatie:
https://github.com/microknights/Gender-APIusing 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}");
}
}
}
Professionele genderdetectie voor jouw applicaties
Gender-API.com biedt genderdetectie op enterprise-niveau met 99,5% nauwkeurigheid in 150+ landen. Onze gespecialiseerde API presteert beter dan generieke AI-oplossingen, met 10x-90x snellere responstijden en 9-34% hogere nauwkeurigheid.
Waarom kiezen voor Gender-API in plaats van een generieke AI?
- Speciaal ontwikkeld : Gespecialiseerd in genderherkenning, geen AI voor algemeen gebruik
- Razendsnel : Reactietijden onder de 100 ms vs. seconden bij generieke AI
- Nauwkeuriger : 99,5% nauwkeurigheid met culturele en regionale intelligentie
- Grotere database 9+ miljoen namen, 37% meer dan typische AI-trainingsdata
- Betrouwbaar SLA met 99,9% uptime en voorspelbare prestaties
Belangrijkste functies
- Eenvoudige integratie met slechts een paar regels code
- Batchverwerking voor toepassingen met grote volumes
- Landspecifieke nauwkeurigheid voor regionale naamvariaties
- Slimme normalisatie die typfouten en varianten afhandelt
- GDPR-compliant en klaar voor gebruik in enterprise-omgevingen
Begin vandaag nog gratis
Krijg 100 gratis API-calls per maand, zonder creditcard. Schaal mee terwijl je groeit met flexibele prijzen voor elke use case.