Logo of «GitHub»

Other methods

test method

The method can be used for debugging. It allows to check the parameters of your request and see how our API service sees your request.

API Endpoint: https://api.2captcha.com/test
Method: POST
Content-Type: application/json

Request example

{
    "clientKey": "YOUR_API_KEY",
    "foo": "bar",
    "test": true,
    "attempt": 3,
    "options": {
        "list": [
            "item1",
            "item2"
        ]
    }
}

Response example

Parsed input JSON:
Dict
(
[clientKey] => YOUR_API_KEY
[foo] => bar
[test] => 1
[attempt] => 3
[options] => Dict
(
[list] => Dict
(
[0] => item1
[1] => item2
)

)

)
Raw POST input:
{
"clientKey": "YOUR_API_KEY",
"foo": "bar",
"test": true,
"attempt": 3,
"options": {
"list": [
"item1",
"item2"
]
}
}

There are few methods made for compatibility with different software and libraries.