Usage monitoring

Usage और remaining credits monitor करें

Quota खत्म होने से workflow रुकने के पहले अपना मौजूदा GenderAPI balance और package expiration जाँचें।

GEThttps://api.genderapi.io/api/remaining

Quota overview

Processing से पहले capacity जाँचें

Remaining-credit endpoint को monitoring jobs, internal dashboards या batch workflows से इस्तेमाल करें। यह gender lookup किए बिना compact response लौटाता है।

Remaining credits9,443उपलब्ध requests
Package state सक्रियExample response पर आधारित
Expires at1752651601UNIX timestamp
GET

Remaining-credit endpoint

Quota information प्राप्त करें

API key को key query parameter के रूप में जोड़ें। Credential visitors को दिखाई न दे, इसलिए request server-side रखें।

https://api.genderapi.io/api/remaining?key=YOUR_API_KEY
cURL
curl "https://api.genderapi.io/api/remaining?key=YOUR_API_KEY"
Credential safety: इस endpoint को public browser JavaScript से सीधे call न करें। Backend, scheduled job या protected server function से चलाएँ।

Example response

Balance और expiration

JSON
{
  "status": true,
  "remaining": 9443,
  "expiresAt": 1752651601
}

Response fields

FieldTypeDescription
statusbooleanRequest सफल और API key valid होने पर true।
remainingintegerअभी उपलब्ध API credits की संख्या।
expiresAtintegerSeconds में UNIX timestamp के रूप में package expiration।

Operational guidance

ऐसी quota monitoring बनाएँ जो समय पर कार्रवाई करे

01

Current capacity दिखाएँ

Operations और support teams के internal dashboard में balance दिखाएँ।

02

Warning thresholds तय करें

Balance zero होने से पहले alert दें ताकि credits जोड़ने का समय मिले।

03

Bulk workflows सुरक्षित रखें

Job शुरू करने से पहले available credits को planned batch size से compare करें।

Example alert policy

एक universal number के बजाय अपने traffic के अनुकूल thresholds इस्तेमाल करें।

  1. Healthy20% से अधिक बाकी
  2. Warning10–20% बाकी
  3. Critical10% से कम बाकी

Quota exhaustion के लिए योजना बनाएँ

Balance खत्म होने का पता API error से लगने का इंतजार न करें। उचित schedule पर monitor करें, हर individual lookup से पहले अनावश्यक check न करें और तय करें कि application काम pause या retry कैसे करेगा।

अगला संदर्भ

API errors handle करें

त्रुटि कोडPredictable failure handling बनाएँ →मूल्य निर्धारणCredit packages compare करें →