API تقدير العمر من الاسم
قدّر مؤشرات العمر من الاسم الأول واسم العائلة.
عنوان URL الأساسي
https://api.genderrecognition.com
نقطة النهاية
POST /v1/voice-gender-recognition/api/age
ترويسات الطلب
apiKey: YOUR_API_KEY
Content-Type: application/json
محتوى الطلب
{
"firstName": "Alex",
"lastName": "Morgan"
}
مثال
curl -X POST "https://api.genderrecognition.com/v1/voice-gender-recognition/api/age" \
-H "Content-Type: application/json" \
-H "apiKey: YOUR_API_KEY" \
-d '{
"firstName": "Alex",
"lastName": "Morgan"
}'
الاستجابة
{
"success": true,
"name": "Alex Morgan",
"age": "25-34",
"confidence": 0.78,
"remainingRequests": 2999
}
حالات الخطأ
مفتاح API مفقود
{
"error": "API key is required"
}
مفتاح API غير صالح
{
"error": "Invalid API key"
}
الاسم الأول مفقود
{
"error": "First name is required"
}
اسم العائلة مفقود
{
"error": "Last name is required"
}
الاسم طويل جدًا
{
"error": "Last name must not exceed 50 characters"
}
ترويسة نوع محتوى JSON مفقودة
{
"error": "Content-Type header is required. Please set Content-Type: application/json"
}
نوع محتوى JSON غير مدعوم
{
"error": "Content-Type must be application/json"
}
تم تجاوز الحصة
{
"error": "Insufficient remaining requests"
}
فشلت المعالجة
{
"error": "Internal server error"
}