Género API
Gender-API le ayuda a averiguar si un nombre es más probable que sea utilizado por hombres o por mujeres.
https://gender-api.io/get?name=elizabeth&key=yourkey
{"name":"elizabeth", "gender":"female", "samples":355, "accuracy":100, "duration":"34ms"}
EXPLICACIÓN DE LA API DE GÉNERO
HACER UNA PRUEBA DE CONDUCCIÓN
TAMBIÉN PODEMOS DETERMINAR EL GÉNERO DE UNA DIRECCIÓN DE CORREO ELECTRÓNICO
david3253@gmail.com
David
male
patricia.clarks@outlook.com
Patricia
female
emily.ny@live.com
Emily
female
liamnoland@yahoo.com
Liam
male
l3slie@gmail.com
Leslie
male
j0anna32@live.com
Joanna
female
FÁCIL INTEGRACIÓN
Nuestra API puede integrarse fácilmente en todas las plataformas existentes en cualquier idioma. Echa un vistazo a algunos ejemplos de codificación.
Primero instala nuestra biblioteca con el compositor:
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()
);
}
Vea la documentación completa del cliente aquí:
CARGA DE ARCHIVOS CSV Y EXCEL
Subir archivos CSV con hasta 10.000.000 de conjuntos de datos o archivos de Excel con hasta 100.000 conjuntos de datos por archivo.
input.csv
1
first_name;last_name
2
Silvia;Miller
3
Jonathan;Holmes
4
Sophia;Smith
output.csv
1
firstname;lastname;ga_gender;ga_accuracy
2
Silvia;Miller;female;99
3
Jonathan;Holmes;male;100
4
Sophia;Smith;female;9
Plan gratuito disponible
Únase hoy y reciba hasta 100 solicitudes de forma gratuita cada mes.