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.
Nejprve nainstalujte naši knihovnu pomocí 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}`);
Zde naleznete kompletní dokumentaci klienta:
Profesionální rozpoznávání pohlaví pro tvoje aplikace
Gender-API.com ti přináší genderovou detekci na úrovni enterprise s přesností 99,5 % ve více než 150 zemích. Naše specializované API překonává obecná AI řešení díky 10× až 90× rychlejším odezvám a o 9–34 % vyšší přesnosti.
Proč zvolit Gender-API místo obecné AI?
- Účelově navrženo Specializované na rozpoznání genderu, není to univerzální AI pro vše možné
- Blesková rychlost : Odezva pod 100 ms vs. sekundy u běžné AI
- Přesnější 99,5% přesnost díky kulturní a regionální inteligenci
- Větší databáze 9+ milionů jmen, o 37 % víc než typická trénovací data pro AI
- Spolehlivé SLA s dostupností 99,9 % a předvídatelným výkonem
Klíčové funkce
- Snadná integrace pomocí pár řádků kódu
- Dávkové zpracování pro aplikace s velkým objemem dat
- Přesnost pro konkrétní země u regionálních variant jmen
- Chytrá normalizace, která si poradí s překlepy a různými variantami
- V souladu s GDPR a připravené pro enterprise použití
Začni zdarma ještě dnes
Získej 100 bezplatných API volání měsíčně – bez potřeby kreditní karty. Rostoucími nároky se snadno přizpůsobíš díky flexibilnímu cenovému modelu pro každý scénář použití.