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.

먼저 composer로 우리 라이브러리를 설치해 줘:

전체 클라이언트 문서는 여기에서 확인해 줘:

https://github.com/markus-perl/gender-api-client

먼저 npm으로 우리 라이브러리를 설치해 줘:

전체 클라이언트 문서는 여기에서 확인해 줘:

https://github.com/markus-perl/gender-api-client-npm

먼저 npm으로 우리 라이브러리를 설치해 줘:

전체 클라이언트 문서는 여기에서 확인해 줘:

https://github.com/markus-perl/gender-api-client-npm

먼저 pip로 우리 라이브러리를 설치해 줘:

전체 클라이언트 문서는 여기에서 확인해 줘:

https://github.com/markus-perl/gender-api-client-python
https://pypi.org/project/gender-api-client/

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}");
        }
    }
}

애플리케이션을 위한 전문적인 성별 판별 기능

Gender-API.com은 150개 이상의 국가에서 99.5% 정확도로 기업용 수준의 성별 감지를 제공해. 우리 전문 API는 범용 AI 솔루션보다 응답 속도가 10배~90배 더 빠르고, 정확도도 9~34% 더 뛰어나.

왜 범용 AI 대신 Gender-API를 선택해야 할까?

  • 목적에 맞게 설계됨 성별 감지에 특화된 서비스이며, 범용 AI가 아니야
  • 번개처럼 빠른 속도 : 일반 AI는 몇 초씩 걸리는 반면, 100ms 미만 응답 속도
  • 더 정확하게 문화 및 지역 인텔리전스를 바탕으로 99.5% 정확도
  • 더 방대한 데이터베이스 9백만 개 이상의 이름, 일반적인 AI 학습 데이터보다 37% 더 많아
  • 신뢰할 수 있어요 예측 가능한 성능을 보장하는 99.9% 업타임 SLA

주요 기능

  • 몇 줄의 코드만으로 손쉽게 연동할 수 있어요
  • 대량 애플리케이션을 위한 배치 처리
  • 지역별 이름 변형에 대한 국가별 정확도
  • 오타와 다양한 표기 변형까지 똑똑하게 처리하는 스마트 정규화
  • GDPR 준수 및 엔터프라이즈급으로 준비 완료

오늘 바로 무료로 시작해봐

신용카드 없이도 매달 API 호출 100회를 무료로 이용할 수 있어. 모든 사용 사례에 맞춘 유연한 요금제로, 성장하는 만큼 손쉽게 확장해 봐.

채팅