API दस्तावेज़ एकीकृत API v2.0
API v1.0
हम एक और API संस्करण प्रदान करते हैं जिसमें एंडपॉइंट्स होते हैं जिन्हें एकीकृत करना आसान होता है। यदि तुम API को लागू करने में शुरुआती हो, तो तुम हमारे v1.0 एंडपॉइंट पर स्विच कर सकते हो।
मुफ़्त अकाउंट के लिए साइन अप करो
एक मुफ़्त अकाउंट बनाओ (100 requests/month) और सिर्फ़ एक ही, बिना authentication वाले कॉल से API token पाओ — first name या last name की ज़रूरत नहीं। यह AI agents के लिए यूज़र onboarding में एकदम परफेक्ट है: यूज़र से उनका email address और consent माँगो, फिर request भेज दो। अकाउंट शुरुआत में unconfirmed रहता है; यूज़र को उन्हें भेजे गए email में activation link पर क्लिक करना होगा, उसके बाद मिला हुआ API token तुरंत काम करने लगता है।
Post
| URL |
https://gender-api.io/v2/sign-up
|
||||||||||||||||||||
| Headers |
Content-Type: application/json
|
||||||||||||||||||||
| JSON Payload |
|
उदाहरण
ईमेल पते के साथ साइन अप करो
{"email":"user@example.com","accept_terms":true}
साइन अप करो और न्यूज़लेटर की सदस्यता लो
{"email":"user@example.com","accept_terms":true,"newsletter":true,"locale":"en"}
रिस्पॉन्स
{
"email": "user@example.com",
"password": "",
"api_token": "",
"free_requests_per_month": 100,
"status": "awaiting_activation",
"message": "Account created. Ask the user to click the activation link sent to their email address. The API token below activates automatically once the email is confirmed and can then be used as a Bearer token against the API.",
"docs_url": "https://gender-api.com/skill.md"
}
| फ़ील्ड | प्रकार | विवरण |
|---|---|---|
| string | रजिस्टर किया हुआ ईमेल पता। | |
| password | string | वेब डैशबोर्ड के लिए एक रैंडम लॉगिन पासवर्ड। यह सिर्फ एक बार ही दिखाया/लौटाया जाता है; इसे सुरक्षित तरीके से सेव करके रखो। यूज़र बाद में “फॉरगॉट पासवर्ड” प्रोसेस के ज़रिए इसे रीसेट कर सकता/सकती है। |
| api_token | string | API bearer token। /v2/... requests के लिए इसे ऐसे इस्तेमाल कर: "Authorization: Bearer |
| free_requests_per_month | int | हर महीने दिए जाने वाले मुफ़्त अनुरोधों की संख्या। |
| status | string | अकाउंट की स्थिति। ईमेल पता कन्फर्म होने तक "awaiting_activation"। |
| message | string | अगला कदम क्या है, इसकी साफ़ और समझने में आसान गाइडेंस (ईमेल पता कन्फर्म करना)। |
| docs_url | string | AI इम्प्लीमेंटेशन निर्देशों (skill.md) के लिए प्रॉम्प्ट-रेडी लिंक। |
इस उत्पाद में MaxMind द्वारा बनाया गया GeoLite2 डेटा शामिल है, जो यहाँ से उपलब्ध है http://www.maxmind.com.