गाइड
getToken: सीधे टोकन प्राप्त करें

getToken: सीधे टोकन प्राप्त करें

WARNING

चयनित कैप्चा प्रकार को हल करने के लिए सीधे कार्य प्राप्त करें।

पैरामीटर में कैप्चा के प्रकार को निर्दिष्ट करें।

वर्तमान में निम्नलिखित प्रकारों का समर्थन करता है:

  • ReCaptchaV2Task

  • ReCaptchaV2EnterpriseTask

  • ReCaptchaV2TaskProxyLess

  • ReCaptchaV2EnterpriseTaskProxyLess

  • ReCaptchaV3Task

  • ReCaptchaV3EnterpriseTask

  • ReCaptchaV3TaskProxyLess

  • ReCaptchaV3EnterpriseTaskProxyLess

अनुरोध का उदाहरण

POST https://api.capsolver.com/getToken
Host: api.capsolver.com
Content-Type: application/json
 
{
    "clientKey":"YOUR_API_KEY",
    "appId": "APP_ID",
    "task": {
        "type":"ReCaptchaV3TaskProxyLess",// Write below the type you need to identify
        "websiteURL": "https://demo.com/",
        "websiteKey": "6LcpsXsnAAAAAbbAcafeiCCr3xxx2UeZ8qef1Hbb"
    }
}

अनुरोध पैरामीटर

पैरामीटरप्रकारआवश्यकविवरण
clientKeyStringYesक्लाइंट अकाउंट कुंजी, डैशबोर्ड में पाई जा सकती है
appIdStringNoआपका डेवलपर ऐपआईडी, डैशबोर्ड के डेवलपर अनुभाग में आवेदन करें
taskObjectYesकार्य वस्तु
callbackUrlStringNoटोकन इस एंडपॉइंट पर भेजा जाएगा (पोस्ट)

प्रतिक्रिया का उदाहरण

{
    "errorId": 0,
	"taskId": "...",
    "solution": {
        "gRecaptchaResponse": "03AGdBq25SxXT-pmSeBXjzScW-EiocHwwpwqtk1QXlJnGnUJCZrgjwLLdt7cb0..."
    },
    "status": "ready"
}

प्रतिक्रिया संरचना

पैरामीटरप्रकारविवरण
errorIdIntegerत्रुटि संदेश:
0 - कोई त्रुटि नहीं
1 - त्रुटि के साथ
errorCodeStringerrorCode: full list of errors
errorDescriptionStringत्रुटि विवरण
statusString• ready
solutionObjectकार्य परिणाम डेटा। प्रत्येक प्रकार के कार्य के लिए भिन्न होता है

प्रतिक्रिया विनिर्देश

  • पहचान सफलता: जब errorId = 0 और status = ready हो, तो परिणाम solution में होता है।

  • त्रुटि: जब errorId 0 से अधिक हो, तो कृपया errorDescription के अनुसार त्रुटि जानकारी जानें।

    errorCode: full list of errors