Capy Puzzle CAPTCHA bypass API service
Find the value of
capy_captchakey
parameter in the source code of the page or in the script source link that looks like:https://api.capy.me/puzzle/get_js/?k=PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v
Also find the root part of the script URL, for example:https://api.capy.me/
and use it inapi_server
parameter.Submit a HTTP
GET
orPOST
request to our API URL:http://2captcha.com/in.php
with method set tocapy
and provide the values found on previous step ascaptchakey
andapi_server
and the full page URL as value forpageurl
. You can find the full list of parameters in the table below.Request URL example ->
http://2captcha.com/in.php?key=1abc234de56fab7c89012d34e56fa7b8&method=capy&captchakey=PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v&pageurl=http://mysite.com/
If everything is fine server will return the
ID
of your captcha as plain text, like:OK|2122988149
or as JSON{"status":1,"request":"2122988149"}
ifjson
parameter was used. Otherwise server will return an error code.Make a 15-20 seconds timeout then submit a HTTP
GET
request to our API URL:http://2captcha.com/res.php
to get the result. The full list of parameters is in the table below.If captcha is already solved server will respond in JSON and return the answer containing three values:
captchakey
,challengekey
andanswer
.If captcha is not solved yet server will return
CAPCHA_NOT_READY
result. Repeat your request in 5 seconds.If something went wrong server will return an error code.
{ "captchakey": "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v", "challengekey": "y1Pu234nCwq56WnqB7y8TSZq0Qzp0ltK", "answer": "0xax8ex0xax84x0xkx7qx0xux7qx0xux7gx0x18x7gx0x1sx76x0x26x6ix0x2qx6ix0x3ex68x0" }
Use the values returned in your request to the target website passing them in the corresponding request fields:
capy_captchakey
,capy_challengekey
,capy_answer
.Code examples:
Read more - captcha solving API dоcumentation.
// https://github.com/2captcha/2captcha-php $solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY'); try { $result = $solver->capy([ 'sitekey' => 'PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v', 'url' => 'https://www.mysite.com/captcha/', 'api_server' => 'https://jp.api.capy.me/' ]); } catch (\Exception $e) { die($e->getMessage()); } die('Captcha solved: ' . $result->code);
# https://github.com/2captcha/2captcha-python import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from twocaptcha import TwoCaptcha api_key = 'YOUR_API_KEY' solver = TwoCaptcha(api_key) try: result = solver.capy( sitekey='PUZZLE_Cz04hZLjuZRMYC3ee10C32D3uNms5w', url='https://www.mysite.com/page/captcha/', api_server="https://jp.api.capy.me/", ) except Exception as e: sys.exit(e) else: sys.exit('result: ' + str(result))
// https://github.com/2captcha/2captcha-csharp using System; using System.Linq; using TwoCaptcha.Captcha; namespace TwoCaptcha.Examples { public class CapyExample { public void Main() { TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY"); Capy captcha = new Capy(); captcha.SetSiteKey("PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v"); captcha.SetUrl("https://www.mysite.com/captcha/"); captcha.SetApiServer("https://jp.api.capy.me/"); try { solver.Solve(captcha).Wait(); Console.WriteLine("Captcha solved: " + captcha.Code); } catch (AggregateException e) { Console.WriteLine("Error occurred: " + e.InnerExceptions.First().Message); } } } }
// https://github.com/2captcha/2captcha-java package examples; import com.twocaptcha.TwoCaptcha; import com.twocaptcha.captcha.Capy; public class CapyExample { public static void main(String[] args) { TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY"); Capy captcha = new Capy(); captcha.setSiteKey("PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v"); captcha.setUrl("https://www.mysite.com/captcha/"); captcha.setApiServer("https://jp.api.capy.me/"); try { solver.solve(captcha); System.out.println("Captcha solved: " + captcha.getCode()); } catch (Exception e) { System.out.println("Error occurred: " + e.getMessage()); } } }
// https://github.com/2captcha/2captcha-go package main import ( "fmt" "log" "github.com/2captcha/2captcha-go" ) func main() { client := api2captcha.NewClient("API_KEY") captcha := api2captcha.Capy{ SiteKey: "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v", Url: "https://www.mysite.com/captcha/", } code, err := client.Solve(captcha.ToRequest()) if err != nil { log.Fatal(err); } fmt.Println("code "+code) }
// https://github.com/2captcha/2captcha-cpp #include <cstdio> #include "curl_http.hpp" #include "api2captcha.hpp" int main (int ac, char ** av) { api2captcha::curl_http_t http; http.set_verbose (true); api2captcha::client_t client; client.set_http_client (&http); client.set_api_key (API_KEY); api2captcha::capy_t captcha; captcha.set_site_key ("PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v"); captcha.set_url ("https://www.mysite.com/captcha/"); try { client.solve (cap); printf ("code '%s'\n", cap.code ().c_str ()); } catch (std::exception & e) { fprintf (stderr, "Failed: %s\n", e.what ()); } return 0; }
require 'api_2captcha' client = Api2Captcha.new("YOUR_API_KEY") result = client.capy({ sitekey: 'PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v', pageurl: 'http://mysite.com/', api_server: 'https://jp.api.capy.me/' })