Text captcha
Text captcha: parameters, request, response and the 2Captcha method of TextCaptchaTask.
On this page
A question in plain text (“What is 2 + 3?”, “What colour is the sky?”). Send the question in comment and get the answer in solution.text.
| Status | coming soon |
| Type codes | TextCaptchaTask — without a proxy |
| Proxy | not needed |
| Also accepted as | — |
| Price | set when the type is switched on — see pricing |
Parameters#
Fields of the task object in createTask:
ParameterDescription
typestringrequired- Task type:
TextCaptchaTask. commentstringrequired- Instruction for the solver. One line of text, up to 1024 characters.
languagePoolstring- Language of the workers:
en(default),ru,zhand other two-letter codes. It may also be sent next totask, as 2Captcha clients do. Letters, digits and_ - . :, up to 8 characters.
Request#
A TextCaptchaTask task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "TextCaptchaTask",
"comment": "Type the letters"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"text": "x7k2p",
"userAgent": ""
},
"cost": "0.000500",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370012,
"solveCount": 1
}2Captcha in.php#
The same task through the 2Captcha API: the textcaptcha parameter with the question (no method needed), parameters → task fields:
| in.php | task |
|---|---|
textcaptcha | comment |
lang | languagePool |
res.php returns text of the solution as text (OK|…), or in request with json=1.