Create a job
Create a FunCAPTCHA match job
Send a FunCAPTCHA match puzzle and get a job id.
https://api.solvecha.com/v1/recognition/funcaptcha_matchCreates a job for a game-style FunCAPTCHA where one picture must match a reference, for example a count. Send the task text and one uncropped game image.
#Authorization
Send your API key as Authorization: Bearer YOUR_API_KEY. Other ways are the key field of the body and the key query parameter. See Authentication.
#Headers
| Name | Type | Required | Description |
|---|---|---|---|
X-Solvecha-Partner |
string | optional | Optional partner code of an integration. It only counts for a customer who has no partner yet and has not paid yet. An unknown code is ignored. See Partner integrations. |
#Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
sync |
boolean | optional | sync=1 (or "sync": true in the JSON body) is the same as wait=15. |
wait |
number | optional | Seconds to wait for the answer, up to 20. On a create request the response is the answer, as on the GET path, and the job id is in the X-Task-Id header. If the job is not done in time, you get the job id as usual. On a GET request the server holds the connection until the job is done (long poll), then returns the answer or error 14. |
indices |
boolean | optional | indices=1 adds indices next to data: the numbers of the selected tiles, counted from 0. Only for reCAPTCHA answers. |
#Request body
JSON, or url-encoded form data. The body is limited to 4.5 MB.
| Name | Type | Required | Description |
|---|---|---|---|
key |
string | optional | Your API key, if you do not send it in the Authorization header or the query string. |
partner |
string | optional | Optional partner code, if you cannot set the X-Solvecha-Partner header. The header wins when both are present. Up to 128 characters. |
task |
string | required | The instruction text, for example Match the number of rocks with the number on the left. |
image_data |
array of strings | required | One uncropped base64 picture of the game. |
#Response
#200 OK
The job was created. data is the job id.
#Errors
An error has the HTTP status of its code and the body shown in the response examples:
| Code | HTTP status | When |
|---|---|---|
10 Invalid request |
400 | The body is not JSON or url-encoded form data (multipart is not supported), it is larger than 4.5 MB, or a field or the number of images is wrong. |
11 Rate limit reached |
429 | Your key is above the create requests per minute of its plan. |
15 Invalid key |
401 | The key is missing, malformed or unknown. |
16 Out of credit |
403 | Out of credit: the daily plan quota and the free quota are used up and the balance is empty. |
9 Unknown error |
500 | Server error. Retry after a few seconds. |
All codes are on the Errors page.
#Notes
See FunCAPTCHA for the answer format. With sync or wait the answer comes back in this response and you need no second request. A job is still charged once, when the answer is returned.
Solvecha is an independent service. It is not affiliated with NopeCHA, 2Captcha, CapSolver, Google or CloakHQ. Their names describe compatibility or recommendations only. Figures come from our own tests, see the compare page.