Saltar al contenido principal

API de idioma por nombre

Identifica el idioma probablemente asociado al nombre y al apellido.

URL base​

https://api.genderrecognition.com

Endpoint​

POST /v1/voice-gender-recognition/api/language

Encabezados​

apiKey: YOUR_API_KEY
Content-Type: application/json

Cuerpo de la solicitud​

{
"firstName": "Alex",
"lastName": "Morgan"
}

Ejemplo​

curl -X POST "https://api.genderrecognition.com/v1/voice-gender-recognition/api/language" \
-H "Content-Type: application/json" \
-H "apiKey: YOUR_API_KEY" \
-d '{
"firstName": "Alex",
"lastName": "Morgan"
}'

Respuesta​

{
"success": true,
"name": "Alex Morgan",
"language": "English",
"confidence": 0.8,
"remainingRequests": 2999
}

Errores posibles​

Falta la clave API​

{
"error": "API key is required"
}

Clave API no válida​

{
"error": "Invalid API key"
}

Falta el nombre​

{
"error": "First name is required"
}

Falta el apellido​

{
"error": "Last name is required"
}

El nombre es demasiado largo​

{
"error": "Last name must not exceed 50 characters"
}

Falta el encabezado de tipo de contenido JSON​

{
"error": "Content-Type header is required. Please set Content-Type: application/json"
}

Tipo de contenido JSON no admitido​

{
"error": "Content-Type must be application/json"
}

Cuota excedida​

{
"error": "Insufficient remaining requests"
}

Error de procesamiento​

{
"error": "Internal server error"
}