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 detection देता है। हमारा specialized API, generic AI solutions की तुलना में 10x-90x तेज़ response times और 9-34% बेहतर accuracy के साथ साफ़ तौर पर आगे है।

क्यों चुनो Gender-API को Generic AI के बजाय?

  • उद्देश्य के लिए विशेष रूप से बनाया गया : जेंडर पहचान के लिए खास तौर पर बनाया गया है, यह सामान्य उपयोग वाला AI नहीं है
  • अत्यंत तेज़ : सामान्य AI की तुलना में 100ms से कम रिस्पॉन्स टाइम — सेकंड्स नहीं
  • और भी ज़्यादा सटीक सांस्कृतिक और क्षेत्रीय समझ के साथ 99.5% सटीकता
  • और भी बड़ा डेटाबेस 9+ मिलियन नाम, सामान्य AI प्रशिक्षण डेटा की तुलना में 37% ज़्यादा
  • विश्वसनीय 99.9% अपटाइम SLA, साथ में भरोसेमंद और अनुमानित परफॉर्मेंस

मुख्य विशेषताएँ

  • सिर्फ़ कुछ लाइनों के कोड के साथ आसान इंटीग्रेशन
  • उच्च-वॉल्यूम ऐप्लिकेशनों के लिए बैच प्रोसेसिंग
  • क्षेत्रीय नामों के अलग-अलग रूपों के लिए देश-विशिष्ट सटीकता
  • टाइपो और अलग-अलग वैरिएंट्स को स्मार्ट तरीके से नॉर्मलाइज़ करने की सुविधा
  • GDPR के अनुरूप और एंटरप्राइज़ के लिए तैयार

आज ही मुफ़्त में शुरू करो

हर महीने 100 मुफ्त API कॉल्स पाओ — बिना क्रेडिट कार्ड के। जैसे-जैसे तुम बढ़ो, हर यूज़ केस के लिए लचीली प्राइसिंग के साथ आसानी से स्केल करो।

संवाद