imagetyperz-api/imagetyperz-api-csharp

CAPTCHAFORUM

Administrator
imagetyperzapi is a super easy to use bypass captcha API wrapper for imagetyperz.com captcha service

Installation
git clone https://github.com/imagetyperz-api/imagetyperz-api-csharp

Usage
Simply require the module, set the auth details and start using the captcha service:
using ImageTypers;

Set access_token for authentication:
ImageTypersAPI i = new ImageTypersAPI('your_access_token');

Once you've set your authentication details, you can start using the API.

Get balance
string balance = i.account_balance(); Console.WriteLine(string.Format("Balance: {0}", balance));

Solving
For solving a captcha, it's a two step process:
  • submit captcha details - returns an ID
  • use ID to check it's progress - and get solution when solved.
Each captcha type has it's own submission method.

For getting the response, same method is used for all types.

Image captcha
Code:
Dictionary<string, string> image_params = new Dictionary<string, string>();
// image_params.Add("iscase", "true");         // case sensitive captcha
// image_params.Add("isphrase", "true");       // text contains at least one space (phrase)
// image_params.Add("ismath", "true");         // instructs worker that a math captcha has to be solved
// image_params.Add("alphanumeric", "1");      // 1 - digits only, 2 - letters only
// image_params.Add("minlength", "2");         // captcha text length (minimum)
// image_params.Add("maxlength", "5");         // captcha text length (maximum)
string captcha_id = i.submit_image("captcha.jpg", image_params);
ID received is used to retrieve solution when solved.

Observation It works with URL instead of image file too, but authentication has to be done using token.

reCAPTCHA
For recaptcha submission there are two things that are required.
  • page_url (required)
  • site_key (required)
  • type (optional, defaults to 1 if not given)
    • 1 - v2
    • 2 - invisible
    • 3 - v3
    • 4 - enterprise v2
    • 5 - enterprise v3

  • v3_min_score - minimum score to target for v3 recaptcha - optional
  • v3_action - action parameter to use for v3 recaptcha - optional
  • proxy - proxy to use when solving recaptcha, eg. 12.34.56.78:1234 or 12.34.56.78:1234:user:password - optional
  • user_agent - useragent to use when solve recaptcha - optional
  • data-s - extra parameter used in solving recaptcha - optional
  • cookie_input - cookies used in solving reCAPTCHA - optional
Code:
Dictionary<string, string> d = new Dictionary<string, string>();
d.Add("page_url", "https://your-site.com");
d.Add("sitekey", "7LrGJmcUABBAALFtIb_FxC0LXm_GwOLyJAfbbUCL");
// d.Add("type", "1");                 // optional
// d.Add("v3_min_score", "0.1");       // optional
// d.Add("v3_action", "homepage");     // optional
// d.Add("proxy", "126.45.34.53:123"); // or with auth 126.45.34.53:123:user:pass - optional
// d.Add("user_agent", "Your user agent"); // optional
// d.Add("data-s", "recaptcha data-s value"); // optional
// d.Add("cookie_input", "a=b;c=d"); // optional
string captcha_id = i.submit_recaptcha(d);

ID will be used to retrieve the g-response, once workers have completed the captcha. This takes somewhere between 10-80 seconds.

Documentation https://githubmemory.com/repo/imagetyperz-api/imagetyperz-api-csharp