#
AWS WAF CAPTCHA
#
Submit the challenge to NopeCHA
POST https://api.nopecha.com/
{
'key': 'MY_NOPECHA_KEY',
'type': 'awscaptcha',
'audio_data': ['//FggAH//jMxNikiIGZpbG//w9IiM5RjlGOU...']
}
Retrieve solution with the data value
{
'data': 'sbD0iIzlGOUY5RiIvPiA8'
}
#
Get the solution from NopeCHA
GET https://api.nopecha.com/
{
'key': 'MY_NOPECHA_KEY',
'id': 'sbD0iIzlGOUY5RiIvPiA8'
}
AI has solved the challenge
AI has not yet solved the challenge
{
'data': ['conundrum']
}
{
'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='awscaptcha',
audio_data=['//FggAH//CEhRQAUUAFH...']
)
# Print 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: 'awscaptcha',
audio_data: ['//FggAH//CEhRQAUUAFH...'],
});
// Print text to type
console.log(text);
})();