Gender API
Inscris-toi gratuitement
Langue expand_more

Fournis-tu des bibliothèques de langages de programmation ?

schedule Dernière mise à jour: September 29, 2026
Oui. Nous proposons des clients API officiels pour PHP, Python, Node.js, Java, Go, Ruby, Rust, Perl et .NET. Tu les trouveras tous ici. Comme l’API renvoie du JSON simple, tu peux aussi l’appeler directement depuis n’importe quel langage. Jette un œil à nos exemples de code pour commencer à utiliser l’API :

Commence par installer notre bibliothèque avec Composer :

composer require gender-api/client
<?php

use GenderApi\Client as GenderApiClient;

$client = new GenderApiClient('your-api-key');

// Simple gender lookup
$result = $client->getByFirstName('Elisabeth');

if ($result->genderFound()) {
    echo $result->getGender();    // "female"
    echo $result->getAccuracy();  // 99
}

// First name with country (e.g., "Andrea" varies by country)
$result = $client->getByFirstNameAndCountry('Andrea', 'IT');
echo $result->getGender(); // "male" (in Italy)

// Full name with automatic first/last name splitting
$result = $client->getByFirstNameAndLastName('Sandra Miller');

echo $result->getFirstName(); // "Sandra"
echo $result->getLastName();  // "Miller"
echo $result->getGender();    // "female"

// Email address analysis
$result = $client->getByEmailAddress('elisabeth.smith@company.com');
echo $result->getGender();  // "female"

// Batch processing - multiple names in one call
$names = ['Michael', 'Sarah', 'Kim'];
$results = $client->getByMultipleNames($names);

foreach ($results as $result) {
    printf(
        "%s: %s (%d%% confidence)\n",
        $result->getFirstName(),
        $result->getGender(),
        $result->getAccuracy()
    );
}

L'ensemble de la documentation client est accessible ici :

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

Commence par installer notre bibliothèque avec npm :

L'ensemble de la documentation client est accessible ici :

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

Commence par installer notre bibliothèque avec npm :

L'ensemble de la documentation client est accessible ici :

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

Installe d'abord notre bibliothèque avec pip :

L'ensemble de la documentation client est accessible ici :

https://github.com/markus-perl/gender-api-client-python
https://pypi.org/project/gender-api-client/

label Mots-clés associés

langages de programmation bibliothèques SDK exemples de code plugin jQuery client REST

Cet article t’a-t-il été utile ?

Chat