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%の精度を誇るエンタープライズ品質のgender判定を提供するよ。汎用的なAIソリューションよりも、レスポンスは10〜90倍速く、精度も9〜34%高いのが特長。

なぜ汎用AIではなくGender-APIを選ぶの?

  • 目的に特化 性別判定に特化。汎用AIではありません
  • 超高速 汎用AIが数秒かかるのに対し、レスポンスタイムは100ms未満
  • より正確に 文化や地域性を踏まえたインテリジェンスで、精度99.5%
  • より大きなデータベース 900万件以上の名前数。一般的なAI学習データより37%多い
  • 信頼できる 予測可能なパフォーマンスを備えた、稼働率 99.9% のSLA

主な機能

  • わずか数行のコードでかんたんに統合できるよ
  • 大量データを扱うアプリ向けの一括処理
  • 地域ごとの名前のバリエーションに対応した、国別の高精度判定
  • スマートな正規化で、誤字や表記ゆれにも対応
  • GDPR準拠で、エンタープライズにも対応

今日から無料で始めよう

クレジットカード不要で、毎月APIを100回まで無料で使えるよ。用途に合わせて選べる柔軟な料金プランで、成長に合わせてスムーズにスケールできる。

Chat