API Document

Solve Recaptcha API Document

Endpoint URL: http://api.solverecaptcha.com/

API KEY:
If you do not have an API key, signup to get one here.

field value
user_id
The user ID which can be found in the dashboard.
%user_id%
key
Your API key. Found in the dashboard.
%api_key%
sitekey
The Google recaptcha2 data-sitekey value.
%data-sitekey%
pageurl
The Google recaptcha2 captcha page URL.
%pageurl%

Example Response:

OK|03AO6mBfzzNvDte0k65Ix0Qn8Vw-rYTKOig_tQECXFGBKGw04VnM7Y8cEYcrOtZOqnKoTH86yyz4jWOLsHtFRojJREaVbHjEACLUkpsLP2DsPG2kJ_
b_IXoQrokIdcqUnCbI29VzaFcEjlfhAWkyJaUQhlZfPnoPgKXb9PpkLxqYjPlzGHFr4jI9wJLXPAUiaz
Wkvr2WAmT8CTKAuLmmEopID9I40d8Lknb05BIYrV-cvdBw774VDYAMzcQy9eAdwU2i9WWEviWtbBSNejoZhLor1Ioey4ms
Wv8VNQc1NFVbCdkZyhzUV6z5lfL7ABXAKxZsJO6c0LnSO9

Remove the "OK|" string to get the g-recaptcha-response token. See validation instructions on how to use the token to validate the captcha.

Error Responses:

ERROR_CAPTCHA_UNSOLVABLE - The Google recaptcha2 sent is unsolvable by our solvers.
ERROR_NO_AVAILABLE_THREADS - No threads available under your account's thread pool, upgrade to open more.
ERROR_API_KEY_NOT_FOUND - The API key passed is not found in our database.
ERROR_ACCESS_DENIED - Access to the API is denied, contact administrator at admin@solverecaptcha.com.

Validation Instructions:

Locate the element with id g-recaptcha-response and make it visible deleting display:none parameter.

As an alternative you can just use javascript to set the value of g-recaptcha-response field:


document.getElementById("g-recaptcha-response").innerHTML="TOKEN_FROM_SOLVE_RECAPTCHA";

g-recaptcha-response: Once user checks the checkbox (I am not a robot), a field with id g-recaptcha-response gets populated in your HTML. You can now use the value of this field to know if the user is a bot or not, using the below mentioned lines:-


var captchResponse = $('#g-recaptcha-response').val();
if(captchResponse.length == 0 )
	//user has not yet checked the 'I am not a robot' checkbox
else 
	//user is a verified human and you are good to submit your form now		

Back to home | Back to dashboard

Copyright © 2018 - Solve Recaptchatm - All rights reserved world-wide.