JavaScript / Node.js

Integrate Gender-API.com into your JavaScript applications with our official client library supporting both browser and Node.js environments. Our AI-powered API delivers 99.5% accurate gender detection 10x-90x faster than generic AI models. Perfect for client-side form validation, user personalization, and backend services. The Promise-based API makes integration effortless with async/await support. Unlike ChatGPT or other LLMs, our specialized database contains 37% more names and provides country-specific accuracy. Process names in under 100ms with 99.9% uptime SLA. Ideal for React, Vue, Angular, and Express.js applications. Start free with 100 monthly API calls, no credit card required. Trusted by developers worldwide.

まず composer を使ってライブラリをインストールします:

クライアントの詳細なドキュメントはこちら:

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

まず npm を使ってライブラリをインストールします:

クライアントの詳細なドキュメントはこちら:

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

まず npm を使ってライブラリをインストールします:

npm install gender-api.com-client --save
const { Client } = require('gender-api.com-client');

const client = new Client('your-api-key');

// Simple gender lookup
client.getByFirstName('Theresa').then(result => {
  console.log(`${result.first_name} is ${result.gender} (Probability: ${result.probability}`);
}).catch(error => {
  console.error('Error:', error);
});

// First name with country (e.g., "Andrea" varies by country)
client.getByFirstName('Andrea', { country: 'IT' }).then(result => {
  console.log(`${result.first_name} in Italy is ${result.gender}`);
}).catch(error => {
  console.error('Error:', error);
});

// Full name with automatic first/last name splitting
client.getByFullName('John Smith').then(result => {
  console.log(`${result.first_name} ${result.last_name} is ${result.gender}`);
}).catch(error => {
  console.error('Error:', error);
});

// Email address analysis
client.getByEmailAddress('marie.curie@example.com').then(result => {
  console.log(`Email gender: ${result.gender}`);
}).catch(error => {
  console.error('Error:', error);
});

// Batch processing - multiple names in one call
const names = [
  { id: '1', first_name: 'Theresa', country: 'US' },
  { id: '2', first_name: 'John', country: 'US' }
];

client.getByFirstNameMultiple(names).then(results => {
  results.forEach(r => {
    console.log(`ID: ${r.input.id}, Gender: ${r.gender}`);
  });
}).catch(error => {
  console.error('Error:', error);
});

// Account statistics
client.getStatistics().then(stats => {
  console.log(`Credits Remaining: ${stats.remaining_credits}`);
}).catch(error => {
  console.error('Error:', error);
});

クライアントの詳細なドキュメントはこちら:

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/

アプリケーション向けのプロフェッショナルな性別判定

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