Skip to content

Code samples and SDKs

The samples here are complete, runnable files that read the client key from the environment variable YESCAPTCHA_CLIENT_KEY. Each task type page also has curl, Python and Node.js examples generated for that type.

To test from the command line, see the curl examples in Quickstart and getBalance.

These SDKs were contributed by users and are unofficial. We haven’t reviewed their code; evaluate them before use and contact the authors with questions.

Language Project
Python github.com/yescaptcha/yescaptcha-python
Node.js github.com/ScoLib/yescaptcha
Go github.com/FreedWu/yescaptcha
Go github.com/deanxv/yescaptcha-go

Whatever SDK you use, check that it calls api.yescaptcha.com or cn.yescaptcha.com and uses the task type names on this site.