#
Text CAPTCHA
We are actively improving our AI. If you notice that NopeCHA is often making mistakes, please report to us on Discord and we will improve the accuracy on the problematic data within five business days.
#
Submit the challenge to NopeCHA
POST https://api.nopecha.com/
{
'key': 'MY_NOPECHA_KEY',
'type': 'textcaptcha',
'image_urls': ['https://nopecha.com/image/demo/textcaptcha/0iuj.png']
}
Retrieve solution with the data value
{
'data': 'dCB4PSI5NC4zODU3I'
}
#
Get the solution from NopeCHA
GET https://api.nopecha.com/
{
'key': 'MY_NOPECHA_KEY',
'id': 'dCB4PSI5NC4zODU3I'
}
AI has solved the challenge
AI has not yet solved the challenge
{
'data': ['0iuj']
}
{
'error': 14,
'message': 'Incomplete job'
}
#
Example code using client libraries
# Install the client using the following command:
# pip install --upgrade nopecha
import nopecha
nopecha.api_key = 'YOUR_API_KEY'
# Call the Recognition API
text = nopecha.Recognition.solve(
type='textcaptcha',
image_urls=['https://nopecha.com/image/demo/textcaptcha/00Ge55.png'],
)
# Print the text to type
print(text)
// Install the client using the following command:
// npm i nopecha
const { Configuration, NopeCHAApi } = require('nopecha');
const configuration = new Configuration({
apiKey: 'YOUR_API_KEY',
});
const nopecha = new NopeCHAApi(configuration);
(async () => {
// Call the Recognition API
const text = await nopecha.solveRecognition({
type: 'textcaptcha',
image_urls: ['https://nopecha.com/image/demo/textcaptcha/00Ge55.png'],
});
// Print the text to type
console.log(text);
})();