Giter Club home page Giter Club logo

imagetyperz-api-csharp's Introduction

imagetyperzapi - Imagetyperz API wrapper

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

Installation

Install-Package imagetyperzapi

or

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

How to use?

Simply import the library, set the auth details and start using the captcha service:

using imagetyperzapi;

Set access_token or username and password (legacy) for authentication

string access_key = "your_access_key";
ImagetyperzAPI i = new ImagetyperzAPI(access_key);

legacy authentication, will get deprecated at some point

i.set_user_and_password("your_username", "your_password");

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));

Submit image captcha

var captcha_text = i.solve_captcha("captcha.jpg");
Console.WriteLine(string.Format("Got response: {0}", captcha_text));

Takes a 2nd argument, case_sensitive which is a bool

// tell our server this is caseSensitive, false by default
var captcha_text = i.solve_captcha("captcha.jpg", true);

Works with both files and URLs

var captcha_text = i.solve_captcha("http://abc.com/captcha.jpg");

OBS: URL instead of image file path works when you're authenticated with access_key. For those that are still using username & password, retrieve your access_key from imagetyperz.com

Submit recaptcha details

For recaptcha submission there are two things that are required.

  • page_url
  • site_key
string page_url = "your_page_url_here";
string sitekey = "your_site_key_here";
// get captcha_id, we'll use this later
string captcha_id = i.submit_recaptcha(page_url, sitekey);

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

Retrieve captcha response

Once you have the captchaID, you check for it's progress, and later on retrieve the gresponse.

The in_progress(captcha_id) method will tell you if captcha is still being decoded by workers. Once it's no longer in progress, you can retrieve the gresponse with retrieve_recaptcha(captcha_id)

Console.WriteLine("Waiting for recaptcha to be solved ...");
while (i.in_progress(captcha_id))       // check if it's still being decoded
{ System.Threading.Thread.Sleep(10000); }      // sleep for 10 seconds
string recaptcha_response = i.retrieve_captcha(captcha_id);     // get the response
Console.WriteLine(string.Format("Recaptcha response: {0}", recaptcha_response));

Other methods/variables

Affiliate id

The constructor accepts a 2nd parameter, as the affiliate id.

ImagetypersAPI i = new ImagetypersAPI(access_token, 123);

Requests timeout

You can set the timeout for the requests using the set_timeout(seconds) method

i.set_timeout(10);

Submit recaptcha with proxy

When a proxy is submitted with the recaptcha details, the workers will complete the captcha using the provided proxy/IP.

i.submit_recaptcha(page_url, sitekey, "127.0.0.1:1234");

Proxy with authentication is also supported

i.submit_recaptcha(page_url, sitekey, "127.0.0.1:1234:user:pass");

Set captcha bad

When a captcha was solved wrong by our workers, you can notify the server with it's ID, so we know something went wrong

i.set_captcha_bad(captcha_id);

Examples

Compile and run the example project in solution

Command-line client

For those that are looking for a command-line, check out the imagetyperz-cli project in solution It's a tool that allows you to do pretty much all the API offers, from the command-line Check it's README-cli.txt file for more details

Binary

If you don't want to compile your own library, you can check the binary folder for a compiled version. Keep in mind that this might not be the latest version with every release

License

API library is licensed under the MIT License

More information

More details about the server-side API can be found here

captcha, bypasscaptcha, decaptcher, decaptcha, 2captcha, deathbycaptcha, anticaptcha, bypassrecaptchav2, bypassnocaptcharecaptcha, bypassinvisiblerecaptcha, captchaservicesforrecaptchav2, recaptchav2captchasolver, googlerecaptchasolver, recaptchasolverpython, recaptchabypassscript

imagetyperz-api-csharp's People

Contributors

imagetyperz-api avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.