Quota overview
Processing से पहले capacity जाँचें
Remaining-credit endpoint को monitoring jobs, internal dashboards या batch workflows से इस्तेमाल करें। यह gender lookup किए बिना compact response लौटाता है।
Remaining-credit endpoint
Quota information प्राप्त करें
API key को key query parameter के रूप में जोड़ें। Credential visitors को दिखाई न दे, इसलिए request server-side रखें।
https://api.genderapi.io/api/remaining?key=YOUR_API_KEYcurl "https://api.genderapi.io/api/remaining?key=YOUR_API_KEY"Example response
Balance और expiration
{
"status": true,
"remaining": 9443,
"expiresAt": 1752651601
}Response fields
| Field | Type | Description |
|---|---|---|
status | boolean | Request सफल और API key valid होने पर true। |
remaining | integer | अभी उपलब्ध API credits की संख्या। |
expiresAt | integer | Seconds में UNIX timestamp के रूप में package expiration। |
Operational guidance
ऐसी quota monitoring बनाएँ जो समय पर कार्रवाई करे
Current capacity दिखाएँ
Operations और support teams के internal dashboard में balance दिखाएँ।
Warning thresholds तय करें
Balance zero होने से पहले alert दें ताकि credits जोड़ने का समय मिले।
Bulk workflows सुरक्षित रखें
Job शुरू करने से पहले available credits को planned batch size से compare करें।
एक universal number के बजाय अपने traffic के अनुकूल thresholds इस्तेमाल करें।
- Healthy20% से अधिक बाकी
- Warning10–20% बाकी
- Critical10% से कम बाकी
Quota exhaustion के लिए योजना बनाएँ
Balance खत्म होने का पता API error से लगने का इंतजार न करें। उचित schedule पर monitor करें, हर individual lookup से पहले अनावश्यक check न करें और तय करें कि application काम pause या retry कैसे करेगा।
अगला संदर्भ