TypeScript Client
Type-safe TypeScript client for Gender-API.com with full IntelliSense support and strict type checking. Our AI-powered API delivers 99.5% accurate gender detection 10x-90x faster than generic AI models like ChatGPT. Perfect for modern web applications, Node.js backends, and Angular/React/Vue projects. The strongly-typed interfaces ensure compile-time safety and excellent developer experience. Access our specialized database of over 9 million names across 150+ countries with country-specific accuracy. Unlike generic LLMs, our API is purpose-built for name-gender associations with smart normalization and continuous learning. Start free with 100 monthly API calls. GDPR compliant and production-ready.
أولاً قم بتثبيت مكتبتنا باستخدام npm:
npm install gender-api.com-client --save
import { Client } from 'gender-api.com-client';
const client = new Client('your-api-key');
// Simple gender lookup
const result = await client.getByFirstName('Theresa');
console.log(`${result.first_name} is ${result.gender} (Probability: ${result.probability}`);
// First name with country (e.g., "Andrea" varies by country)
const resultWithCountry = await client.getByFirstName('Andrea', { country: 'IT' });
console.log(`${resultWithCountry.first_name} in Italy is ${resultWithCountry.gender}`);
// Full name with automatic first/last name splitting
const fullResult = await client.getByFullName('John Smith');
console.log(`${fullResult.first_name} ${fullResult.last_name} is ${fullResult.gender}`);
// Email address analysis
const emailResult = await client.getByEmailAddress('marie.curie@example.com');
console.log(`Email gender: ${emailResult.gender}`);
// Batch processing - multiple names in one call
const names = [
{ id: '1', first_name: 'Theresa', country: 'US' },
{ id: '2', first_name: 'John', country: 'US' }
];
const batchResults = await client.getByFirstNameMultiple(names);
batchResults.forEach(r => {
console.log(`ID: ${r.input.id}, Gender: ${r.gender}`);
});
// Account statistics
const stats = await client.getStatistics();
console.log(`Credits Remaining: ${stats.remaining_credits}`);
شاهد وثائق العميل الكاملة هنا:
اكتشاف احترافي للجنس لتطبيقاتك
Gender-API.com يقدّم لك تحديد جنس الاسم بمستوى مؤسسي وبدقة 99.5% عبر أكثر من 150 دولة. واجهة الـAPI المتخصصة عندنا تتفوّق على حلول الذكاء الاصطناعي العامة بسرعات استجابة أسرع بـ10 إلى 90 مرة، وبدقة أعلى بنسبة 9% إلى 34%.
ليش تختار Gender-API بدل الذكاء الاصطناعي العام؟
- مصمّم خصيصًا متخصص في تحديد gender، وليس ذكاءً اصطناعيًا عامًا متعدد الاستخدامات
- سرعة البرق : أوقات استجابة أقل من 100 ملّي ثانية مقابل ثوانٍ مع الذكاء الاصطناعي العام
- أكثر دقة دقّة 99.5% مع ذكاء ثقافي وإقليمي
- قاعدة بيانات أكبر أكثر من 9 ملايين اسم، بزيادة 37% مقارنةً ببيانات تدريب الذكاء الاصطناعي المعتادة
- موثوق اتفاقية مستوى خدمة (SLA) بوقت تشغيل 99.9% مع أداء ثابت يمكن الاعتماد عليه
الميزات الرئيسية
- تكامل سهل ببضعة أسطر من الكود فقط
- المعالجة على دفعات للتطبيقات ذات حجم الاستخدام الكبير
- دقّة خاصة بكل دولة لاختلافات الأسماء الإقليمية
- توحيد ذكي للأسماء يتعامل مع الأخطاء الإملائية والاختلافات في الكتابة
- متوافق مع اللائحة العامة لحماية البيانات (GDPR) وجاهز للاستخدام على مستوى المؤسسات
ابدأ مجانًا اليوم
احصل على 100 طلب API مجاني شهريًا بدون الحاجة إلى بطاقة ائتمان. كبّر استخدامك مع نموك بفضل تسعير مرن يناسب كل حالة استخدام.