QuestionRecognition
Get a worker's text answer to a text CAPTCHA question. Covers the request schema, an example and each provider's price per 1,000.
QuestionRecognition sends the question of a text CAPTCHA to a worker and returns the typed answer in solution.text. Use it for CAPTCHAs that ask a question instead of showing a picture, such as "If tomorrow is Saturday, what day is today?".
For image-based text CAPTCHAs, use TextRecognition or HumanRecognition.
Send the question
question: the full text of the question. SolveCaptcha limits it to 140 UTF-8 characters.languagePool: optional. Selects workers by language. 2Captcha acceptsen(the default) andru.
Read the answer
solution.text holds the answer as the worker typed it, for example friday. Compare it case-insensitively, because the letter case is the worker's.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
2Captcha | $0.50–$1.00 | |
SolveCaptcha | $0.35 | |
SCTG | $0.11 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes. View settings reference |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
question* | string | Yes | Text of the question to answer, for example If tomorrow is Saturday, what day is today?. SolveCaptcha limits it to 140 UTF-8 characters. Example: |
languagePool | string | No | Optional language hint for choosing workers. 2Captcha accepts en (English, the default) and ru (Russian); SolveCaptcha takes a language code. Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "QuestionRecognition",
"question": "If tomorrow is Saturday, what day is today?"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
text* | string | Yes | Plain-text answer to the question, as typed by the worker. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |